Found the same error on ssh as well.
https://i.imgur.com/PkYDaPS.png
thrown in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1487
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, array must have exactly two members in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php:1487
Stack trace:
0 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1428): WP_REST_Server->get_data_for_route('/dokan/v2/produ…', Array, 'help')
1 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1255): WP_REST_Server->get_data_for_routes(Array, 'help')
2 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1171): WP_REST_Server->get_index(Object(WP_REST_Request))
3 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/', Array, NULL)
4 /var/www/html/wp-content/plugins/woocommerce/includes/cli/class-wc-cli-runner.php(63): WP_REST_Server->dispatch(Object(WP_REST_Request))
5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php(336): WC_CLI_Runner::after_wp_load()
6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1362): WP_CLI::do_hook('after_wp_load')
7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress()
8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
11 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc…')
We were using WP CLI to update plugins by bash, shell file.
It keeps showing errors from dokan.
If you fix the error, our shell script will be very quite. 🙂
Thank you!
Hi @freeace00,
I can see your topic is similar to this topic. The fix to this issue is mentioned in this PR link. I would also like to inform you that the fix has been added to the latest version of Dokan. Would you mind having a look after updating the Dokan plugin to the latest version and seeing if the issue still persists?
Thanks!
Hi @freeace00,
Due to inactivity, we are marking this topic as resolved. Feel free to open a new one if you face any further issues.
Thanks!