• Resolved jonb123

    (@jonb123)


    I am managing wordpress for a nonprofit Lancaster AA. Today the events calendar throws a fatal php error which takes down the site:

    Parse error: syntax error, unexpected ‘[‘ in /home/content/84/11633384/html/wp-content/plugins/the-events-calendar/common/src/Tribe/PUE/Notices.php on line 237

    https://www.lancasteraa.org/

    I was able to disable all the plugins and get the site running again.

    This is the line that throws the error:
    $empty_key = Tribe__Utils__Array::get( $empty_key, [ 0 ] );

    I performed your troubleshooting steps (thanks!) I tested with 2016 Theme. I turned off the other plugins. Events Calendar still throws this error (but now WP catches it so site doesn’t go down, nice).

    The site is on PHP 5.3.24 with WordPress 4.9.8 and Events Calendar 4.7

    Any ideas?

    thanks!
    Jon

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same issue here.

    I disabled the event calendar manually then was able to deleted it from the dashboard. When I tried to re-install the plugin it failed showing the error:

    Destination folder already exists. /data/17/2/13/7/2339496/user/2568658/htdocs/wordpress1/wp-content/plugins/the-events-calendar/
    
    Plugin installation failed.

    I confirmed before starting the install that the event calendar folder was not present.

    • This reply was modified 6 years, 3 months ago by andrewslade.
    • This reply was modified 6 years, 3 months ago by andrewslade.
    Barry

    (@barryhughes-1)

    Hi Jon,

    First of all let me say we’re really sorry for the inconvenience. A fix is being prepared and should be available shortly.

    Alternatively, if your web host supports doing this, you might try switching to a more modern version of PHP. At this point in time, PHP 5.3 has not officially been supported by the PHP Group for over 4 years or thereabouts (in fact, the oldest currently supported version is PHP 5.6 – and only just so, as support for that version ends in the new year).

    Again, we’re really sorry for the disruption – but a fix will be available soon (though if you can move to a newer PHP – which we’d strongly recommend in any case – you can probably solve this before then).

    Barry

    (@barryhughes-1)

    @andrewslade … it looks like the secondary issue (“Destination folder already exists”) is because the plugin folder for some reason was not completely deleted.

    If you are comfortable doing so, you may find removing it via FTP is best, or else I’m sure your web host will be happy to help.

    I ran into this earlier today and fixed it by logging in to the web server and editing the notices.php file. Simply remove the brackets around the 0 on line 237 and it will work.

    I will be much more cautious upgrading event calendar in the future.

    The site I manage was down for 30 minutes today while I was fixing the issue.

    Thread Starter jonb123

    (@jonb123)

    Thanks @barryhughes-1 for the quick response!

    I am able to change to php 5.6. Changing that is a good idea. That version seems to be the highest supported by our hosting company.

    Thanks @mrklewis I can do that as well.

    Barry

    (@barryhughes-1)

    Excellent. You don’t need to do both, though, and I’d generally advise against modifying core plugin code except in emergencies.

    In this case, we’ve fixed things in our very latest release so updating to that version (or updating PHP) are the best ways to go ??

    Hey there,

    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help! ??

    Take care,
    Ed ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal PHP Error’ is closed to new replies.