One event view crashed

Home Forums Calendar Products Events Calendar PRO One event view crashed

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1043318
    Birgit Bauer
    Participant

    Hello,

    since yesterday I have a problem with the view of one event.

    The events overview with all events listed works but if I choose to take a closer look at one event the site doen’t show the event and the whole website doesn’t display … only the background graphics.
    What can I do to solve this problem?

    As far as I remember I didn’t do any changes at the events but updating the plugins Events Calendar Pro and Event Tickets Plus.

    Thank you!

    #1043717
    Birgit Bauer
    Participant

    Hello again,

    I could find the plugin that causes the problem. It’s Event Tickets Plus – if it is deactivated the events are shown like before … but I can’t sell them .. so please I need a fix for that.

    #1043780
    Brian
    Member

    Hi,

    Sorry for the issues here.

    In versions less than PHP 5.5 this error is occurring due to the incorrect use of the empty function.

    In this file:

    event-tickets-plus/src/Tribe/Commerce/WooCommerce/Orders/Cancelled.php

    on line 51

    If you replace this:

    if ( empty( get_post( $ticket_id ) ) ) {

    With this:

    $ticket_post = get_post( $ticket_id );
    if ( empty( $ticket_post ) ) {

    That should fix the issue for now.

    Let me know if that works for you.

    Thanks

    #1043815
    Birgit Bauer
    Participant

    Hello Brian,

    so it would help too to switch to php 5.5. ?

    #1043826
    Brian
    Member

    It might in this case, but that change will work just as well.

    Not sure if this is your exact issue, but it was something to try as a first step.

    Thanks

    #1043912
    Birgit Bauer
    Participant

    Hello Brian,

    ok I changed the lines and it works. But how can I make shure it doesn’t happen after next update? Won’t it overwrite this changes again?

    #1044138
    Brian
    Member

    The next update will have this fix in place so you should be all set to update and not have this issue again.

    I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘One event view crashed’ is closed to new replies.