Sporadic Error-Messages 1.2-Update

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
cybermat
Regular
Posts: 42
Joined: Wed May 10, 2006 10:45 am

Sporadic Error-Messages 1.2-Update

Post by cybermat »

Hi,

since the last update, i get some sporadic errors on the blog and on the login-page of the admin-interface:

Notice: A session had already been started - ignoring session_start() in /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php on line 20

Warning: Cannot modify header information - headers already sent by (output started at /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php:20) in /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php on line 21

Warning: Cannot modify header information - headers already sent by (output started at /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php:20) in /homepages/28/d164195609/htdocs/blog_cmat/serendipity_admin.php on line 11

Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /homepages/28/d164195609/htdocs/blog_cmat/include/functions_config.inc.php on line 352

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php:20) in /homepages/28/d164195609/htdocs/blog_cmat/include/functions_config.inc.php on line 353

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php:20) in /homepages/28/d164195609/htdocs/blog_cmat/include/functions_config.inc.php on line 353

The errors on the admin interface only occur the first time i request the site, after i started the browser. A reload solves the problem, but there is something wrong.

Now i got mails from some readers, who get these errors, but only sometimes, not on each request. Because of this error messages my rss feed is sometimes broken, too.

What happens here, anyone an idea?

Thanks,

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

Re: Sporadic Error-Messages 1.2-Update

Post by garvinhicking »

Hi!

Could it be that your PHP configuration has a "session.auto_start" enabled (check phpinfo())? That is a non-default setting, if you use that, you should suppress PHP notices in your Errorlevel-Configuration. Most PHP application simply start a PHP session and do not check if one has already been issued. Auto-starting a session is not really recommended for a server-setup.

Forward this to your server provider, if you don't know what I'm talking about. In the s9y code, there shouldn't be a possibility that it initializes two sessions.

You might want to try to purge your browser's cookies though, maybe an old cookie in the admin interface is interfering.

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/
cybermat
Regular
Posts: 42
Joined: Wed May 10, 2006 10:45 am

Post by cybermat »

Hi garvin,

thanks for your answer. I checked the sessio.auto_start parameter, but the values are both "off".

Now I saw this error this evening (on the startpage, not on the admin-interface):

Notice: A session had already been started - ignoring session_start() in /homepages/28/d164195609/htdocs/blog_cmat/serendipity_config.inc.php on line 20

I still have another serendipity-installation on the same webspace, with the same user, but this blog still runs with 1.1 without any problems or errors.

The only idea i have at the moment, is to downgrade my 1.2 blog to 1.1, to get rid of the error-messages, that came up after the update.

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

Post by garvinhicking »

Hi!

Which PHP version are you using?

Can you show me your phpinfo() output=?

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/
cybermat
Regular
Posts: 42
Joined: Wed May 10, 2006 10:45 am

Post by cybermat »

I sent you a pm with this info.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I just read this:
http://board.s9y.org/viewtopic.php?t=10971&highlight=

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/
cybermat
Regular
Posts: 42
Joined: Wed May 10, 2006 10:45 am

Post by cybermat »

Hm, this seems to work. I have to keep an eye on this....
Post Reply