Having the same issue.
1. wp-content directory is writable (755), wordpress writes content all the time.
2. in wp-config
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
@ini_set("error_log", dirname(__FILE__).'/wp-content/debug.log');
3. manually trying to write custom logs
error_log('#test: Test.');
4. Error:
Debugging is enabled. However, the debug.log file does not exist or was not found.
Any Ideas?
update #1: if i manually create the debug.log file the plugin finds it and shows 0 errors. but still no luck writing to it.
update #2: think i found the issue. if i run phpinfo the error_log location is being overridden by the server and @ini_set isn’t overwriting it. neither is php.ini or .user.ini. looks like this is hard set in the server config and not user changeable.
SOLUTION: since I couldn’t change the error_log location, i created a symlink from the location and filename the plugin is expecting to the actual location and file. The logging now appears to be working as expected. Hope this helps someone in the future with the same issue. cheers.
Any Ideas?
-
This reply was modified 8 years, 1 month ago by
redesigned.
-
This reply was modified 8 years, 1 month ago by
redesigned.
-
This reply was modified 8 years, 1 month ago by
redesigned. Reason: solution