404 AJAX error using shortcode
-
Hello,
I have a strange issue. When I use the shortcode [calendar id=”774″] of a grid calendar on a normal page, it is not possible to go to the next or previous month, the loading icon remains visible. It turned out that the AJAX response has a status code 404, but the ‘data’ and ‘success’ fields are returned correctly by the server. As a result of the status code, the data is not processed and the calender is not updated. However, instead of using the shortcode but on the calendar page itself (https://domain.com/calendar/xyz), this issue is not present and the the calendar is working correctly.
Do you know what could cause this problem? It is now fixed by changing line 576 of ‘includes/calendars/views/default-calendar-grid.php’ to the following:
wp_send_json_success( $this->draw_month( $month, $year, $id ), 200 );
I hope you have a solution for this bug, so this fix is not overwritten by the next version of the plugin.
The topic ‘404 AJAX error using shortcode’ is closed to new replies.