Home › Forums › Ticket Products › Community Tickets › Fatal error in 4.0.2 patch; frontend Sales en Attendees rapport
- This topic has 7 replies, 4 voices, and was last updated 8 years, 4 months ago by Leah.
-
AuthorPosts
-
December 16, 2015 at 11:51 pm #1042653DirkParticipant
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 51Good luck on it again!
December 17, 2015 at 12:06 am #1042656DirkParticipantAs extra info: reverting the Tickets Plus plugin to 4.0.1 resolved it. 🙂
December 17, 2015 at 8:19 am #1042951WillParticipantWere can you download the older version?, i have this issue on a fresh install of Tickets Plus, thanks.
December 17, 2015 at 9:31 am #1043022DirkParticipantHi,
Not sure if new users also have the option to download old editions but if so you can download it here:
Just select the 4.0.1 from the dropdown menu. 🙂
December 17, 2015 at 10:38 am #1043069BrianKeymasterHi,
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
December 19, 2015 at 7:19 am #1044124DirkParticipantHi 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,
DirkDecember 19, 2015 at 8:45 am #1044140BrianKeymasterGreat 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!
December 22, 2015 at 12:29 pm #1045537LeahMemberGood 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 -
AuthorPosts
- The topic ‘Fatal error in 4.0.2 patch; frontend Sales en Attendees rapport’ is closed to new replies.