• Resolved glenneaton

    (@glenneaton)


    Just recently Wordfence no longer works and it’s causing a fatal error as below. Any ideas? Thanks.

    Fatal error: Uncaught Error: Cannot unset string offsets in /home/rinetcom/public_html/rinet/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:563 Stack trace: #0 /home/rinetcom/public_html/rinet/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php(471): wfWAFStorageFile->unsetConfig(‘whitelistedURLP…’, ”) #1 /home/rinetcom/public_html/rinet/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php(220): wfWAF->runMigrations() #2 /home/rinetcom/public_html/rinet/wp-content/plugins/wordfence/waf/bootstrap.php(607): wfWAF->run() #3 /home/rinetcom/public_html/rinet/wp-content/plugins/wordfence/wordfence.php(63): require_once(‘/home/rinetcom/…’) #4 /home/rinetcom/public_html/rinet/wp-admin/includes/plugin.php(1897): include(‘/home/rinetcom/…’) #5 /home/rinetcom/public_html/rinet/wp-admin/plugins.php(178): plugin_sandbox_scrape(‘wordfence/wordf…’) #6 {main} thrown in /home/rinetcom/public_html/rinet/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 563

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @glenneaton!
    Thanks for reaching out. In order to say more about this we’d need to look at your config.php file in wflogs. Can you please log in to your site via FTP/SSH or any file browser your web host may be providing and download the wflogs folder located in wp-content. Then zip that up and send in an attachment to [email protected], mention your forum username so I know who it’s coming from. Reply back here when you’ve sent it please. Thanks!

    Hi again @glenneaton!

    Sorry it took me so long to get back to you. I had quality assurance assist me on reviewing your wflogs. It seems like your config.php file (which is the configuration file for the Firewall) contains a string with broken seralized data instead of an array. There was also a config temp file which appeared to have accurate data in it.

    So our hypothesis is that your site has intermittent file locking issues which likely caused a read to be interrupted, resulting in the corrupt config.php file.

    A quick fix for now would be to just delete the wflogs directory and allow Wordfence to automatically recreate it. However, if it happens several times you would likely have to investigate how file locking is configured on the server and see if any changes can be made there to prevent this type of situation from occurring.

    Thread Starter glenneaton

    (@glenneaton)

    Thanks for that, it’s working fine now.

    Cheers
    Glenn.

    Thanks for the update Glenn! Hope it stays that way but if you have any other questions or concerns later on, just let us know.

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

The topic ‘Fatal error upon activation’ is closed to new replies.