Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Ajax error when user session expires

$
0
0

Replies: 0

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 c

Users 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_check then returns {"success":true,"data":{"html":""}} and triggers an exception.

  • This topic was modified 48 minutes ago by robert7.

Viewing all articles
Browse latest Browse all 59525

Trending Articles