REST error with Pantheon hosting
-
When the Patheon clear cache function runs, it fails and the logs show this area linked to the plugin. Any solutions?
[02-May-2025 17:05:07 UTC] PHP Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, array callback must have exactly two members in /code/wp-includes/rest-api/class-wp-rest-server.php:1631
Stack trace: 0 /code/wp-includes/rest-api/class-wp-rest-server.php(1572): WP_REST_Server->get_data_for_route(‘/tribe/tickets/…’, Array, ‘help’) 1 /code/wp-includes/rest-api/class-wp-rest-server.php(1379): WP_REST_Server->get_data_for_routes(Array, ‘help’) 2 /code/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Server->get_index(Object(WP_REST_Request)) 3 /code/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/’, Array, NULL) 4 /code/wp-content/plugins/woocommerce/includes/cli/class-wc-cli-runner.php(63): WP_REST_Server->dispatch(Object(WP_REST_Request)) 5 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/vendor/wp-cli/wp-cli/php/class-wp-cli.php(336): WC_CLI_Runner::after_wp_load() 6 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1401): WP_CLI::do_hook(‘after_wp_load’) 7 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1294): WP_CLI\Runner->load_wordpress() 8 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() 9 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) 10 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() 11 phar:///opt/pantheon/wpcli/wp-cli-2.11.0.phar/php/boot-phar.php(20): include(‘phar:///opt/pan…’) 12 /opt/pantheon/wpcli/wp-cli-2.11.0.phar(4): include(‘phar:///opt/pan…’) 13 {main}thrown in /code/wp-includes/rest-api/class-wp-rest-server.php on line 1631
The topic ‘REST error with Pantheon hosting’ is closed to new replies.