500 internal server error

Home Forums Ticket Products Event Tickets Plus 500 internal server error

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1043855
    Roberto
    Participant

    cannot add tickets to Event page. When I add an event, then I add a woocommerce ticket. Save ticket. Then i go to publish and an error occurs. I get an internal server 500 error.

    The page will not show after reloading.

    #1044173
    Venessa
    Participant

    I get this as well!

    I have:

    Events Calendar Pro 4.0.2
    Event Tickets Plus 4.0.2
    All plugins and WordPress is up-to-date.

    Any help appreciated!

    Venessa

    #1044176
    Venessa
    Participant

    I get a fatal PHP error mentioning return value issues in cancelled.php on line 51. Here, I find references to ticket_id.

    I also have Events Manager installed, could there be some kind of ticket_id clash here?

    #1044432
    brooke
    Participant

    I also have an issue.

    I get this error message when i try to add a ticket:

    Fatal error: Can’t use function return value in write context in /home/courageo/public_html/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Orders/Cancelled.php on line 51

    Please help! I can’t schedule ticketed events.

    #1044725
    Venessa
    Participant

    Just removed the other events plugin and still got the same error. Please help!!

    #1044814
    Nico
    Member

    Hi Folks,

    Thanks for reaching out and sorry to hear about you experiencing this issue ๐Ÿ™

    We are aware this is happening in versions less than PHP 5.5, this error is occurring due to the incorrect use of the empty function. A fix for this will be shipped in upcoming maintenance release 4.0.3 coming out really soon.

    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, please let me know if that works for you.

    Best,
    Nico

    #1044826
    Venessa
    Participant

    Ah thank you!! I’ll try it now. ๐Ÿ™‚

    #1044839
    Venessa
    Participant

    All fixed – thank you!

    #1044983
    Nico
    Member

    Hey Vanessa,

    Thanks for confirming ๐Ÿ™‚

    I’ll leave this thread open so Roberto and Brook can confirm this is working for them as well.

    Best,
    Nico

    #1045364
    Roberto
    Participant

    Thank you. worked for me as well.

    #1045409
    Nico
    Member

    Hey Roberto,

    Thanks for confirming this also ๐Ÿ™‚

    @ Brook, if this didn’t work for you please open up a new thread for the issue.

    Iโ€™ll go ahead and close out this thread as the original poster (Roberto) marked this as resolved (and also because Vanessa also confirmed the fix is working).

    Best,
    Nico

    #1045540
    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 12 posts - 1 through 12 (of 12 total)
  • The topic ‘500 internal server error’ is closed to new replies.