Title: php errors
Last modified: October 3, 2023

---

# php errors

 *  [nanny7](https://wordpress.org/support/users/nanny7/)
 * (@nanny7)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-errors-305/)
 * Hi I keep getting this error:
 *     ```wp-block-code
       PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'my_prefix_cartpops_empty_cart_url' not found or invalid function name in /home2/danteste/domains/books.websitescreated.com.au/public_html/wp-includes/class-wp-hook.php on line 310
       ```
   
 * How to fix please.

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

 *  [cartpopsteam](https://wordpress.org/support/users/cartpopsteam/)
 * (@cartpopsteam)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-errors-305/#post-17104509)
 * Hey Nanny7,
 * I’m sorry to hear that you’re encountering this error. To help you resolve this
   issue, could you please provide more context? Specifically, where are you seeing
   this error message? Did you recently add a custom script or make any changes 
   to your website?
 * In the meantime, here are a couple of steps you can try to resolve the issue:
    1. **Reinstall the Plugin:** If this error is related to a specific plugin, consider
       reinstalling it. Sometimes, plugin files can get corrupted during updates or
       installations.
    2. **Check PHP Version:** Make sure you are using PHP version 7.4 or higher. Older
       PHP versions may not be compatible with some plugins or scripts. You can usually
       change the PHP version in your hosting control panel.
 * Feel free to share more details about the error or your website setup, and I’ll
   do my best to assist you further.
 * Best,
 * Niel, Cartpops
 *  Thread Starter [nanny7](https://wordpress.org/support/users/nanny7/)
 * (@nanny7)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-errors-305/#post-17131839)
 * Hi I was using php 8.1 and it was giving errors.

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

The topic ‘php errors’ is closed to new replies.

 * ![](https://ps.w.org/cartpops/assets/icon-256x256.png?rev=2459769)
 * [CartPops - High Converting Add To Cart Popup For WooCommerce](https://wordpress.org/plugins/cartpops/)
 * [Support Threads](https://wordpress.org/support/plugin/cartpops/)
 * [Active Topics](https://wordpress.org/support/plugin/cartpops/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cartpops/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cartpops/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nanny7](https://wordpress.org/support/users/nanny7/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/php-errors-305/#post-17131839)
 * Status: not resolved