Fatal PHP Error, Class not Public

Home Forums Ticket Products Event Tickets Plus Fatal PHP Error, Class not Public

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1633482

    I am updating the Tickets Plus plugin, and as soon as I do I receive the following error:

    PHP Fatal error: Access level to Tribe__Tickets_Plus__Tickets::login_required() must be public (as in class Tribe__Tickets__Tickets) in home1/bythebo2/public_html/eola/wp-content/plugins/event-tickets-plus/src/Tribe/Tickets.php on line 133

    I am using a custom theme, and I asked the developer and here is the response I got:

    Based on that error message, that appears to be a bug in the Tribe Tickets Plus plugin – they are forming their classes improperly. (For reference, check out https://stackoverflow.com/questions/11183190/access-level-to-certain-class-must-be-public-error-in-php ). From that error log, I can’t tell what the parent class is for that, so I can’t tell you without access to the files what upstream could be triggering that, but I’d definitely suggest reaching out to that plugin author, since that code would be out of your or my control. There definitely isn’t anything in the theme that is doing out of the ordinary lifting, or messing around with global classes.

    Now when I switch to the twenty seventeen theme, the new plugin works – so I guess the info I need is: what class needs the permission? How is this fixed? I am happy to give you any access to the site to figure it out. Thanks!

    #1635151
    Jeremy
    Keymaster

    Hi,

    Thanks for reaching out to us! I’d be happy to help you 🙂

    First of all, could you please share your System Information?

    Then, could you make sure you updated our core plugins (The Events Calendar and Event Tickets plugin) before updating Event Tickets Plus?

    Please let me know how it goes.

    Cheers,
    Jeremy

    #1635741

    This reply is private.

    #1636051
    Jeremy
    Keymaster

    This reply is private.

    #1640835
    Nico
    Member

    Hi there,

    Reaching out to let you know a fix for this issue has been released as part of Event Tickets 4.8.2.1. The fix will prevent the fatal error and enforces Event Tickets Plus to be updated to use both plugins. A manual update might be required in some cases.

    Please let us know if updating Event Tickets and Event Tickets Plus to the latest versions works for you,

    Thanks for the patience while we fixed this bug.

    Best,
    Nico

    #1652410
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Fatal PHP Error, Class not Public’ is closed to new replies.