• Resolved bzwoman

    (@bzwoman)


    WordPress version 5.4.2
    Current theme: Astra (version 2.4.5)
    Current plugin: Wordfence Security (version 7.4.7)
    PHP version 5.6.40
    I received this fatal error message while updating the plugins:
    Error Details
    =============
    An error of type E_ERROR was caused in line 695 of the file /wp-content/plugins/wordfence/lib/wfConfig.php. Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 25736438 bytes)
    My host increased the memory size and suggested updating the PHP to 7.3. However when that was done there was another fatal error. They recovered the site after moving the plugin directory for wordfence plugin from the wordpress plugins directory/. The site now loads fine. But I could not activate the plugin because of a fatal error. I updated the Wordfence plugin successfully to 7.4.8 but still get a fatal error message when I try to activate. There are no details of what the fatal error is.
    Please help

    • This topic was modified 5 years, 11 months ago by bzwoman.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @bzwoman,

    That line you mentioned is directly involved with serializing data.

    I believe what is happening is that data from the Wordfence tables in your database are large – and when they’re being serialized, your host runs out of memory.

    Can you remove all Wordfence-related tables from your database, and see if you can reinstall / enable Wordfence?

    Here’s a quick query to remove all the related tables:

    DROP TABLE wp_wfblockediplog;   
    DROP TABLE wp_wfblocks7;     
    DROP TABLE wp_wfconfig;
    DROP TABLE wp_wfcrawlers;
    DROP TABLE wp_wffilechanges;
    DROP TABLE wp_wffilemods;
    DROP TABLE wp_wfhits;  
    DROP TABLE wp_wfhoover;
    DROP TABLE wp_wfissues;
    DROP TABLE wp_wfknownfilelist;
    DROP TABLE wp_wflivetraffichuman;
    DROP TABLE wp_wflocs;  
    DROP TABLE wp_wflogins;
    DROP TABLE wp_wfls_2fa_secrets;
    DROP TABLE wp_wfls_settings;
    DROP TABLE wp_wfnotifications;
    DROP TABLE wp_wfpendingissues;
    DROP TABLE wp_wfreversecache;
    DROP TABLE wp_wfsnipcache;
    DROP TABLE wp_wfstatus;
    DROP TABLE wp_wftrafficrates;

    Dave

    Thread Starter bzwoman

    (@bzwoman)

    Thank you! My host removed the above tables and And moved a backup for the same to “/home…_wpXX.sql”
    That did the trick.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error in Line 695’ is closed to new replies.