Title: PHP ERROR call_user_func_array() expects parameter 1 to be a valid callback
Last modified: March 2, 2023

---

# PHP ERROR call_user_func_array() expects parameter 1 to be a valid callback

 *  [pursang20](https://wordpress.org/support/users/pursang20/)
 * (@pursang20)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/)
 * Under the gallery in the single product page we are getting this php error
 * **Warning**: call_user_func_array() expects parameter 1 to be a valid callback,
   class ‘BeRocket_products_label’ not found in **/home/customer/www/xxxxx/public_html/
   new/wp-includes/class-wp-hook.php** on line **308**
 * We have been using the same version 3.5.7.7 on another website without this issue.
 * Could you help in solving this issue?

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

 *  Plugin Author [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * (@dholovnia)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/#post-16536506)
 * Hi,
 * I did test it and now warning found.
   What version of WordPress are you using?
 * Regards,
   Dmytro
 *  Thread Starter [pursang20](https://wordpress.org/support/users/pursang20/)
 * (@pursang20)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/#post-16536942)
 * 6.1.1
 *  Plugin Author [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * (@dholovnia)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/#post-16945789)
 * Hi,
 * Sorry for making you wait. The issue is found. We will release new version of
   the plugin with the fix asap.
 * Regards,
   Dmytro

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

The topic ‘PHP ERROR call_user_func_array() expects parameter 1 to be a valid callback’
is closed to new replies.

 * ![](https://ps.w.org/product-preview-for-woocommerce/assets/icon-256x256.gif?
   rev=2777071)
 * [Product Preview for WooCommerce](https://wordpress.org/plugins/product-preview-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-preview-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-preview-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-preview-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-preview-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-preview-for-woocommerce/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/#post-16945789)
 * Status: not resolved