Error w/ WP-CLI: “unexpected error occurred during WAF execution…”
-
I am using Wordfence with the database storage engine option. Like this WF help page suggests, I have the following in my
wp-config.php
:if( ! defined('WFWAF_STORAGE_ENGINE')) { define('WFWAF_STORAGE_ENGINE', 'mysqli'); }
That’s the only guidance I can find in terms of how wordfence interacts with the wp-cli. However, when I run a command such as
wp plugin update
orwp option get home
, I always get the following error output, before the cli result:$ wp plugin update --dry-run --all An unexpected error occurred during WAF execution: Error: Call to undefined method mysqli_stmt::get_result() in /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php:977 Stack trace: #0 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php(995): wfWAFStorageEngineMySQLi->statementToArray() #1 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php(39): wfWAFStorageEngineMySQLi->get_var() #2 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php(53): wfWAFStorageMySQL->usingLowercase() #3 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php(628): wfWAFStorageMySQL->networkTable() #4 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php(594): wfWAFStorageMySQL->getStorageTable() #5 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/mysql.php(317): wfWAFStorageMySQL->autoloadConfig() #6 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php(1063): wfWAFStorageMySQL->getConfig() #7 /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/request.php(418): wfWAFUtils::rawPOSTBody() #8 /var/www/html/wp-content/plugins/wordfence/waf/bootstrap.php(55): wfWAFRequest::createFromGlobals() #9 /var/www/html/wp-content/plugins/wordfence/waf/bootstrap.php(939): wfWAFWordPressRequest::createFromGlobals() #10 /var/www/html/wp-content/plugins/wordfence/wordfence.php(117): require_once('...') #11 /var/www/html/wp-settings.php(407): include_once('...') #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1336): require('...') #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress() #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process() #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #17 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...') #18 /usr/local/bin/wp(4): include('...') #19 {main} No plugin updates available.
I am running Wordfence 7.10.3 on our own server. Let me know if I can provide any other information to help troublshoot.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error w/ WP-CLI: “unexpected error occurred during WAF execution…”’ is closed to new replies.