WP CLI not working with wordfence installed on WPEngine
-
WP install appears to be operating without crashing on the front end, however WP CLI just keeps hanging up. I was talking with WPEngine support and we isolated it to the WordFence plugin (switched to twenty twenty theme, only plugin active).
WP Core and WordFence are at their latest versions at time of writing.
I have tried:
- turning the plugin off/on
- uninstalling the plugin while keeping settings and reinstalling
- uninstalling the plugin while purging settings and reinstalling
They sent me the following Error that they were seeing on their end during the investigation:
PHP Warning: fopen(/nas/content/live/--redacted--/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 332 Warning: fopen(/nas/content/live/--redacted--/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 332 PHP Warning: include(/nas/content/live/--redacted--/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 335 5:38 pm Warning: include(/nas/content/live/--redacted--/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 335 PHP Warning: include(): Failed opening '/nas/content/live/--redacted--/wp-content/wflogs/rules.php' for inclusion (include_path='.:/usr/share/php') in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 335 Warning: include(): Failed opening '/nas/content/live/--redacted--/wp-content/wflogs/rules.php' for inclusion (include_path='.:/usr/share/php') in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 335 Error reading Wordfence Firewall config data, configuration file could be corrupted or inaccessible. Path: /nas/content/live/--redacted--/wp-content/wflogs/config.php PHP Fatal error: Uncaught InvalidArgumentException: wfWAFAttackDataStorageFileEngine::unpackMicrotime $binary expected to be string with length of 8, received string of length 0 in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:964 Stack trace: #0 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(1172): wfWAFAttackDataStorageFileEngine::unpackMicrotime() #1 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(1270): wfWAFAttackDataStorageFileEngine->unpackHeader() #2 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(1375): wfWAFAttackDataStorageFileEngine->getRowCount() #3 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(177): wfWAFAttackDataStorageFileEngine->getNewestTimestamp() #4 /nas/content/live/--redacted--/wp-conten in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 964 Fatal error: Uncaught InvalidArgumentException: wfWAFAttackDataStorageFileEngine::unpackMicrotime $binary expected to be string with length of 8, received string of length 0 in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:964 Stack trace: #0 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(1172): wfWAFAttackDataStorageFileEngine::unpackMicrotime() #1 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(1270): wfWAFAttackDataStorageFileEngine->unpackHeader() #2 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(1375): wfWAFAttackDataStorageFileEngine->getRowCount() #3 /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(177): wfWAFAttackDataStorageFileEngine->getNewestTimestamp() #4 /nas/content/live/--redacted--/wp-conten in /nas/content/live/--redacted--/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 964 Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
Please assist.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘WP CLI not working with wordfence installed on WPEngine’ is closed to new replies.