Hi David,
I have noticed I am staring to receive a few PHP errors appearing in my error.log file
Example is below.
[13-Oct-2010 18:23:27] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/beauty/public_html/includes/database.php:21) in /home/beauty/public_html/html/header.php on line 14
[13-Oct-2010 18:23:28] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/beauty/public_html/includes/database.php:21) in Unknown on line 0
[13-Oct-2010 18:23:28] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/beauty/public_html/includes/database.php:21) in Unknown on line 0
[13-Oct-2010 18:33:13] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/beauty/public_html/includes/database.php on line 21
[13-Oct-2010 18:33:13] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/beauty/public_html/includes/database.php on line 26
[13-Oct-2010 18:33:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/beauty/public_html/includes/database.php:21) in /home/beauty/public_html/html/header.php on line 14
[13-Oct-2010 18:33:14] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/beauty/public_html/includes/database.php:21) in Unknown on line 0
[13-Oct-2010 18:33:14] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/beauty/public_html/includes/database.php:21) in Unknown on line 0
[13-Oct-2010 18:46:17] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 78 bytes) in /home/beauty/public_html/includes/database.php on line 21
I used o get the header already sent when I had white space in config but htis is ok now. Any ideas what else might be going on here?
Thanks
Richard
Hi Richard,
It looks like you have $config_databaseDebugMode = TRUE; in config.php (line 6) - which does cause database.php to generate output, and often before headers have been sent which is what causes the warning...
It looks like that may be happening during import during which intentional errors can occur (part of the duplicate prevention) so that should be all it is..
Cheers,
David.
--
PriceTapestry.com