Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: Hagadoo on March 10, 2007, 11:16:15 AM

Title: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 11:16:15 AM
Joomla 1.0.12, SMF 1.1.2 & Bridge 1.1.7

I installed SEF Advance, and have gotten everything else to work properly now, but when I try to post in the forums I get a session timed out and to retry.
Also can not log-in to admin from wrapped. Just also noticed that the forums show up fine in Firefox, but not in IE.

Hag
Title: Re: Session Timeouts after Installing SEF Advance
Post by: Orstio on March 10, 2007, 11:47:01 AM
QuoteI installed SEF Advance, and have gotten everything else to work properly now, but when I try to post in the forums I get a session timed out and to retry.
Also can not log-in to admin from wrapped.

Try turning off database driven sessions in SMF.

QuoteJust also noticed that the forums show up fine in Firefox, but not in IE.

There is something wrong with your Theme URL.  Your Joomla live site seems to be http://www.hagadoo.com , but the theme seems to have a URL setting of http://hagadoo.com .  That, coupled with any form of hotlink protection will keep your images and javascript from functioning correctly.
Title: Re: Session Timeouts after Installing SEF Advance
Post by: Hagadoo on March 10, 2007, 12:07:12 PM
I did have the following in .htaccess due to both HttP://www.hagadoo.com and http://hagadoo.com working:

RewriteCond %{HTTP_HOST} ^hagadoo\.com$ [NC]
RewriteRule ^(.*)$ http://www.hagadoo.com/$1 [R=301,L]

I removed it, and the forums now show up in IE okay, but still getting sessions timed out.

Turned off Database Driven and no change.


Title: Re: Session Timeouts after Installing SEF Advance
Post by: Hagadoo on March 10, 2007, 04:14:59 PM
Also fixed the themes so that it looks for them in www.hagadoo.com now instead of hagadoo.com, but still can't post or log-in to admin.
Title: Re: Session Timeouts after Installing SEF Advance
Post by: Orstio on March 10, 2007, 04:58:04 PM
The SEFAdvance component seems to be stripping out the $_POST array....
Title: Re: Session Timeouts after Installing SEF Advance
Post by: Hagadoo on March 10, 2007, 05:06:30 PM
I was just looking on the site for SEF Advance, and the version that he sent me is a new version that was released 2 days ago whigh is 4.8!!! Is this what is causing the problems? The new version has different issues than 4.6 had?
    Should I e-mail him and see if he can send me version 4.6 instead? Also am I going to run into issues when I uninstall?


Thanks again for all of your help!!!

Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 10, 2007, 05:22:04 PM
Can you post the contents of your .htaccess?
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 05:24:20 PM
#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if you get 403 Forbidden Error



#Options +FollowSymLinks

#  Uncomment following line if your webserver's URL
#  is not directly related to physival file paths.
#  Update YourMamboDirectory (just / for root)

#RewriteBase /YourMamboDirectory

#
#  Rules
#

#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 10, 2007, 07:09:18 PM
Try this instead:

#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if you get 403 Forbidden Error



#Options +FollowSymLinks

#  Uncomment following line if your webserver's URL
#  is not directly related to physival file paths.
#  Update YourMamboDirectory (just / for root)

#RewriteBase /YourMamboDirectory

#
#  Rules
#

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*) index.php
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 07:16:05 PM
Get a 404 now when I click on Forums.
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 10, 2007, 07:24:07 PM
Oops, yeah, sorry about that.

#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if you get 403 Forbidden Error



#Options +FollowSymLinks

#  Uncomment following line if your webserver's URL
#  is not directly related to physival file paths.
#  Update YourMamboDirectory (just / for root)

#RewriteBase /YourMamboDirectory

#
#  Rules
#

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 07:27:30 PM
forum back up, still can't log in to admin.
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 10, 2007, 07:36:51 PM
Yeah, as long as the $_POST variables are getting stripped out, you won't be able to login to the bridged admin panel, post messages, or login if you are logged out.
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 07:41:28 PM
I e-mailed asking for the 4.6 version of SEF Advance, will that wolve the problem?
I should uninstall this version now correct? Also none of my Joomla menu links are working anymore


Hag

Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 07:52:32 PM
Uninstalled it, and lost everything, reinstalled and got links back atleast. Is there something that needs to be done to uninstall this?



Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 10, 2007, 08:36:38 PM
You'll need to replace your sef.php in your includes folder with a clean one from a standard Joomla installation.  For some reason, it was replaced with the same file that should reside in the components/com_sef folder.
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 10, 2007, 09:04:36 PM
That did it, also had to put the old htaccess in. Back to what it was before. Thanks for all the help, guess I will just wait for the 4.6 version and see what happens with that.

Thanks again,

Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 11, 2007, 12:25:50 AM
Emir Sakic says:
"Versions 4.6 and 4.8 have no differencies whatsoever in regards to any components. They work exactly the same, especially when caching feature is turned off.

So your problems must depend on something else. If you have problems with particular component delete the component's SEF extension (sef_ext.php) or turn on ignore for that component in SEF Advance configurations.

No previous versions can be sent by me, only the latest one. If you need a previous version you must keep your own backup." 

So it looks like I have to either disble it for SMF or lose out on th $56 for the Component.

Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 11, 2007, 06:04:13 PM
since uninstalling SEF Advance, have some people that can't log-in to the site. It shows them logged in but they say they are not.
    I re-installed SEF Advance and disbaled the SMF Bridge in SEF Advance and can now log into the admin of the forums and make posts, but those who are having log=in issues are still having them. It is only happening to a few users, no one else is having problems. They have tried both browsers, clearing cookies, and cache and temp files, with no avail.
This is the error they state they are getting:

<br>Warning: Cannot modify header information - headers already sent by (output started at /home/hagadooc/public_html/index.php:62) in /home/hagadooc/public_html/includes/joomla.php on line 715<br>2: Cannot modify header information - headers already sent by (output started at /home/hagadooc/public_html/index.php:62)<br>File: /home/hagadooc/public_html/components/com_smf/smf.php<br>Line: 691Database Error: Table &apos;hagadooc_joom1.smf_sessions&apos; doesn&apos;t exist<br>File: /home/hagadooc/public_html/Forum/Sources/Lo

Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 11, 2007, 06:15:41 PM
Quote<br>Warning: Cannot modify header information - headers already sent by (output started at /home/hagadooc/public_html/index.php:62) in /home/hagadooc/public_html/includes/joomla.php on line 715<br>2: Cannot modify header information - headers already sent by (output started at /home/hagadooc/public_html/index.php:62)<br>File: /home/hagadooc/public_html/components/com_smf/smf.php<br>Line: 691Database Error: Table &apos;hagadooc_joom1.smf_sessions&apos; doesn&apos;t exist<br>File: /home/hagadooc/public_html/Forum/Sources/Lo


Thanks.  That was a by-product of a bit of debugging code I put into your Joomla index.php to determine exactly where the $_POST array was being deleted.  I've removed it now, and your login should be working.
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 11, 2007, 06:17:59 PM
Thanks You! Its been driving me nuts lol, was only happening to a couple people.


Thanks again,

Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 11, 2007, 06:42:59 PM
That worked for the ones who could not sign in, but now I can't sign in to admin in the forums again.



Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 11, 2007, 06:59:39 PM
How about if you logout and back in?
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 11, 2007, 07:06:24 PM
ROFL, thanks, now I don't have to sign in to the forum admin like I did before. Think I am going to have to put you on the contacts as Staff lol.

Thanks again,

Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Hagadoo on March 14, 2007, 02:13:35 AM
This is a final update on the issue I had with version 4.8 of SEF Advance, it is now supposed to be working correctly. Below is the reply from Emir:

"This issue has been resolved now.

The problem was not that SEF Advance stripped POST variables, the problem was that SMF bridge was sending the form to an URL without trailing slash.
And, as you might know, SEF Advance redirects all requests without trailing slash to the URL with slash to create default directory server behavior.
Then, when sent to a new page with slash, POST variables were no longer present and login would fail.
Everything can be fixed by adding the trailing slash to the URL in SMF Bridge action form, but I decided to even put the fix in SEF Advance so such URLs are supported for posting. So I added a redirect prevention if POST variables are sent.

If you download the latest version (4.8.1) you will find this issue fixed. You can just replace files:
./components/com_sef/sef_incl.php
./administrator/components/com_sef/sef.xml

Thanks again for all of your help,
Hag
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Orstio on March 14, 2007, 07:03:59 AM
You can tell Emir I said thanks for the fix.  I can't support putting trailing slashes on bridged URLs, because that breaks some of the URLs for SMF.  The bridge actually strips them off before sending the output to avoid problems.
Title: Re: Session Timeouts after Installing SEF Advance 4.8
Post by: Chriss Cohn on March 14, 2007, 05:03:17 PM
Very very very interessting topic - just downloading the 4.8.1
Regards, Christian