Error when activating plugin with wp cli command

[ad_1]

Installation and activation of this plugin via wordpress backend works fine.

When I try to activate it from the command line I get this error:

WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘IF EXISTS wp_ip2location_country_blocker_rate_limit_log’ at line 1 for query DROP IF EXISTS wp_ip2location_country_blocker_rate_limit_log made by include(‘phar:///usr/local/bin/wp/php/boot-phar.php’), include(‘phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner->start, WP_CLI\Runner->run_command_and_exit, WP_CLI\Runner->run_command, WP_CLI\Dispatcher\Subcommand->invoke, call_user_func, WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}, call_user_func, Plugin_Command->activate, activate_plugin, do_action(‘activate_ip2location-country-blocker/ip2location-country-blocker.php’), WP_Hook->do_action, WP_Hook->apply_filters, IP2LocationCountryBlocker->set_defaults, IP2LocationCountryBlocker->create_table

The module still gets activated and seems to work too.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer