Page 1 of 1

Sporadic Error-Messages 1.2-Update

Posted: Mon Sep 03, 2007 4:08 pm
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

Re: Sporadic Error-Messages 1.2-Update

Posted: Mon Sep 03, 2007 5:33 pm
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

Posted: Mon Sep 03, 2007 11:03 pm
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

Posted: Tue Sep 04, 2007 12:09 pm
by garvinhicking
Hi!

Which PHP version are you using?

Can you show me your phpinfo() output=?

Regards,
Garvin

Posted: Tue Sep 04, 2007 12:16 pm
by cybermat
I sent you a pm with this info.

Posted: Tue Sep 04, 2007 12:17 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Posted: Tue Sep 04, 2007 1:51 pm
by cybermat
Hm, this seems to work. I have to keep an eye on this....