Class not found error updating to version 3.2.1
-
Hi,
I’ve worked around this problem but I wanted to post it in case it helps other people. I update plugins on a development environment, push those changes to Git, and then deploy those changes to the staging and live servers. When I updated to version 3.2.1 on my development environment I had no issues. However when I pushed that update from Git to my staging server I received a class not found error and the site became unreachable.
——————————————————————
An error of type E_ERROR was caused in line 42 of the file /var/www/vhosts/acme.co.uk/httpdocs/wp-content/plugins/simple-image-sizes/simple_image_sizes.php. Error message: Uncaught Error: Class ‘Rahe\Simple_Image_Sizes\Main’ not found in /var/www/vhosts/acme.co.uk/httpdocs/wp-content/plugins/simple-image-sizes/simple_image_sizes.php:42
——————————————————————WORKAROUND: I found that the workaround is you have to actually update the plugin on the server. I’m guessing it does something during that process that is separate from the files that get updated. Once the plugin has been updated on the server, I was able to push my update across as normal, and get back to essentially the same position.
It would be great if this issue could be avoided in future for those of us using source control.
Thanks
- The topic ‘Class not found error updating to version 3.2.1’ is closed to new replies.