Fatal error: Can't use function return value in write context in

Home Forums Ticket Products Event Tickets Plus Fatal error: Can't use function return value in write context in

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1042606
    Eric Putnam
    Participant

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

    on full events page after updating events calendar, Event Tickets, Event Tickets plus

    http://979.503.mwp.accessdomain.com/event/nye-2016-with-roky-erickson-and-the-hounds-of-baskerville/

    #1043068
    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

    #1045536
    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

    #1049444
    Brian
    Member

    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: Can't use function return value in write context in’ is closed to new replies.