Same from 4.18.1 to 4.19.2
Multisite setup and updated manually.
PHP Fatal error: Uncaught Error: Class ‘ShortPixelMeta’ not found in /var/www/html/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php:47\nStack trace:\n#0 /var/www/html/wp-content/plugins/shortpixel-image-optimiser/shortpixel-plugin.php(57): WPShortPixel->__construct()\n#1 /var/www/html/wp-includes/class-wp-hook.php(287): ShortPixel\\ShortPixelPlugin->lowInit(”)\n#2 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)\n#3 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#4 /var/www/html/wp-settings.php(403): do_action(‘plugins_loaded’)\n#5 /var/www/html/wp-config.php(119): require_once(‘/var/www/html/w…’)\n#6 /var/www/html/wp-load.php(37): require_once(‘/var/www/html/w…’)\n#7 /var/www/html/wp-blog-header.php(13): require_once(‘/var/www/html/w…’)\n#8 /var/www/html/index.php(17): require(‘/var/www/html/w…’)\n#9 {main}\n thrown in /var/www/html/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 47
Rollback to 4.18.1 did the trick luckily.
Hi guys,
Can you tell us please if uninstalling the plugin completely, and then re-installing it works?
Hi,
I can confirm that it is possible to update like that.
Thread Starter
klivie
(@klivie)
I attempting removing the plugin entirely before reinstalling but when we try to reactivate the plugin we get the below error:
Fatal error: Uncaught Error: Class ‘ShortPixel\Model\EnvironmentModel’ not found in /mnt/www/ragdalehall.co.uk/www/wp-content/plugins/shortpixel-image-optimiser/shortpixel-plugin.php:123 Stack trace: #0 /mnt/www/ragdalehall.co.uk/www/wp-content/plugins/shortpixel-image-optimiser/shortpixel-plugin.php(391): ShortPixel\ShortPixelPlugin->env() #1 /mnt/www/ragdalehall.co.uk/www/wp-content/plugins/shortpixel-image-optimiser/shortpixel-plugin.php(360): ShortPixel\ShortPixelPlugin::deactivatePlugin() #2 /mnt/www/ragdalehall.co.uk/www/wp-includes/class-wp-hook.php(287): ShortPixel\ShortPixelPlugin::activatePlugin(”) #3 /mnt/www/ragdalehall.co.uk/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #4 /mnt/www/ragdalehall.co.uk/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /mnt/www/ragdalehall.co.uk/www/wp-admin/plugins.php(179): do_action(‘activate_shortp…’) #6 {main} thrown in /mnt/www/ragdalehall.co.uk/www/wp-content/plugins/shortpixel-image-optimiser/shortpixel-plugin.php on line 123
I encountered same issue as klivie – but looks like it was because missing composer.json, wound up overwriting with the github repo latest master (https://github.com/short-pixel-optimizer/shortpixel-image-optimiser) and it now is functional
Hi @klivie,
Can you please contact us here so we can take a deeper look at your site? Make sure to mention this conversation, please.
Thank you!
Hello,
if anybody has the same problem, you may check your versioning config. I had the same error after updating and found out that the folder “class/model” became “class/Model”
diff -rq wp-content/plugins/shortpixel-image-optimiser ../clone/wp-content/plugins/shortpixel-image-optimiser
Only in wp-content/plugins/shortpixel-image-optimiser/class: Model
Only in ../clone/wp-content/plugins/shortpixel-image-optimiser/class: model
You can change your versioning settings to not ignore case-sensitive files
Thanks, @sbouafif! The case change is exactly the issue, here are the steps I took for GIT:
git mv wp-content/plugins/shortpixel-image-optimiser/class/model wp-content/plugins/shortpixel-image-optimiser/class/model-tmp
…commit…
git mv wp-content/plugins/shortpixel-image-optimiser/class/model-tmp wp-content/plugins/shortpixel-image-optimiser/class/Model
…commit…
After that GIT will respect the case change.
I suspect this may have been the root cause of a few other support tickets: