Title: PHP8.x compatibility?
Last modified: June 10, 2022

---

# PHP8.x compatibility?

 *  Resolved [nmxde](https://wordpress.org/support/users/nmxde/)
 * (@nmxde)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php8-x-compatibility/)
 * Hello,
 * Has Bookly been tested with PHP8? Using PHP8.1 I get this error at the end of
   the booking process (after e-mail has been sent, before forwarding to confirmation
   page):
 *     ```
       wp-web-1  | 2022/06/10 09:13:35 [error] 31#31: *3052 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/utils/Codes.php:54
       wp-web-1  | Stack trace:
       wp-web-1  | #0 /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/utils/Codes.php(54): in_array('service_info', true)
       wp-web-1  | #1 /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/utils/Codes.php(31): Bookly\Lib\Utils\Codes::stringify(Array, Array, true)
       wp-web-1  | #2 /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/frontend/components/booking/InfoText.php(39): Bookly\Lib\Utils\Codes::replace('Danke! Ihre Buc...', Array, true)
       wp-web-1  | #3 /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/frontend/modules/booking/Ajax.php(687): Bookly\Frontend\Components\Booking\InfoText::replace('Danke! Ihre Buc...', Array)
       wp-web-1  | #4 [internal function]: Bookly\Frontend\Modules\Booking\Ajax::renderComplete()
       wp-web-1  | #5 /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/base/Ajax.php(54): call_user_func(Array)
       wp-web-1  | #6 /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/base/Ajax.php(31): Bookly\Lib\Base\Ajax::forward('renderComplete', true, true)
       wp-web-1  | #7 /var/www/html/wp-includes/class-wp-hook.php(307): Bookly\Lib\Base\Ajax::Bookly\Lib\Base\{closure}('')
       wp-web-1  | #8 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       wp-web-1  | #9 /var/www/html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
       wp-web-1  | #10 /var/www/html/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
       wp-web-1  | #11 {main}
       wp-web-1  |   thrown in /var/www/html/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/utils/Codes.php on line 54" while reading response header from upstream, client: 178.27.193.205, server: _, request: "GET /wp-admin/admin-ajax.php?action=bookly_render_complete&csrf_token=9fcb380808&form_id=62a30b19a31be HTTP/1.1"
       ```
   
 * It works fine with PHP7.x, same site, no other changes.
 * Hope this can be fixed…
    Thanks!

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

 *  Plugin Support [booklysupport](https://wordpress.org/support/users/booklysupport/)
 * (@booklysupport)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php8-x-compatibility/#post-15725775)
 * Hello,
 * Thank you for your message.
 * The error will be fixed in the next release.
 * Let us know if you have any other questions.
 *  Thread Starter [nmxde](https://wordpress.org/support/users/nmxde/)
 * (@nmxde)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php8-x-compatibility/#post-15727297)
 * Thanks for the quick and positive reply. Quite appreciated!

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

The topic ‘PHP8.x compatibility?’ is closed to new replies.

 * ![](https://ps.w.org/bookly-responsive-appointment-booking-tool/assets/icon-256x256.
   png?rev=2847809)
 * [Online Scheduling and Appointment Booking System – Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nmxde](https://wordpress.org/support/users/nmxde/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/php8-x-compatibility/#post-15727297)
 * Status: resolved