• Hi… I have been using this plugin for years on several sites (multisite and stand-alone) but it has stopped working for me – I think around 25th April? Maybe I updated the plugin around then.

    The plugin now complains it cannot find the log file in its default location, ignoring my wp-config.php settings, which were working fine before.

    In one of my cases the message is:
    The log file /home/antipole/logs/testsite_ovni-owners_org_uk.php.error.log does not exist or is inaccessible.

    Which is correct, in that I am not using that /logs folder and the file name is of its own invention. I have in my wp-config.php file:

    @ini_set('log_errors','On'); // enable or disable php error logging (use 'On' or 'Off')
    @ini_set('display_errors','Off'); // enable or disable public display of errors (use 'On' or 'Off')
    @ini_set('error_log','/home/antipole/php-error-logs/testsite-ovni-owners-php-errors.log'); // path to server-writable log file

    Your advice please.

Viewing 1 replies (of 1 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    The plugin takes the log file name from the active PHP configuration (via ini_get('error_log')). If the file name that it shows doesn’t match the one you specified then that means that either the code in the wp-config.php file didn’t work or the setting was later overridden by something else.

    My guess would be that it’s the first one: the attempt to change the error_log setting didn’t work. That would explain why it’s still showing the default log file location. Could it be that your hosting provider has recently disabled the ability to change certain PHP configuration options?

    As a test, try removing the @ from @ini_set(...) and see if the site starts generating any warnings or notices about settings that can’t be changed. If you have a server-wide error log, check if any messages like that show up there.

Viewing 1 replies (of 1 total)
  • The topic ‘Stopped working for me’ is closed to new replies.