PHP Warnings "Cannot Modify Header Information - Headers Already Sent By"
Hi,
I am using Icy 1.2.0.27c version from a new installation(My web is
http://everempire.net/), and I am receiving messages like this in my web all the time since installing it:
Warning: include_once() [function.include-once]: Unable to access ./includes/mods_settings/mod_icy_phoenix.php in /home125a/sub006/sc69573-TMYE/everempire/includes/functions.php on line 666
Warning: include_once(./includes/mods_settings/mod_icy_phoenix.php) [function.include-once]: failed to open stream: Permission denied in /home125a/sub006/sc69573-TMYE/everempire/includes/functions.php on line 666
Warning: include_once() [function.include]: Failed opening './includes/mods_settings/mod_icy_phoenix.php' for inclusion (include_path='.:/usr/share/php5/') in /home125a/sub006/sc69573-TMYE/everempire/includes/functions.php on line 666
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/includes/functions.php:666) in /home125a/sub006/sc69573-TMYE/everempire/includes/page_header.php on line 1403
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/includes/functions.php:666) in /home125a/sub006/sc69573-TMYE/everempire/includes/page_header.php on line 1405
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/includes/functions.php:666) in /home125a/sub006/sc69573-TMYE/everempire/includes/page_header.php on line 1406
Warning: include(./common.php) [function.include]: failed to open stream: Permission denied in /home125a/sub006/sc69573-TMYE/everempire/viewforum.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/viewforum.php:26) in /home125a/sub006/sc69573-TMYE/everempire/includes/sessions.php on line 473
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/viewforum.php:26) in /home125a/sub006/sc69573-TMYE/everempire/includes/sessions.php on line 474
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/viewforum.php:26) in /home125a/sub006/sc69573-TMYE/everempire/includes/page_header.php on line 1406
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/viewforum.php:26) in /home125a/sub006/sc69573-TMYE/everempire/includes/page_header.php on line 1408
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/viewforum.php:26) in /home125a/sub006/sc69573-TMYE/everempire/includes/page_header.php on line 1409
Warning: include_once(./../includes/functions_groups.php) [function.include-once]: failed to open stream: Permission denied in /home125a/sub006/sc69573-TMYE/everempire/adm/index.php on line 31
Warning: include_once() [function.include]: Failed opening './../includes/functions_groups.php' for inclusion (include_path='.:/usr/share/php5/') in /home125a/sub006/sc69573-TMYE/everempire/adm/index.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/adm/index.php:31) in /home125a/sub006/sc69573-TMYE/everempire/adm/index.php on line 852
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/adm/index.php:31) in /home125a/sub006/sc69573-TMYE/everempire/adm/index.php on line 853
Warning: fopen(./../cache/sql_auth_e1d0c7941bd30b966742ab639b7f0a83.php) [function.fopen]: failed to open stream: Permission denied in /home125a/sub006/sc69573-TMYE/everempire/includes/db/mysql4.php on line 704
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/includes/db/mysql4.php:704) in /home125a/sub006/sc69573-TMYE/everempire/adm/page_header_admin.php on line 224
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/includes/db/mysql4.php:704) in /home125a/sub006/sc69573-TMYE/everempire/adm/page_header_admin.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home125a/sub006/sc69573-TMYE/everempire/includes/db/mysql4.php:704) in /home125a/sub006/sc69573-
The warnings seems to appear randomly, they can appear sometimes and other not. Also, they seem to appear in all pages of my web(Inluding admin panel), but the messages seems to vary in the files named there.
It seems to be a problem with "include_once()", but I don't know much about php errors.
In page_header.php the warnings seem to come from:
if (!defined('AJAX_HEADERS'))
{
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
}
What can it be? Is there any way to deactivate those warnings in php?
Thanks in advance