• Resolved maddogprod

    (@maddogprod)


    The new update has caused a critical error in several sites that aren’t using PHP v7.4 and above. I understand how you may need to use recent versions of PHP but it would be good to add some code as other plugins do so if the PHP version isn’t current enough it won’t update and will give a notice in the WP Dashboard. Much more elegant than causing critical errors, having the client freak, and having to figure out the problem and fix it (either upgrade PHP or roll back TEC).

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support WilloftheD

    (@abzlevelup)

    Hi @maddogprod, that’s not good. I am curious about your setup. For me to understand and learn more about your setup, could you provide the following version of the following?

    1. WordPress
    2. The Events Calendar
    3. Theme and Version

    Also, could you share the direct URL to the page you’re having issues with? Please do not share any credentials, this is for us to follow the WordPress Forum Guidelines.

    Looking forward to helping you with this one.

    Thread Starter maddogprod

    (@maddogprod)

    Both sites are working now because I upgraded PHP to 7.4 so there’s not a lot to see. They were both WP 6.6.1, I was upgrading to TEC 6.0.7, they use Divi 4.19.4 so everything is current. They *were* using PHP 7.3x

    When I updated TEC I got the critical error page for the site. Checking WP errors on, it was TEC throwing the error and it said it needed PHP 7.4. The first site I downgraded TEC and it worked again. Then I upgraded PHP to 7.4 and re-updated TEC and it was fine. So when the second site did it too I immediately upgrade PHP.

    The only thing I can find to pass on is one site’s error log, repeatedly showing:

    [18-Jan-2023 17:09:46 UTC] PHP Parse error: syntax error, unexpected ‘)’ in /home/oursitename/public_html/wp/wp-content/plugins/the-events-calendar/common/src/Tribe/Rewrite.php on line 771

    That’s what I know. Hope it helps.

    Plugin Support Darian

    (@d0153)

    Hi @maddogprod

    Thanks for your response and for providing additional details.

    We are already aware of that particular error and that should be resolved on our next release.

    In the meantime, you could manually remove the extra comma , on line 770 from this file: plugins/the-events-calendar/common/src/Tribe/Rewrite.php

    Let me know if you have further questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi @maddogprod

    I hope you are well. I wanted to follow up about the issue you encountered. Does the issue persist after updating The Events Calendar to the latest version (v6.0.8)?

    Let me know if you have other questions or concerns.

    Thread Starter maddogprod

    (@maddogprod)

    I don’t know, Darian @d0153. Since I upgraded to PHP 7.4 in order to check that I’d need to downgrade it and see if I get the same problem. If I have a chance I’ll give it a shot and see.

    Plugin Support Darian

    (@d0153)

    @maddogprod Thanks for your response.

    The issue should be resolved with the latest version of the plugin. If you still encounter any issues, please do let us know.

    Plugin Support Darian

    (@d0153)

    Hi @maddogprod

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Update Causes Critical Error unless PHP is 7.4+’ is closed to new replies.