PHP method doesn’t exists when executing a WP CLI command
-
Your plugin is throwing an error when I execute this WP CLI command in one of my client’s server:
wp profile hook --all --spotlight --allow-root --format=table --orderby=timeThe errors are:
#0 /www/.wp-cli/packages/vendor/wp-cli/profile-command/inc/class-profiler.php(486): ReflectionMethod->__construct(Object(CustomCSSandJS), 'print_frontend-...')Fatal error: Uncaught ReflectionException: Method CustomCSSandJS::print_frontend-js-header-external() does not exist in /www/.wp-cli/packages/vendor/wp-cli/profile-command/inc/class-profiler.php:486Looks like is trying to call
print_frontend-js-header-externalmethod when is not generated at the moment when I execute the command.That error won’t let me continue my profiling process so I have to deactivate for now. That’s the bug for now, hopefully you can fix it.
Thanks.
The topic ‘PHP method doesn’t exists when executing a WP CLI command’ is closed to new replies.