Fatal error in 4.0.2 patch; frontend Sales en Attendees rapport

Home Forums Ticket Products Community Tickets Fatal error in 4.0.2 patch; frontend Sales en Attendees rapport

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1042653
    Dirk
    Participant

    Hi guys,

    Thank you for patching the wordpress 4.4 problems with the 4.0.2 patch. However; on updating all the plugins to 4.0.2. we got a fresh new fatal error on the attendees and sales rapports:
    Fatal error: Can’t use function return value in write context in /home/…/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Orders/Cancelled.php on line 51

    Good luck on it again!

    #1042656
    Dirk
    Participant

    As extra info: reverting the Tickets Plus plugin to 4.0.1 resolved it. 🙂

    #1042951
    Will
    Participant

    Were can you download the older version?, i have this issue on a fresh install of Tickets Plus, thanks.

    #1043022
    Dirk
    Participant

    Hi,

    Not sure if new users also have the option to download old editions but if so you can download it here:

    My Account

    Just select the 4.0.1 from the dropdown menu. 🙂

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

    #1044124
    Dirk
    Participant

    Hi Brian,

    Thank you for the quick respons, it worked!
    Since we’re on a shared hosting provide we cannot update our PHP to 5.5. Hopefully this will not become an issue.

    Cheers,
    Dirk

    #1044140
    Brian
    Keymaster

    Great glad it is working.

    We are fixing this for 4.0.3 and it should not be an issue then for future updates.

    We support the same version of PHP WP does at 5.2…,but we sometimes get ahead of ourselves and introducing coding that does not work with that version.

    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!

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Fatal error in 4.0.2 patch; frontend Sales en Attendees rapport’ is closed to new replies.