Returned to Login Page, No matter what Link I select.

Having trouble installing serendipity?
Post Reply

Should the US Congress pass a law to not allow Presidential Campaigns to begin until the year the election is held?

Poll ended at Sun Feb 25, 2007 6:07 am

That would be GREAT!
2
33%
That would be GREAT!
2
33%
Not Sure.
0
No votes
Not Sure.
0
No votes
No Way!
1
17%
No Way!
1
17%
 
Total votes: 6

justinhickey
Posts: 3
Joined: Thu Feb 15, 2007 5:21 am
Location: Texas

Returned to Login Page, No matter what Link I select.

Post by justinhickey »

Here are my detials -
Serendipity 1.1
PHP 5.2.0
Apache Server 2.0.59
MySQL 5.0.27
Windows XP SP 2
Using both Firefox and IE 6
Lenovo Thinkpad T60 with Core 2 Duo
2GB RAM

When I access the Serendipity Administration Suite, I am able to log in to the admin page (I have used the save information check box as well, with no effect on my problem). When I select any of the new links (Add Media, Configure Plugins, Import Data, etc....any link) it brings me back to the login screen. I am not able to access anything beyond the Admin Suite selection screen. Going back through the login process just brings me right back to the admin suite selection page. This happens using IE 6 and Firefox.

I have tried a some of the suggestions I have already seen in some posts (I even tried the fix that was suggested for people running on IIS). Nothing has worked to correct my problem. Please let me know if you have any thoughts.

Thanks!

JUH
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Returned to Login Page, No matter what Link I select.

Post by garvinhicking »

Hi!

This sort of error usually happens if your PHP sessions are not properly configured, because either cookies are not enabled or a session.cookie_domain or session.cookie_path to not match the specifics of your s9y installation directory/domain. Can you check that in the php config?

(BTW: Please avoid adding confusing polls to your postings *g*)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
justinhickey
Posts: 3
Joined: Thu Feb 15, 2007 5:21 am
Location: Texas

Returned to Login Page, No matter what Link I select.

Post by justinhickey »

Thanks Garvin!

I reviewed the php.ini file and found the two below references:

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

What should be there if I am running it on my localhost?

Sincerely,

Justin Hickey
ret2
Regular
Posts: 11
Joined: Thu Feb 15, 2007 3:55 pm

Post by ret2 »

justinhickey > I have the same problem, please read and comment this lines :
http://board.s9y.org/viewtopic.php?p=49891#49891
Please feedback your result. (Work now / Don't work).

Garvin > What do you think about it?
donburch
Posts: 4
Joined: Sun Feb 18, 2007 1:29 am
Location: Australia

Post by donburch »

I have the same problem on a new Windows IIS install ... clicking ANY of the links on the left of the Administrator page asks for login details then returns to the blank Administrator page.

I have the same default session values in php.ini - are these correct, or what should they be set to ?

Garvin, you seem to understand ret2's posts ... can you translate to non-programmers English please ? If I understand ret2 correctly, the problem is in all installs of serendipity, so there's not much point trying to install it on my production linux web server ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

donburch: For IIS the problem applies that is described on http://blog.s9y.org/archives/160-Serend ... s-IIS.html - did you read that?

ret2's report only applies to PHP 5.2 versions, actually unrelated to whether its Linux or IIS, and also depends on which ext/filter settings you enabled.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
donburch
Posts: 4
Joined: Sun Feb 18, 2007 1:29 am
Location: Australia

Post by donburch »

Thanks Garvin !
garvinhicking wrote:ret2's report only applies to PHP 5.2 versions, actually unrelated to whether its Linux or IIS, and also depends on which ext/filter settings you enabled.
Oh shoot !! I just upgraded to latest MySQL and PHP versions before installing Serendipity ! I'll have to check my new linux web server.

I've been doing a personal blog in static HTML for a year, and was really looking forward to Serendipity ;-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi don!

You should actually get it done by simply editing your php.ini file and setting the filter.default setting to the filter_unsafe_Raw variant (I don'T know how exactly it should be titled). Or you follow ret2s suggestion to edit the include/compat.inc.php file and remove the whole block where it uses the filter extension check?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
donburch
Posts: 4
Joined: Sun Feb 18, 2007 1:29 am
Location: Australia

Post by donburch »

Now I'm getting real confused.

The PHP 5.2.1 php.ini file has:

Code: Select all

[filter]
;filter.default = unsafe_raw
;filter.default_flags =
which sounds like what you suggested

... but google turned up http://trac.wordpress.org/ticket/3093 which states
The default filter is unsafe_raw, but hosts will quickly change it when they see "unsafe_raw" as a setting.
but fails to suggest what filter.default should be set to.

I've just applied the LoginSession-Cookie-Bug-in-Windows-IIS fix, which resulted in NO output at all - not even blank HTML page !

Then I noticed and downloaded the files, which caused Serendipity to insist that I was upgrading to v1.1.1 (which turned out to not require any other change).

Net effect: nil. Still can't do anything except repeatedly log in to the Admin page. But now I can see lots of session files accumulating :?

I had a look in Firefox's cookies, and there are a couple for my domain ... but not any which seem related to Serendipity. More importantly there are no cookies for my laptop which I'm doing this testing on !

Off to work now, but I'll investigate the cookies issue further. I've done ASP programming before, but PHP and linux are all still gobbledegook to me :(
justinhickey
Posts: 3
Joined: Thu Feb 15, 2007 5:21 am
Location: Texas

Post by justinhickey »

I guess I am getting a bit confused now as well....

On the original question for my issue, I have the following setting in my php.ini file:


; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

What should these settings be there if I am running it on my localhost?

Thanks!

JUH
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Justin!

Try to set session.cookie_path = to an empty string.

donbuch:

I will release the 1.1.1 final version today, with the fix included by ret2. Please try that release! I am sure we will be able to fix it, please bear with us :)

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
donburch
Posts: 4
Joined: Sun Feb 18, 2007 1:29 am
Location: Australia

Post by donburch »

Sorry Garvin, but the 1.1.1 release didn't help.

It's probably my IIS / PHP setup. And confused a bit by my using my laptop to develop multiple websites - which XP/IIS doesn't support any longer ;-)

I'm probably better to simply move on and start the huge learning curve to get it running under linux on my new production server ;-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Dang. I suppose your IIS server is not online, so that you could give me temporary FTP to solve the issues for you?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply