Not sure when – but I am getting the following “There has been a critical error on this website.” and had to rename the RSVPMaker plugin directory to get the site back —
Any ideas? in the log it shows:
PHP 8.0.30
Using: Stable tag: 11.2.7
[25-Aug-2024 03:52:56 UTC] PHP Parse error: Unclosed ‘{‘ on line 4206 in /home/… /wp-content/plugins/rsvpmaker/rsvpmaker-util.php on line 4706
This topic was modified 1 year, 8 months ago by ebiz98.
This topic was modified 1 year, 8 months ago by ebiz98.
So I just started from a clean version and I am getting the same critical error after it updates: I am really challenged here… not sure what to do !!
Had to rename the plugin folder to restore functionality –
Parse error: Unclosed ‘{‘ on line 4206 in … /wp-content/plugins/rsvpmaker/rsvpmaker-util.php on line 4715
There has been a critical error on this website. Please check your site admin email inbox for instructions.
When I install previous version,had to go back to version 11.2.5 — I am getting a bunch of warnings so something much have changed in the DB perhaps?: I just do not know..
This reply was modified 1 year, 7 months ago by ebiz98.
This reply was modified 1 year, 7 months ago by ebiz98.
Anyone still struggling with this: Please try installing RSVPMaker 11.4.2 and let me know if that resolves the issue.
Turns out PHP 8 removed default support for a short tag syntax that I don’t normally use but which occurs in one spot in the rsvpmaker-util.php file.
The reason it took me so long to find the bug: Both my web host and my local dev environment had a php.ini configuration switch turned on that allows short_tags to work in PHP 8.
This reply was modified 1 year, 6 months ago by davidfcarr.
The short open tag thing shouldn’t be an issue at this point, if you have the current release installed.
You’re saying you get critical errors when updating the plugin? No other changes? What PHP version?
Re nothing being logged, you might try temporarily enabling DEBUG_LOG_DISPLAY in your wp-config.php. I’ve occasionally seen errors that will be displayed on screen but not written to the log for whatever reason.
I’m not seeing these errors on my test and production servers, so I do need a clue of where to look if the plugin is behaving differently on your website. Could be a conflict with another plugin or something different about the hosting setup.
I’ve just been testing on a local copy, PHP versions 5.6, 7.0, 7.2, 8.0, 8.2.
Debug logging and display is turned on and php error reporting set to max, but I just get the wordpress critical error notice on the frontend and admin and no specific error and no debug file.
There are a number of problems in the utils file, like undefined variables, but nothing I can see that would cause a fatal error.
Ok, it’s down to the method of overriding the output.
We have an rsvpmaker-custom.php file in the wp-content directory. It had error_reporting(0); at the top.
In our case, the issue was that the class event_content is redefined.
In the previous version, rsvpmaker-pluggable.php checks to see if functions are already defined. Those checks have been removed, so redefining them in the custom file breaks a site.
WordPress filters would be a better method of modifying the output.
Viewing 12 replies - 1 through 12 (of 12 total)
The topic ‘Getting a critical Error?’ is closed to new replies.