Submitted by ikhnaton2 on Sun, 29/10/2006 - 10:30.
( categories: )
I'm facing a strange problem in my drupal blog (ikhnaton2.com/whisper). It was working fine but suddenly I can't browse it and see this error:
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time. in /home/ikhnaton/public_html/whisper/sites/default/settings.php on line 128 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 525 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 526 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 534 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 542 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 542
I tried to comment (line 128) ini_set('session.save_handler','user') in settings.php as being adviced in (http://drupal.org/node/84904) but it gives me the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 550 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 551 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 552 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 553 Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 554
and browsing to any page (even home page) gives:
Access denied You are not authorized to access this page.
I tried to add those lines to .htaccess file but no difference:
php_value "memory_limit" "32M" php_value session.cookie_domain ".ikhnaton2.com" php_flag register_globals on php_value "max_execution_time" 600
Do you have an idea to solve this problem?
Thanks,
Rami Sedhom
http://ikhnaton2.com


What did you change ? Or
What did you change ? Or what did the host change ? Looks like they disabled ini_set() ? Can you ask them ?
WWW: The place for organized randoms!
is there something wrong with drupal?
Thanks Mohamed for replying me. I didn't make any changes, I sent an email to my host company and waiting for their reply but I thought there's something with my drupal installation that I don't know.
Peace,
Rami Sedhom
http://ikhnaton2.com
What's in
What's in sites/default/settings.php lines: 127-129 ?
WWW: The place for organized randoms!
lines 127, 128, 129
Here it's:
ini_set('session.gc_maxlifetime', 200000); ini_set('session.save_handler', 'user'); ini_set('session.auto_start', 0);Peace,
Rami Sedhom
http://ikhnaton2.com
I had a problem with the
I had a problem with the "headers already sent" too at my www.Maxi-Pedia.com website. In my case, it was caused by a blank line at the beginning of common.inc. Drupal or more likely PHP seem to have problems with extra spaces here and there.
Check all your *.inc files to make sure you do not have closing ?> in any of them. Closing ?> is not needed in your *.inc files. Check all your *.php files to make sure you do not have blank lines at the beginning or at the end.
If the error message indicates that this is caused by some module, disable your modules one by one to find out which one causes this.
This can also be caused by UTF-8. If you have your website coded in ASCII and are saving your php files as UTF-8, it can cause this message. If your website and DB are UTF-8, you should be ok with saving php files as UTF-8 though.
I heard this could also be related to blocks that do not have a title specified. Edit your blocks in Admin / Blocks.
Btw, this error message is related to output_buffering on/off in your php.ini. If you have output_buffering set to some cache, the server will allow to send headers with delay (or to modify them shortly after they are sent), and this error will not be tripped. But if you set output_buffering to 0 or not at all, then headers can be sent at only one moment, and if you have some bad code, it will trip this error message.