• I’m having serious trouble with a fatal error, probably related to one of my own plugins, for which no error message is displayed or logged. I have debugging turned on with logging. I’ve also tried turning on define( ‘WP_DEBUG_DISPLAY’, true ) but nothing is displayed onscreen.

    This leaves me twisting in the wind as I try to guess my way through what function might be causing the issue.

    What might be causing WordPress to fail to log errors? I see other errors and messages in the log but nothing related to the fatal event. I’ve actually been seeing this pattern for a while now, but I’m currently in the midst of a crisis for a web service that depends on my custom plugin.

    • This topic was modified 2 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter davidfcarr

    (@davidfcarr)

    Currently, the specific issue relates to a fatal error that occurs when I try to edit a post. This is on a wordpress multisite install and, oddly, the error only occurs on the root domain not any of the subdomain sites.

    I should probably also mention I have a problem with runaway memory usage on this site for reasons I have yet to figure out.

    Thread Starter davidfcarr

    (@davidfcarr)

    But this issue of fatal errors not being logged has come up before in other circumstances, and I’d like to know if there’s a solutions.

    Dion

    (@diondesigns)

    THe first thing you should do is check the PHP error log. If you don’t know how to do that, ask your host.

    If you have shared hosting or a VPS with Apache/PHP properly configured, you can also replace the WP_DEBUG_DISPLAY line in wp-config.php with the following:

    define('WP_DEBUG_LOG', true);

    PHP will then log all errors/warnings/etc to the wp-content/debug.log file. Note that PHP must be able to create/modify the file,

    If the issue can’t be found in the PHP error log, then check the Apache and/or PHP-FPM error logs.

    Thread Starter davidfcarr

    (@davidfcarr)

    My issue is I do have WP_ERROR_LOG defined, and it’s recording errors and warnings. However, when I experience a fatal error, often there is no log entry recorded.

    @davidfcarr Did you ever find a resolution here? I’ve seen the same issue on a few sites recently.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error with no message displayed or logged’ is closed to new replies.