wp-blog-header changes log functionality on site
-
Hi everyone,
We have many sites that all log to the standard apache error log. I have a particular site where I am including the wp-blog-header.php so that I can utilize query posts to show a few recent posts on my main index (outside of WordPress).
By including that wp-blog-header, it is turning off my php error logging for the site. I tried to force some errors, so I know they’re there, and when I remove the include, they show. So, I know it’s something with the WordPress header include for sure.
I read where you can add these settings to the config file:
@ini_set(‘log_errors’,’On’);
@ini_set(‘display_errors’,’Off’);
@ini_set(‘error_log’,’/home/example.com/logs/php_error.log’);If I set that error_log location, will this append, or will it try to overwrite the existing error_log ?
Also, will adding the above even fix what I am looking to fix?
Thanks!
- The topic ‘wp-blog-header changes log functionality on site’ is closed to new replies.