• Resolved pownerto

    (@pownerto)


    Hey there,
    I get a fatal error when trying to reactivate woocommerce. The issue started when I wanted to update my plugins today. When I was on the update page in my dashboard I accidentally pressed “reinstall wordpress” and then, after realizing my missclick, I instinctively and stupidly pressed the back button in my browser. It took me back to the update page and I selected all the plugins and pressed update and then got the fatal error message and also via email:

    WordPress version 5.3.2
    Current theme: Storefront (version 2.5.3)
    Current plugin: (version )
    PHP version 7.1.33

    Error Details
    =============
    An error of type E_ERROR was caused in line 371 of the file /home/customer/www/evermorebags.com/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-listener.php. Error message: Uncaught Error: Class ‘Automattic\Jetpack\Roles’ not found in /home/customer/www/evermorebags.com/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-listener.php:371
    Stack trace:
    #0 /home/customer/www/evermorebags.com/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-listener.php(333): Automattic\Jetpack\Sync\Listener->get_actor(‘jetpack_plugins…’, Array)
    #1 /home/customer/www/evermorebags.com/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-listener.php(200): Automattic\Jetpack\Sync\Listener->enqueue_action(‘jetpack_plugins…’, Array, Object(Automattic\Jetpack\Sync\Queue))
    #2 /home/customer/www/evermorebags.com/public_html/wp-includes/class-wp-hook.php(288): Automattic\Jetpack\Sync\Listener->action_handler(Array, Array)
    #3 /home/customer/www/evermorebags.com/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #4 /home/customer/www/evermorebags.com/public_html/wp-includes/plugin.php(478):

    I went to recovery mode and deactivated the plugins that gave me errors, then tried to reactivate them. None of them can be reactivated this way. When trying to reactivate woocommerce plugin I get the following error message:

    Plugin could not be activated because it triggered a?fatal error.
    Warning: require(/home/customer/www/evermorebags.com/public_html/wp-content/plugins/woocommerce/src/Autoloader.php): failed to open stream: No such file or directory in?/home/customer/www/evermorebags.com/public_html/wp-content/plugins/woocommerce/woocommerce.php?on line?31

    Fatal error: require(): Failed opening required ‘/home/customer/www/evermorebags.com/public_html/wp-content/plugins/woocommerce/src/Autoloader.php’ (include_path=’.:/usr/local/php71/pear’) in?/home/customer/www/evermorebags.com/public_html/wp-content/plugins/woocommerce/woocommerce.php?on line?31

    I have reinstalled wordpress then properly, using the reinstall button on the update page and I have cleared all the chaches and cookies and tried again but the error persists.
    I don′t know what I should try next, I appreciate all help a lot and will reply quickly.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Maybe you should try restoring your last good backup for the files. The database is probably okay.

    Optionally you might try reinstalling WordPress again and the reinstalling the plugins and possibly the theme but I’m thinking the theme is probably okay.

    Or you could switch to a generic theme temporarily and manually reinstall any plugins that throw an error.

    I’d probably do the backup restore first skipping the database for now.

    Thread Starter pownerto

    (@pownerto)

    @jnashhawkins
    thank you so much for your answer! I tried the reinstall yesterday but to no success. today there seems so have been a new update to woocommerce and after installing it the activation was finally sucessful, so the matter is resolved now ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error when trying to reactivate plugins after update’ is closed to new replies.