• Resolved nmxde

    (@nmxde)


    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

    (@booklysupport)

    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

    (@nmxde)

    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.