• Resolved zimbo000

    (@zimbo000)


    Update to 3.16.4 caused site to crash and prevent admin login. Email received stating:

    “WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Smush.”

    Error Details

    An error of type E_ERROR was caused in line 144 of the file /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/core/class-modules.php. Error message: Uncaught Error: Class “Smush\Core\Modules\Product_Analytics” not found in /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/core/class-modules.php:144
    Stack trace: 0 /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/core/class-core.php(157): Smush\Core\Modules->__construct() 1 /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/core/class-stats.php(104): Smush\Core\Core->init() 2 /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/wp-smush.php(363): Smush\Core\Stats->__construct() 3 /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/wp-smush.php(283): WP_Smush->init() 4 /home/storage/322/4077322/user/htdocs/wp-content/plugins/wp-smushit/wp-smush.php(256): WP_Smush->__construct() 5 /home/storage/322/4077322/user/htdocs/wp-includes/class-wp-hook.php(324): WP_Smush::get_instance(”) 6 /home/storage/322/4077322/user/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 7 /home/storage/322/4077322/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 8 /home/storage/322/4077322/user/htdocs/wp-settings.php(550): do_action(‘plugins_loaded’) 9 /home/storage/322/4077322/user/htdocs/wp-config.php(90): require_once(‘/home/storage/3…’) 10 /home/storage/322/4077322/user/htdocs/wp-load.php(50): require_once(‘/home/storage/3…’) 11 /home/storage/322/4077322/user/htdocs/wp-admin/admin.php(34): require_once(‘/home/storage/3…’) 12 /home/storage/322/4077322/user/htdocs/wp-admin/update-core.php(10): require_once(‘/home/storage/3…’) 13 {main}

    thrown

    Used recovery mode link in email to log back into the site and all was working correctly. This happened on both the test server and live site. As everything now working again, no further action but there’s clearly a problem with this update somewhere.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @zimbo000

    I hope you’re well today!

    Up to the 3.16.2 version, the class name was Product_Analytics and with version 3.15.3 it was changed to the Product_Analytics_Controller.

    This should not be an issue upon successful standard update. It seems here that the update didn’t go quite well and after it plugin is still trying to load “old class” which doesn’t exist, hence the error.

    We had so far only a single report of such case and while we don’t have full confirmation for the reason yet, it seems that in that other case it was related to the specific “smart updater” feature provided by the host.

    Anyway, please try a simple manual update:

    – download newest version of the plugin from here: https://www.ads-software.com/plugins/wp-smushit/ to your local drive
    – if you have any plugin or hosting feature enabled that is meant to additionally control/perform updates – temporarily disable it
    – then go to “Plugins -> Add new” page and use “Upload” option to install plugin from the downloaded zip file
    – when asked if to replace current files with uploaded ones, confirm replacement

    You may need to purge all cache afterwards but it should update plugin properly.

    Note: just in case, make sure that you do have full backup so you could revert things in case it breaks again; it should not but if it does, let us know and we’ll ask you some additional questions about your setup so we could identify the root cause.

    Kind regards,
    Adam

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @zimbo000,

    I hope the above suggestions helped resolving the issue.

    We’ll be marking the thread as resolved for now. Please feel free to reply if you still need our assistance.

    Best Regards,
    Dmytro

    philip8829

    (@philip8829)

    Hi @wpmudevsupport16 @wpmudev-support8

    I have the same problem. I have reuploaded the plugin manually after downloading manually. Same problem still.

    Uncaught Error: Cannot use object of type stdClass as array in /customers/e/b/9/website.com/httpd.www/wp-content/plugins/wp-smushit/core/class-array-utils.php:38 Stack trace: #0 /customers/e/b/9/website.com/httpd.www/wp-content/plugins/wp-smushit/core/transform/class-transformer.php(153): Smush\Core\Array_Utils->get_array_value(Array, Array) #1 /customers/e/b/9/website.com/httpd.www/wp-content/plugins/wp-smushit/core/transform/class-transformer.php(88): Smush\Core\Transform\Transformer->transform_rest_media_response(Array) #2 /customers/e/b/9/website.com/httpd.www/wp-content/plugins/wp-smushit/core/transform/class-transformer.php(77): Smush\Core\Transform\Transformer->transform_single_rest_item(Array, Object(WP_REST_Request)) #3 /customers/e/b/9/website.com/httpd.www/wp-content/plugins/wp-smushit/core/transform/class-transformation-controller.php(108): Smush\Core\Transform\Transformer->transform_rest_response(Array, Object(WP_REST_Request)) #4 /customers/e/b/9/website.com/httpd.www/wp-includes/class-wp-hook.php(324): Smush\Core\Transform\Transformation_Controller->transform_rest_response(Array, Object(WP_REST_Server), Object(WP_REST_Request)) #5 /customers/e/b/9/website.com/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #6 /customers/e/b/9/website.com/httpd.www/wp-includes/rest-api/class-wp-rest-server.php(538): apply_filters(‘rest_pre_echo_r…’, Array, Object(WP_REST_Server), Object(WP_REST_Request)) #7 /customers/e/b/9/website.com/httpd.www/wp-includes/rest-api.php(428): WP_REST_Server->serve_request(‘/wp/v2/media/12…’) #8 /customers/e/b/9/website.com/httpd.www/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP)) #9 /customers/e/b/9/website.com/httpd.www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /customers/e/b/9/website.com/httpd.www/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #11 /customers/e/b/9/website.com/httpd.www/wp-includes/class-wp.php(418): do_action_ref_array(‘parse_request’, Array) #12 /customers/e/b/9/website.com/httpd.www/wp-includes/class-wp.php(813): WP->parse_request(”) #13 /customers/e/b/9/websites.com/httpd.www/wp-includes/functions.php(1336): WP->main(”) #14 /customers/e/b/9/website.com/httpd.www/wp-blog-header.php(16): wp() #15 /customers/e/b/9/website.com/httpd.www/index.php(17): require(‘/customers/e/b/…’) #16 {main} thrown in /customers/e/b/9/website.com/httpd.www/wp-content/plugins/wp-smushit/core/class-array-utils.php on line 38



    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @philip8829

    I hope you’re well today!

    As per this forum’s guidelines, please open your own separate topic:

    https://www.ads-software.com/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    We’ll assist you there.

    Kind regards,
    Adam

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.