Support » Plugin: ShortPixel Image Optimizer » Version 4.19.2 breaks the plugin

  • Resolved klivie


    Updating our plugin from Version: 4.18.0 to Version: 4.19.2 has caused our site to break.

    Looking in our server error logs we get the below:

    2020/06/17 09:17:08 [error] 27011#27011: *1670125 FastCGI sent in stderr: “PHP message: PHP Fatal error: Class ‘ShortPixelMeta’ not found in /mnt/www/ on line 47” while reading response header from upstream, client:, server:, request: “POST /?wc-ajax=get_refreshed_fragments HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm-ragdalehall:”, host: “”, referrer: “”

    So it definately seems to be an issue with the plugin here.

    I will have to revert to the previous version in the meantime

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Plugin Support Gerard Blanco


    Hi guys,

    Can you tell us please if uninstalling the plugin completely, and then re-installing it works?


    I can confirm that it is possible to update like that.

    Thread Starter 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/ Stack trace: #0 /mnt/www/ ShortPixel\ShortPixelPlugin->env() #1 /mnt/www/ ShortPixel\ShortPixelPlugin::deactivatePlugin() #2 /mnt/www/ ShortPixel\ShortPixelPlugin::activatePlugin(”) #3 /mnt/www/ WP_Hook->apply_filters(”, Array) #4 /mnt/www/ WP_Hook->do_action(Array) #5 /mnt/www/ do_action(‘activate_shortp…’) #6 {main} thrown in /mnt/www/ 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 ( and it now is functional

    Plugin Support Gerard Blanco


    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!


    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
    git mv wp-content/plugins/shortpixel-image-optimiser/class/model-tmp wp-content/plugins/shortpixel-image-optimiser/class/Model

    After that GIT will respect the case change.

    I suspect this may have been the root cause of a few other support tickets:

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Version 4.19.2 breaks the plugin’ is closed to new replies.