WP CLI: Some code is trying to do a URL redirect
-
If I try to execute a WP CLI command, sometimes I get this error (and command is not executed):
Warning: Some code is trying to do a URL redirect. Backtrace: #0 WP_CLI\Utils\wp_redirect_handler(/?repeat=w3tc) called at [/wordpress/wp-includes/class-wp-hook.php:290] #1 WP_Hook->apply_filters(/?repeat=w3tc, Array ([0] => /?repeat=w3tc,[1] => 302)) called at [/wordpress/wp-includes/plugin.php:206] #2 apply_filters(wp_redirect, /?repeat=w3tc, 302) called at [/wordpress/wp-includes/pluggable.php:1230] #3 wp_redirect(/?repeat=w3tc, 302, WordPress) called at [/wordpress/wp-includes/pluggable.php:1373] #4 wp_safe_redirect(/?repeat=w3tc, 302) called at [/wordpress/wp-content/plugins/w3-total-cache/Util_Environment.php:1021] #5 W3TC\Util_Environment::safe_redirect_temp(/?repeat=w3tc) called at [/wordpress/wp-content/plugins/w3-total-cache/Generic_Plugin.php:208] #6 W3TC\Generic_Plugin->init() called at [/wordpress/wp-includes/class-wp-hook.php:288] #7 WP_Hook->apply_filters(, Array ([0] => )) called at [/wordpress/wp-includes/class-wp-hook.php:312] #8 WP_Hook->do_action(Array ([0] => )) called at [/wordpress/wp-includes/plugin.php:478] #9 do_action(init) called at [/wordpress/wp-settings.php:523] #10 require(/wordpress/wp-settings.php) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1237] #11 WP_CLI\Runner->load_wordpress() called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1158] #12 WP_CLI\Runner->start() called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php:23] #13 WP_CLI\Bootstrap\LaunchRunner->process(WP_CLI\Bootstrap\BootstrapState Object ([WP_CLI\Bootstrap\BootstrapStatestate] => Array ())) called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php:74] #14 WP_CLI\bootstrap() called at [phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php:27] #15 include(phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php) called at [phar:///usr/local/bin/wp/php/boot-phar.php:11] #16 include(phar:///usr/local/bin/wp/php/boot-phar.php) called at [/usr/local/bin/wp:4]
Could you please do not any redirects in AJAX / CLI / ADMIN-PANEL / … ?
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘WP CLI: Some code is trying to do a URL redirect’ is closed to new replies.