Fatal Server Error on Settings Page
-
I got the following when loading the main ShortPixel settings page:
An error of type E_PARSE was caused in line 369 of the file wp-content/plugins/shortpixel-image-optimiser/class/view/settings/part-advanced.php. Error message: syntax error, unexpected ')'This is preventing the settings page from loading fully (it shows the fatal error was encountered partway through loading the settings page).
It appears there’s a trailing comma after the last parameter in a
printffunction, and this has an issue in some versions of PHP (7.2.x at the very least.) Removing that comma fixes the error.Removing trailing commas on PHP parameters in any given function call is a simple thing to ensure PHP version compatibility (since the comma is needless anyway so might as well be made to be compatible.)
The topic ‘Fatal Server Error on Settings Page’ is closed to new replies.