• Barry

    (@barrypersonalctonet)


    I have the Pro plugin. On one of my sites the plugin reports an error in the log. However, I can’t find the log file on disk that the plugin is reading from, and somehow the site’s wp-config file does not contain the normal settings to point to the log file. I opened a support ticket with the hosting company about the error, and since they can’t find it in a log file that are not following up.

    So my question is, if the wp-config is not properly set up but your plugin is still logging errors, do they exists anywhere that I can find them? Or do I have to fix the wp-config and just wait for the error to show up again?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Barry

    (@barrypersonalctonet)

    As a follow up, I just tried deactivating and reactivating the plugin, hoping that would repeat the normal display of the configuration info to be entered into the wp-config, but it did not.

    And the hosting company support continues to disregard my inquiries about the reported error (they say that since they can’t see it in a log file it is a false positive and should be ignored), so I would really like to get the error logging back to normal so they will finally do something about the error.

    Plugin Author Janis Elsts

    (@whiteshadow)

    The log file name should be shown at the bottom of the dashboard widget, next to the “Clear Log” button. This applies to all versions of the plugin. For example, it might look something like this:
    Log file: /home/username/php_errors.log (170 KiB)

    Also, to clarify, the plugin doesn’t log errors. PHP logs errors (when configured to do that), and the plugin displays the logged errors.

    (Technically, the Pro version logs some additional context data but not the error itself. If you have an issue or question that’s specific to the Pro version, please use my contact form instead. www.remarpro.com forum rules do not allow using these forums to provide support for paid plugins.)

    Thread Starter Barry

    (@barrypersonalctonet)

    Thanks. I finally noticed the log file location in the widget, probably at the same time you were typing your reply ??

    And the problem the hosting company had was that the log files were not findable in any of the usual places, but they were there in a directory related to php-fpm. Can I enter something in the wp-config now to point the log files to a more findable place (i.e. @ini_set(‘error_log’, ‘/home/site_name/public_html/wp-content/elm-error-logs/php-errors.log’);) even though the plugin is no longer suggesting that to me?

    Thanks.

    Plugin Author Janis Elsts

    (@whiteshadow)

    Yes, assuming that the server configuration allows using init_set() and changing that option from a PHP script, you should be able to do that. It might be as simple as adding that line to wp-config.php and changing the file name to point to an actual file.

    The file needs to be accessible to PHP/WordPress, and it’s probably a good idea to put it in a place where visitors can’t just download it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t find log file’ is closed to new replies.