Support » Plugin: Wordfence Security - Firewall & Malware Scan » Wordfence 7.1.8 Fatal Error

  • Resolved techtangerine

    (@techtangerine)


    I was able to log into my WordPress site as usual. But when i went to
    check the homepage, it was replaced with a white screen with this
    message:

    
    Fatal error: Uncaught Error: Call to undefined function hash() in
    /home/public/wp-content/plugins/wordfence/lib/wfLog.php:47 Stack
    trace: #0
    /home/public/wp-content/plugins/wordfence/lib/wfLog.php(133):
    wfLog::isHumanRequest('182.74.131.106', 'Mozilla/5.0 (Wi...') #1
    /home/public/wp-includes/class-wp-hook.php(286):
    wfLog->actionSetRequestJSEnabled('') #2
    /home/public/wp-includes/class-wp-hook.php(310):
    WP_Hook->apply_filters(NULL, Array) #3
    /home/public/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4
    /home/public/wp-settings.php(471): do_action('wp_loaded') #5
    /home/[PATH EXCISED]/wp-config.php(89): require_once('/home/public/wp...')
    #6 /home/public/wp-config.php(3): require_once('/home/protected...')
    #7 /home/public/wp-load.php(37): require_once('/home/public/wp...') #8
    /home/public/wp-blog-header.php(13):
    require_once('/home/public/wp...') #9 /home/public/index.php(17):
    require('/home/public/wp...') #10 {main} thrown in
    /home/public/wp-content/plugins/wordfence/lib/wfLog.php on line 47

    I update my plugins using wp-cli, Lately i have noticed
    that after updating the Wordfence plugin, I have to manualy FTP in edit permissions for waf and wflogs for the firewall component to work. But this is the first time it crashed the homepage itself though.

    Here’s what my host (Nearly Free Speech) had to say:

    Place your site in maintenance mode for at least 2 minutes and see if doing so
    resolves this issue.
    
    This is a PHP bug that was resolved several days ago. I can't guess why you're
    still experiencing it now unless your site has been quite active, but restarting
    all affected processes should make sure you are running the new/fixed code.

    Doing that fixed it…but when restarted, the plugin page threw a warning that the plugin could not be activated due to a fatal error, but I verified that it has indeed been activated. It seems it was a permissions issue once again with waf and wflogs.

    Everything is fine now but I am keeping my fingers crossed.

Viewing 1 replies (of 1 total)
  • Hi @techtangerine

    Thanks for updating the thread, most probably this is something related to your server configuration (either related to file permissions or the PHP installation). Glad it’s working fine for now, feel free to update this thread if something happened.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Wordfence 7.1.8 Fatal Error’ is closed to new replies.