Hi Niel,
I was going through the PHP error log & found something very odd – “Unknown or bad timezone (+5.5)” mentioned in one place at the log with reference to the plugin name. So, I tried setting different timezone in WordPress backend & found when the timezone is set to either UTC+5:30 or UTC+5:45 or UTC-5:30, the system goes down with “Critical Error”, setting to any other timezone has no ill effect. The system currently has following configuration:
WordPress – 6.3.1
Divi – 4.22.1
Availability Datepicker – 2.3
PHP – 8.1.6
MySQL – 5.7.23-23
Apache – 2.4.57
Error log (part):
[12-Sep-2023 07:06:59 UTC] PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (+5.5) in /home4/caiibvjc/public_html/wp-content/plugins/date-time-picker-field/includes/DateTimePicker.php:326 Stack trace: #0 /home4/caiibvjc/public_html/wp-content/plugins/date-time-picker-field/includes/DateTimePicker.php(326): DateTimeZone->__construct(‘+5.5’) #1 /home4/caiibvjc/public_html/wp-content/plugins/date-time-picker-field/includes/DateTimePicker.php(189): CMoreira\Plugins\DateTimePicker\DateTimePicker->get_next_available_time(Array) #2 /home4/caiibvjc/public_html/wp-includes/class-wp-hook.php(310): CMoreira\Plugins\DateTimePicker\DateTimePicker->scripts(”) #3 /home4/caiibvjc/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #4 /home4/caiibvjc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home4/caiibvjc/public_html/wp-includes/script-loader.php(2225): do_action(‘wp_enqueue_scri…’) #6 /home4/caiibvjc/public_html/wp-includes/class-wp-hook.php(310): wp_enqueue_scripts(”) #7 /home4/caiibvjc/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #8 /home4/caiibvjc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home4/caiibvjc/public_html/wp-includes/general-template.php(3053): do_action(‘wp_head’) #10 /home4/caiibvjc/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-header-template.php(11): wp_head() #11 /home4/caiibvjc/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(216): require_once(‘/home4/caiibvjc…’) #12 /home4/caiibvjc/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(247): et_theme_builder_frontend_override_partial(‘header’, ”, ‘wp_head’) #13 /home4/caiibvjc/public_html/wp-includes/class-wp-hook.php(312): et_theme_builder_frontend_override_header(NULL) #14 /home4/caiibvjc/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #15 /home4/caiibvjc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /home4/caiibvjc/public_html/wp-includes/general-template.php(38): do_action(‘get_header’, NULL, Array) #17 /home4/caiibvjc/public_html/wp-content/themes/Divi/page.php(3): get_header() #18 /home4/caiibvjc/public_html/wp-includes/template-loader.php(106): include(‘/home4/caiibvjc…’) #19 /home4/caiibvjc/public_html/wp-blog-header.php(19): require_once(‘/home4/caiibvjc…’) #20 /home4/caiibvjc/public_html/index.php(17): require(‘/home4/caiibvjc…’) #21 {main} thrown in /home4/caiibvjc/public_html/wp-content/plugins/date-time-picker-field/includes/DateTimePicker.php on line 326
If you need to check the system, I can provide you WordPress admin access to the site.
Best regards,
Manas M.