Author Topic: How to get sh404SEF working with SobiSEF  (Read 47156 times)

0 Members and 1 Guest are viewing this topic.

Offline j916

Re: How to get sh404SEF working with SobiSEF
« Reply #20 on: 03. April 2009, 06:47:06 »
Hi All,

After a good nights sleep I looked into the problem I was having with the user listing. It turns out the problem was not that hard to fix. All you need to do is add to the exception array; in this case the command usersListing.

From Neo's original fix:

Solution for the search function and other URLs which should not be translated to a SEF URL:

Edit the file JOOMLA_ROOT/plugins/system/shsef.php about the line 241 change the code:


  
function _parseSefRoute(&$uri)
  {
  
	
$called $uri->getQuery();
  
	
$exceptions = array( 'delete''edit''renew''save''update''search' );
  
	
foreach ( 
$exceptions as $exception ) {
  
	
	
if( 
stristr$called"task={$exception}" ) ) {
  
	
	
	
return 
$this->_parseRawRoute$uri );
  
	
	
}
  
	
}
        if( 
$uri->getVar'no_html') ) {
    
	
       return 
$this->_parseRawRoute$uri );
        }
    
$vars   = array();

    include(
JPATH_ROOT.DS.'components'.DS.'com_sh404sef'.DS.'sh404sef.php');



to this code:


function _parseSefRoute(&$uri)
{
    
$called $uri->getQuery();
    
$exceptions = array( 'delete''edit''renew''save''update''search''usersListing' );
    foreach ( 
$exceptions as $exception ) {
        if( 
stristr$called"task={$exception}" ) ) {
            return 
$this->_parseRawRoute$uri );
        }
     }
    if( 
$uri->getVar'no_html') ) {
        return 
$this->_parseRawRoute$uri );
    }

    
$vars   = array();
    include(
JPATH_ROOT.DS.'components'.DS.'com_sh404sef'.DS.'sh404sef.php');


Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Moto Treks

Offline freeman76

Re: How to get sh404SEF working with SobiSEF
« Reply #21 on: 20. April 2009, 19:52:30 »
Hi Neo,

After I made the changes in components/com_sh404sef/sh404sef.php that you proposed, I get an error in Jomsocial component in section "Profile", here is the error:
Warning: Cannot modify header information - headers already sent by (output started at /home/grattece/public_html/helioalvescv/components/com_sh404sef/sh404sef.php:946) in /home/grattece/public_html/helioalvescv/components/com_community/libraries/core.php on line 195

This error can bee seen here: http://www.helioalvescv.com/, you'll can login with: Login: user1, Pwd: user1,  click on Profile Tab.


Do you know how I could solve this problem?

Thank you very much for your time.
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline Scotia

Re: How to get sh404SEF working with SobiSEF
« Reply #22 on: 25. April 2009, 14:54:21 »
I have the same issue as smashtheguitar (500), after making the second edit listed

500 -
SH404SEF : headers were already sent in /home/scotia/public_html/administrator/components/com_sh404sef/sh404sef.class.php at line 7738 when I got control!
Killed at line 295 in sh404sef.php: HEADERS ALREADY SENT (200)
URL=http://www.mysite.com/
OPTION=com_content
Country: Canada Canada |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline vnmarser

Re: How to get sh404SEF working with SobiSEF
« Reply #23 on: 07. May 2009, 04:29:23 »
Thanks for the fix. I had been using SH404SEF and had noticed some problems. Before I started digging into the code I looked here and found this fix.  :) :)

However, there seems to be a problem with the sobitask=usersListing and page navigation. The page links for user lists get generated like:

index.php?limitstart=6?limitstart=6

when SEF is enabled. When its disables everything works just fine.

Has anyone seen this problems?

This problem may be caused by PHP compatibility issue, I guess. I experienced this problem when I upgraded PHP from version 5.1.16 to version 5.2.9.
Everything is now working well. Thank you all!!!
« Last Edit: 07. May 2009, 04:44:11 by vnmarser »
Country: Viet Nam Viet Nam |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Vietnam Maritime Social Network

Offline asources

Re: How to get sh404SEF working with SobiSEF
« Reply #24 on: 23. May 2009, 17:59:54 »
After doing everything as stated by NEO here is what i got in the front end

Blank page with the folowing
Fatal error: Cannot redeclare shcheckredirect() (previously declared in /home/pourtonp/public_html/components/com_sh404sef/sh404sef.php:19) in /home/pourtonp/public_html/components/com_sh404sef/sh404sef.php on line 39

Why ?

Stefan
Country: Canada Canada |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline mgilmour

Re: How to get sh404SEF working with SobiSEF
« Reply #25 on: 15. June 2009, 16:01:06 »
I'm at the point where I'm about to turn off SH404SEF......I really don't want to but the solutions proposed only seem to solve bits of the problem. For example, I did all of the steps and found that the review form link just didn't work and users were getting really frustrated that none of their reviews were being posted.

I think that this issue will need a collaboration between SH404SEF and SOBI2 for a complete solution......otherwise there are going to be a lot of sore heads banging against a wall.
Country: Australia Australia |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline kevinsan

Re: How to get sh404SEF working with SobiSEF
« Reply #26 on: 26. June 2009, 10:02:04 »
Solved: gallery will not appear on add link.

I was having a problem with gallery plugin and sh404sef.  The gallery add image would not appear in on the front end or in the administrator area.  After following these instructions the gallery add image appeared and users/admin can add images.  Checked on several templates.

Thanks.
Country: Thailand Thailand |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline kgc

Re: How to get sh404SEF working with SobiSEF
« Reply #27 on: 29. June 2009, 13:58:09 »
Thanks for the fix. I had been using SH404SEF and had noticed some problems. Before I started digging into the code I looked here and found this fix.  :) :)

However, there seems to be a problem with the sobitask=usersListing and page navigation. The page links for user lists get generated like:

index.php?limitstart=6?limitstart=6

when SEF is enabled. When its disables everything works just fine.

Has anyone seen this problems?


Hi, I am currently experiencing the same issue (all other aspects of sef seem to be working fine other than page navigation).
I am running
php 5.29
joomla 1.5.10
sigsiu RC2.9.2.1
sh404sef 1.0.19_Beta - build_232

I have also applied the changes as per this thread .. which has addressed everything except for page navigation

Has anyone found a fix/workaround for this?

Country: Australia Australia |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline josetes

Re: How to get sh404SEF working with SobiSEF
« Reply #28 on: 16. July 2009, 18:35:42 »
Are you sure you have did all as I described.

I'm asking because this file (sh404sef.class.php) has 3864 lines and not 7728 ( 2 x 3864 ?? ).

Could you post this file here?  With which program have you edited it?

Kind regards,
Neo
 


I use:
Joomla! 1.5.12 Stable [ Wojmamni Ama Woi ] 01-July-2009 02:00 GMT
SOBI RC 2.9.2.1 

Thanks for the fix, but when I make the second change it kills my site and pops up a big old 500 Error. I cleared out the sh404sef cache and purged the created sef urls, but even my homepage pops up this big old error:

500 -
SH404SEF : headers were already sent when I got control!
Killed at line 148 in sh404sef.php: HEADERS ALREADY SENT (200)
URL=http://xxxxx.com/
OPTION=com_content

I have (sh404sef.class.php) 7728 lines!!!

Thanks
Country: Spain Spain |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline asources

Re: How to get sh404SEF working with SobiSEF
« Reply #29 on: 06. August 2009, 18:27:00 »
I have followed all steps from neo, my problem is when i activate SH404 everything works, but as soon as i activate Sobisef ... blank page , nothing shows


Any help would be appreciate
Country: Canada Canada |  OS: Windows XP Windows XP |  Browser: Firefox 3.0.13 Firefox 3.0.13 | View Profile

Tags: