Ajax error when user session expires
-
Getting this error a lot in Safari 13 on the single event page:
TypeError undefined is not an object (evaluating 'Object.keys(i)') [native code]:1:2933 keys https://example.com/wp-content/plugins/event-tickets/src/resources/js/tickets-block.min.js:1:2933 https://example.com/wp-content/plugins/event-tickets/src/resources/js/tickets-block.min.js:1:7582 https://example.com/wp-includes/js/jquery/jquery.js:1:27454 i https://example.com/wp-includes/js/jquery/jquery.js:1:28209 fireWith https://example.com/wp-includes/js/jquery/jquery.js:1:86602 x https://example.com/wp-includes/js/jquery/jquery.js:1:90793 cUsers in Chrome get this error:
tickets-block.min.js?ver=5.0.2:1 Uncaught TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at Object.o.length.e.updateAvailability (tickets-block.min.js?ver=5.0.2:1) at Object.success (tickets-block.min.js?ver=5.0.2:1) at i (jquery.js?ver=1.12.4-wp:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2) at x (jquery.js?ver=1.12.4-wp:4) at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)I’m using the classic editor. It appears to occur when the user has the single event page open, then their session times out. My tickets are only accessible when logged in and it appears that when the session times out the periodic admin-ajax call for action
ticket_availability_checkthen returns{"success":true,"data":{"html":""}}and triggers an exception.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Ajax error when user session expires’ is closed to new replies.