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
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?
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 ?
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.
What's in
What's in sites/default/settings.php lines: 127-129 ?
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);I had a problem with the
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.