Fatal error when using wp-cli
-
I am getting error using wp-cli command.
For example:php wp-cli.phar eval "do_action('plugins_loaded');"
After that I get an error like:PHP Fatal error: ?Uncaught RuntimeException: The TEC\Common\StellarWP\Installer\Config::set_hook_prefix() has already been called and set to tec. in d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\vendor\vendor-prefixed\stellarwp\installer\src\Installer\Config.php:53
Program versions:
PHP 8.2.4
WP – 6.2.2
The Events Calendar plugin – 6.0.9 – 6.1.0.2 (only in 6.0.8 there is no such bug.)
This is pure WP. No plugins or themes installed anymore.
Full error example:PHP Fatal error: Uncaught RuntimeException: The TEC\Common\StellarWP\Installer\Config::set_hook_prefix() has already been called and set to tec. in d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\vendor\vendor-prefixed\stellarwp\installer\src\Installer\Config.php:53 Stack trace:
0 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\src\Common\Libraries\Installer\Provider.php(22): TEC\Common\StellarWP\Installer\Config::set_hook_prefix('tec') 1 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\vendor\vendor-prefixed\lucatume\di52\src\Container.php(455): TEC\Common\Libraries\Installer\Provider->register() 2 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\src\Tribe\Container.php(291): TEC\Common\lucatume\DI52\Container->register('TEC\Common\Libr…') 3 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\src\Common\Libraries\Provider.php(28): tribe_register_provider('TEC\Common\Libr…') 4 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\vendor\vendor-prefixed\lucatume\di52\src\Container.php(455): TEC\Common\Libraries\Provider->register() 5 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\src\Tribe\Container.php(291): TEC\Common\lucatume\DI52\Container->register('TEC\Common\Libr…') 6 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\src\Tribe\Main.php(745): tribe_register_provider('TEC\Common\Libr…') 7 d:\xampp\htdocs\wp-6.2.2.test\wp-content\plugins\the-events-calendar\common\src\Tribe\Main.php(127): Tribe__Main->bind_implementations() 8 d:\xampp\htdocs\wp-6.2.2.test\wp-includes\class-wp-hook.php(308): Tribe__Main->plugins_loaded('') 9 d:\xampp\htdocs\wp-6.2.2.test\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 10 d:\xampp\htdocs\wp-6.2.2.test\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 11 phar://d:/xampp/htdocs/wp-6.2.2.test/wp-cli.phar/vendor/wp-cli/eval-command/src/Eval_Command.php(39) : eval()'d code(1): do_action('plugins_loaded') 12 phar://d:/xampp/htdocs/wp-6.2.2.test/wp-cli.phar/vendor/wp-cli/eval-command/src/Eval_Command.php(39): eval() 13 [internal function]: Eval_Command->__invoke(Array, Array) .....
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Fatal error when using wp-cli’ is closed to new replies.