Title: call_user_func error.
Last modified: March 9, 2023

---

# call_user_func error.

 *  Resolved [freeace00](https://wordpress.org/support/users/freeace00/)
 * (@freeace00)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call_user_func-error-3/)
 * A great plugins,
 * However, dokan lite causes this error.
 * Warning: call_user_func() expects parameter 1 to be a valid callback, array must
   have exactly two members in /…./public_html/wp-includes/rest-api/class-wp-rest-
   server.php on line 1487
 * We have found it on our error log and deactivate all plugins enabled 1 by 1 multiple
   times. Dokan caused this error.
 * We hope you can fix it.
 * Thank you for a great plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [freeace00](https://wordpress.org/support/users/freeace00/)
 * (@freeace00)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call_user_func-error-3/#post-16542486)
 *     ```wp-block-code
       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 1487Fatal 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:1487Stack 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!
 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call_user_func-error-3/#post-16549177)
 * Hi [@freeace00](https://wordpress.org/support/users/freeace00/),
 * I can see your topic is similar to [this topic](https://wordpress.org/support/topic/plugin-is-generating-php-warning-and-error/).
   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!
 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/call_user_func-error-3/#post-16572293)
 * Hi [@freeace00](https://wordpress.org/support/users/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!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘call_user_func error.’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/call_user_func-error-3/#post-16572293)
 * Status: resolved