Fatal Error line 51

Home Forums Ticket Products Event Tickets Plus Fatal Error line 51

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1042982
    Will
    Participant

    Hi, there seem to be a few of these issues, so i’m just adding that i am also getting the same error showing in the site – Fatal error: Can’t use function return value in write context in mysite/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Orders/Cancelled.php on line 51

    #1043070
    Brian
    Keymaster

    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

    #1045534
    Leah
    Member

    Good news everyone!

    We’ve just release a maintenance release that addresses this issue. Please look for updates to your Events plugin(s) on your site. Thank you for your patience while we worked to address the reported issues. And don’t forget to review the release notes for all the details on version 4.0.3.

    While our testing shows that the new release fixes the problem reported here, sites are different and it’s possible that there are edge cases. If you are still seeing the issue after you update your plugins, please post a new thread so we can look into it further.

    Thank you for your support!

    Best,
    Leah

    #1049445
    Brian
    Keymaster

    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error line 51’ is closed to new replies.