Home › Forums › Ticket Products › Event Tickets Plus › Fatal Error line 51
- This topic has 3 replies, 3 voices, and was last updated 8 years, 4 months ago by Brian.
-
AuthorPosts
-
December 17, 2015 at 8:37 am #1042982WillParticipant
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
December 17, 2015 at 10:39 am #1043070BrianKeymasterHi,
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 22, 2015 at 12:28 pm #1045534LeahMemberGood 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,
LeahJanuary 3, 2016 at 8:04 am #1049445BrianKeymasterI 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!
-
AuthorPosts
- The topic ‘Fatal Error line 51’ is closed to new replies.