We’re running into this same issue which generated this error in the console:
Uncaught TypeError: response.sort is not a function
at Object.success (frontend-bootstrap.js:635:26)
at c (jquery.min.js:2:25304)
at Object.fireWith [as resolveWith] (jquery.min.js:2:26053)
at l (jquery.min.js:2:77782)
at XMLHttpRequest.<anonymous> (jquery.min.js:2:80265)
Here is a temporary fix we added to functions.php until the plugin is fixed:
function fix_easy_appointments_response() {
if (isset($_POST['action']) && $_POST['action'] === 'ea_get_available_times') {
add_filter('wp_send_json_success_data', function($data) {
return isset($data['calendar_slots']) ? $data['calendar_slots'] : $data;
});
}
}
add_action('init', 'fix_easy_appointments_response');
-
This reply was modified 7 months, 3 weeks ago by
Tim Bowen. Reason: added fix
Hi, Thank you for reaching out to us. We are currently looking into this concern and will update you shortly.
@akshaycode1 any updates on a fix for this? Our function hack is working for some users but we are still getting quite a few complaints saying that the calendar gets stuck on the spinner and they are unable to choose a date. Please let me now if there is anything we can do to help.
Hi,
We have checked on our end but couldn’t find the issue. Could you please share a short video showing the steps you are taking and the issue occurring, so we can follow the same steps to reproduce it?