• Resolved wpp87567

    (@robert1776)


    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 5 years, 7 months ago by wpp87567.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Robert!

    I’m not sure why you’re having this problem. Could you make sure all your plugins are up-to-date?

    Did you customize Event Tickets or The Events Calendar within your theme? Besides, are you using a theme which integrates with our plugins?

    Could you test for conflicts following these instructions?

    Let us know how it goes 🙂

    Thanks, have a nice day!
    Jeremy

    Its been a while now since this ticket had a response. I’ll go ahead and mark it as resolved but please feel free to open a new one if you still need assistance.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Ajax error when user session expires’ is closed to new replies.