• Resolved barbarossah

    (@barbarossah)


    Hello,

    After updating to 5.7.0 I can’t access backend anymore, it’s loading continuously leading to 504 Gateway Timeout. I’ve got the following error. Any help would be greatly appreciated!

    Disabling all plugins doesn’t work, ?safe_mode=1 on plugins / themes / login page does not work either.

    [22-Sep-2021 05:45:13 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_attributes() on bool in /home/liquid/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1045
    Stack trace:
    #0 /home/liquid/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(918): WC_Cart->add_to_cart(0, 1, 926, Array)
    #1 /home/liquid/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(790): WC_Form_Handler::add_to_cart_handler_variable(926)
    #2 /home/liquid/public_html/wp-includes/class-wp-hook.php(303): WC_Form_Handler::add_to_cart_action('')
    #3 /home/liquid/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/liquid/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/liquid/public_html/wp-settings.php(600): do_action('wp_loaded')
    #6 /home/liquid/public_html/wp-config.php(90): require_once('/home/liquid/pu...')
    #7 /home/liquid/public_html/wp-load.php(50): require_once('/home/liquid/pu...')
    #8 /home/liquid/public_html/wp-blog-heade in /home/liquid/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1045
    • This topic was modified 3 years, 6 months ago by barbarossah.
    • This topic was modified 3 years, 6 months ago by barbarossah.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi @barbarossah ,

    Oh no! Let’s see what we can do to help you get your site back online.

    There is likely an underlying conflict on your site that caused the update to fail. Ideally, this is something you’ll want to fix for future updates and something you can chat to your hosting company and/or developer about.

    * If you still have access to your site and you are running WordPress 5.5 or later, you can download WooCommerce from the releases page on our developer blog (https://developer.woocommerce.com/releases/).
    * For now, it’s best to use the latest version in the “branch” that you were using before. If you, for example, were running WooCommerce 5.0, you would want to download the .zip file that’s 5.0.2.
    * Once you have the .zip file, go to **Plugins > Add New** and upload the file there.
    * Activate WooCommerce.
    * f you no longer have access to your site or are running an older version of WordPress than 5.5, go to your site via your FTP manager (this is something your hosting company can help you with). There find **wp-content/plugins** and in that folder replace woocommerce with the folder from the downloaded .zip file (contrary to uploading via WP Admin, you need to first unzip the file to access the woocommerce folder).

    The data of WooCommerce is stored in your site’s database so replacing the WooCommerce plugin will not delete past orders, customers, and products. It is however always good to have a backup system in place.

    Let us know how it goes. We’re here to help further.

    Yup can confirm this is happening on a clean installation of WordPress with default theme and NO OTHER plugins. Patch ASAP!

    Thread Starter barbarossah

    (@barbarossah)

    Hi @thup90,

    Reverting to a previous WooCommerce version did not work and I’ve tried 4-5 of them.
    I’ve done all the usual debugging we all do when things fail but with no avail.

    I ended up restoring last nights backup files, but that did not do the trick either, but once I restored the database from last night, everything was back to normal.

    I had to recreate all the customer orders I found in emails which was a pain in the ass, but eventually everything is fine. As more and more people are reporting issues, I believe this version needs to be patched.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @barbarossah,

    That was a lot of hard work on the restoration. Really glad that you got it working. Yes, the devs are looking into the issues and reviewing the next steps.

    Thanks, for posting your solution for the rest of us.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t access WP Admin after 5.7.0 update’ is closed to new replies.