Title: Fatal error with PHP8
Last modified: June 17, 2022

---

# Fatal error with PHP8

 *  Resolved [luisvelaz](https://wordpress.org/support/users/luisvelaz/)
 * (@luisvelaz)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-with-php8/)
 * When a product is removed from the cart the plugin triggers an error with PHP8:
 * Fatal error: Uncaught Error: count(): Argument #1 ($value) must be of type Countable
   |array, null given
    in /home/u753195704/domains/modapureza.com/public_html/wp-
   content/plugins/appointment-hour-booking/cp-main-class.inc.php on line 265

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-with-php8/#post-15749339)
 * Hi,
 * That line number is from an old version of the plugin. Please update to the latest
   plugin version to keep it compatible with PHP 8.
 * Thank you for using the plugin!

Viewing 1 replies (of 1 total)

The topic ‘Fatal error with PHP8’ is closed to new replies.

 * ![](https://ps.w.org/appointment-hour-booking/assets/icon-256x256.png?rev=1784135)
 * [Appointment Hour Booking - Booking Calendar](https://wordpress.org/plugins/appointment-hour-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-hour-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-hour-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-hour-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-hour-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-hour-booking/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-with-php8/#post-15749339)
 * Status: resolved