PHP Fatal error: Uncaught Error: Class ‘CloudFlare\IpRewrite’ not found
-
Hi there – not sure if this is caused by WP-CLI or Cloudflare, but when trying to activate the plugin via CLI I get the following:
PHP Fatal error: Uncaught Error: Class 'CloudFlare\IpRewrite' not found in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php:8 Stack trace: #0 /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.php(31): require_once() #1 /srv/www/trusa.io/releases/20161031154625/web/wp/wp-admin/includes/plugin.php(560): include_once('/srv/www/trusa....') #2 phar:///usr/bin/wp/php/commands/plugin.php(272): activate_plugin('cloudflare/clou...', '', NULL) #3 [internal function]: Plugin_Command->activate(Array, Array) #4 phar:///usr/bin/wp/php/WP_CLI/Dispatcher/CommandFactory.php(67): call_user_func(Array, Array, Array) #5 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array) #6 phar:///usr/bin/wp/php/WP_CLI/Dispatcher/Subcommand.php(372): call_user_func(Object(Closure), Array, Array) #7 phar:///usr/bin/wp/php/WP_CLI/Runner.php(312): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array) #8 phar:///usr/bin/wp/php/WP_CLI/Runner.php(3 in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php on line 8 Fatal error: Uncaught Error: Class 'CloudFlare\IpRewrite' not found in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php:8 Stack trace: #0 /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.php(31): require_once() #1 /srv/www/trusa.io/releases/20161031154625/web/wp/wp-admin/includes/plugin.php(560): include_once('/srv/www/trusa....') #2 phar:///usr/bin/wp/php/commands/plugin.php(272): activate_plugin('cloudflare/clou...', '', NULL) #3 [internal function]: Plugin_Command->activate(Array, Array) #4 phar:///usr/bin/wp/php/WP_CLI/Dispatcher/CommandFactory.php(67): call_user_func(Array, Array, Array) #5 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array) #6 phar:///usr/bin/wp/php/WP_CLI/Dispatcher/Subcommand.php(372): call_user_func(Object(Closure), Array, Array) #7 phar:///usr/bin/wp/php/WP_CLI/Runner.php(312): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array) #8 phar:///usr/bin/wp/php/WP_CLI/Runner.php(3 in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php on line 8
If I activate the plugin via Admin dash it activates fine, but then all WP-CLI commands fail and throw the following error:
PHP Fatal error: Uncaught Error: Class 'CloudFlare\IpRewrite' not found in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php:8 Stack trace: #0 /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.php(31): require_once() #1 /srv/www/trusa.io/releases/20161031154625/web/wp/wp-settings.php(273): include_once('/srv/www/trusa....') #2 phar:///usr/bin/wp/php/WP_CLI/Runner.php(960): require('/srv/www/trusa....') #3 phar:///usr/bin/wp/php/WP_CLI/Runner.php(904): WP_CLI\Runner->load_wordpress() #4 phar:///usr/bin/wp/php/wp-cli.php(21): WP_CLI\Runner->start() #5 phar:///usr/bin/wp/php/boot-phar.php(5): include('phar:///usr/bin...') #6 /usr/bin/wp(4): include('phar:///usr/bin...') #7 {main} thrown in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php on line 8 Fatal error: Uncaught Error: Class 'CloudFlare\IpRewrite' not found in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php:8 Stack trace: #0 /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.php(31): require_once() #1 /srv/www/trusa.io/releases/20161031154625/web/wp/wp-settings.php(273): include_once('/srv/www/trusa....') #2 phar:///usr/bin/wp/php/WP_CLI/Runner.php(960): require('/srv/www/trusa....') #3 phar:///usr/bin/wp/php/WP_CLI/Runner.php(904): WP_CLI\Runner->load_wordpress() #4 phar:///usr/bin/wp/php/wp-cli.php(21): WP_CLI\Runner->start() #5 phar:///usr/bin/wp/php/boot-phar.php(5): include('phar:///usr/bin...') #6 /usr/bin/wp(4): include('phar:///usr/bin...') #7 {main} thrown in /srv/www/trusa.io/releases/20161031154625/web/app/plugins/cloudflare/cloudflare.loader.php on line 8
Some pertinent info:
PHP 7.0.12-1+deb.sury.org~xenial+1 (cli) ( NTS )
WP-CLI 0.24.1
Cloudflare 3.0.6
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP Fatal error: Uncaught Error: Class ‘CloudFlare\IpRewrite’ not found’ is closed to new replies.