Support » Plugin: Simple Calendar - Google Calendar Plugin » Critical site error after update

  • Resolved Wendy

    (@craew)


    After an update to version 3.1.32 the website return a critical error for this plugin. I currently disabled the plugin.

    Got error 'PHP message: PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/xxxx/apps/default/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1032\n', referer: https://xxxx.be/wp-admin/
    
    Got error 'PHP message: PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/xxxx/apps/default/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1032\n', referer: https://xxxx.be/wp-admin/
    
    Got error 'PHP message: PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/xxxx/apps/default/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1032\n', referer: http://xxxx.be
    
    Got error 'PHP message: PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/xxxx/apps/default/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1032\n', referer: https://xxxx.be/wp-admin/network/site-info.php?id=6
Viewing 15 replies - 16 through 30 (of 71 total)
  • The FTP upload / unzip worked for me as well – Running PHP 7.3.12
    What’s odd is that I’m running this on other sites with the exact same plugins / server etc and it worked fine there.

    simplecalendarsupport

    (@simplecalendarsupport)

    @adminnetwork Do you have access to using FTP? If you deleted the plugin from the admin area and tried to re-upload and it said the directory already exists then it sounds like the folder wasn’t completely removed.

    @simplecalendarsupport – I don’t, but my supervisor does. I’ll see if he can help me complete this step and let you know how we do.
    Thank you,
    Jen

    simplecalendarsupport

    (@simplecalendarsupport)

    @adminnetwork Thank you! Just remove the whole ‘google-calendar-events’ folder completely and try uploading 3.1.32 after you confirm it has been removed.

    Thank you for doing this as this helps us hopefully narrow down what the issues could be!

    @simplecalendarsupport I’m running PHP 7.3+ (per https://wordpress.org/support/topic/critical-site-error-after-update/#post-13358537) and I specifically removed the plugin from the site admin and re-installed it using FTP (per https://wordpress.org/support/topic/critical-site-error-after-update/#post-13358592).

    Seems this is related to certain hosting setups not extracting the plugin fully during update/install considering all that needed to be done for myself & @sflwa was to just install via FTP instead of via the site admin (only difference being we know the FTP upload completed 100% whereas using the site admin must’ve left some files incomplete/missing.)

    What else could it be considering it’s the same version being updated/uploaded (one just via the site admin vs. the other doing so via FTP)?

    FYI, the site I was working with is on GoDaddy-based hosting, and probably one of their cheaper (if not cheapest) plans. Maybe there are too many files needing to be extracted and the process hits a timeout limit that stops the important update/install process too early due to an insufficient/bad hosting setup and/or hiccup…? What else would cause a plugin update/install to stop too early / leave it partially extracted/implemented?

    @kzeni
    I’m on GoDaddy Managed WordPress and out of 10 sites with the plugin only 1 had the update issue.

    My hosting is specifically the Managed WordPress offered by GoDaddy (again, probably the cheapest offering available for that service through GoDaddy.) So the control over server settings, WordPress configurations, etc. are more limited than other hosting options (wasn’t my choice to have them host with this setup, for what its worth.) Here are the extended set of server & database details, if they happen to be helpful in any way: https://gist.github.com/KZeni/570d704ce1d6fe4273196b3f276f9d66

    So we’ve confirmed it’s been with GoDaddy’s Managed WordPress (per myself & @sflwa) hosting and SiteGround Shared Hosting (per https://wordpress.org/support/topic/critical-site-error-after-update/#post-13358577) thus far and it’s inconsistent across multiple sites using similar hosting setups while uploading via FTP seems to fix the experienced issue for everyone that has reported as trying it.

    Curious why GoDaddy’s Managed WordPress hosting & SiteGround Shared Hosting experienced and/or is experiencing this issue. Are they just under-powered hosting environments for what this plugin needs during update/extraction? A hiccup seems odd since it happened to SiteGround and GoDaddy hosted sites (seems unlikely they both had a hiccup at the time of the plugin update.)

    It takes a very long time to install and then I receive a 503 error followed by “There has been a critical error on your website” message.

    @mgc Definitely sounds like it’s running into a timeout limit with your hosting which then leaves the plugin in a broken state (as it appears everyone else here has been running into.)

    Any luck with uploading the current version with (S)FTP instead of doing so via the site admin?

    Any details regarding your hosting?

    
    PHP Version
    MySQL Version
    Curl Version
    Hosting Provider & general plan (GoDaddy Managed WordPress, SiteGround Shared, custom-managed AWS, etc.)
    

    Hi, @kzeni The sites using the plugin are GoDaddy Managed WordPress, running 7.3 PHP. I have three sites using the plugin and all crash (critical error). I’ve tried sFTP to replace the files and no difference.

    @mgc That’s rather weird considering I’m on that same hosting setup (@sflwa is too) and using SFTP to fully re-upload the plugin entirely resolved the issue. You might be encountering a totally different issue due to a plugin conflict or something of that sort (I mean, what else would be different between the sites on the same hosting offering where SFTP upload fully fixed the issue for multiple people while it didn’t for you?)

    What’s the error you get when you enable WP_DEBUG?

    simplecalendarsupport

    (@simplecalendarsupport)

    @mgc Are you deleting the files first or just replacing them? If you are just replacing them it could cause issues since a lot of the vendor files were updated (and some may no longer exist)

    @kzeni Thank you for giving us so much info about your hosting. It definitely does sound like a server timeout issue. It seems to only be happening to a handful of people so at this point it seems less like the plugin is causing the issue, but instead some type of server/host configuration. The more info we are able to gather the better idea we will have to help everyone.

    simplecalendarsupport

    (@simplecalendarsupport)

    Curious why GoDaddy’s Managed WordPress hosting & SiteGround Shared Hosting experienced and/or is experiencing this issue.

    We actually did a live test of this on a Siteground hosted site using the GoGeek plan and there were no issues for us. It’s possible it could be a PHP timeout issue, or it could possibly be something else on the site that is slowing it down. The site we tested on was a pretty light site, so maybe a bigger site with lots of plugins or processes is causing the timeout to occur. Just a thought while we look into this more.

    @kzeni and @simplecalendarsupport, thank you both for responding. I just uploaded/overwrote the existing files via sFTP, every one of them (which took ages to do even with my fiberoptic connection). I don’t have time to do more troubleshooting right now, so I’ve rolled back the affected sites and will just live with the previous, working version of the plugin. I’m hoping the plugin developers can issue an update to fix the problem for all of us affected. Thanks again for your feedback!

    It seems to be an issue with the file on WordPress. I’m having issues even attempting to download it directly from the WordPress page right now. https://downloads.wordpress.org/plugin/google-calendar-events.3.1.32.zip

    It doesn’t complete the download. I’ve made this attempt in multiple browsers and other plugins aren’t having a similar issue when I try to download directly…

    Appear to be on the virus scan that it hangs. Could there be an issue with the file hash or something on the WP side?

    Just to confirm the Zip file has over 13,000 files in it????

    • This reply was modified 1 year, 1 month ago by .
Viewing 15 replies - 16 through 30 (of 71 total)
  • The topic ‘Critical site error after update’ is closed to new replies.