Critical Error with Grow for WordPress Plugin on REST API and WP-CLI
-
Hi!
I’m experiencing a critical issue caused by the Grow for WordPress plugin. When the plugin is activated, it disrupts the REST API and WP-CLI functionality on my site. Here are the details:
I’ve identified that the issue occurs due to a conflict between the Grow for WordPress plugin and the WooCommerce plugin.
Steps to Reproduce:
- Activate the Grow for WordPress plugin.
- Activate the WooCommerce plugin.
- Run this WP-CLI command:
wp option get siteurl
- The command fails and returns a critical error instead of the expected output.
[24-Jan-2025 12:13:40 UTC] PHP Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object in /home3/paz/err.paz.com/wp-includes/rest-api/class-wp-rest-server.php:1628
Error Log Snippet
Stack trace: 0 /home3/paz/err.paz.com/wp-includes/rest-api/class-wp-rest-server.php(1569): WP_REST_Server->get_data_for_route() 1 /home3/paz/err.paz.com/wp-includes/rest-api/class-wp-rest-server.php(1376): WP_REST_Server->get_data_for_routes()- WordPress Version: 6.7.1
- PHP Version: 8.1.28
- Web server: LiteSpeed
- Grow for WordPress Plugin Version: 1.5.2
Temporary Fix:
When I deactivate the Grow for WordPress plugin, WP-CLI commands and the REST API work correctly again.Could you please investigate this issue and provide a fix?
Thanks!
- You must be logged in to reply to this topic.