I am also getting this error in the console on the settings page:
GET http://www.richmondhillcourt.com/wp-content/plugins/court-reservation/admin/admin/vendor/jquery-ui.css
On the page itself, at the bottom, it lists the first type – Single, then the following error:
“There has been a critical error on this website…”
Just found the error message in the email, which will hopefully be helpful:
Error Details
=============
An error of type E_ERROR was caused in line 698 of the file /home3/dsbwzhmy/public_html/wp-content/plugins/court-reservation/admin/partials/courtres-settings.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in /home3/dsbwzhmy/public_html/wp-content/plugins/court-reservation/admin/partials/courtres-settings.php:698
Stack trace:
#0 /home3/dsbwzhmy/public_html/wp-content/plugins/court-reservation/admin/partials/courtres-settings.php(698): in_array('Single', false)
#1 /home3/dsbwzhmy/public_html/wp-content/plugins/court-reservation/admin/class-courtres-admin.php(703): require_once('/home3/dsbwzhmy...')
#2 /home3/dsbwzhmy/public_html/wp-includes/class-wp-hook.php(307): Courtres_Admin->load_admin_settings('')
#3 /home3/dsbwzhmy/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#4 /home3/dsbwzhmy/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#5 /home3/dsbwzhmy/public_html/wp-admin/admin.php(259): do_action('toplevel_page_c...')
#6 {main}
thrown
Hi – could you tell me which version of Court Reservation you are using?
Have you tried, or would you be able to try a fresh install of the plugin?
Best regards,
Christoph
Hi Christoph,
I am using version 1.7.1
I’d rather not re-install if possible – I’d need to then re-create 108 users and reset their passwords.
Thanks for the quick response.
Slava
If it helps, our site is here:
http://www.richmondhillcourt.com/tennis/
It’s probably irrelevant – but the plugin also causes the site to be very slow – ~5 seconds load times. If I disable it, things load pretty much instantly.
If you re-install the plugin the users are not affected.
I will also check if I find something wrong in the current version, on my testing sites I hadn’t had a problem yet.
I’ve tried the re-install now, unfortunately, the issue is still there.
It started after a recent update
Ok, I will have to fix this with a new update. Until then, please try version 1.6.2
https://plugins.svn.ww.wp.xz.cn/court-reservation/tags/1.6.2/
Please try also this: Go to Court Reservation Settings -> Settings -> and reconfigure all reservation types (single, double, etc.)
Installing the older version fixed things.
Thank you very much for your help.