• Resolved littlebizonline

    (@littlebizonline)


    Hi –
    Our website was working fine on Friday (and the customer facing site still is).
    However, we can no longer access the admin dashboard (we get a 504 timeout error after login details are added – have tried with a couple of different admins).

    We have manually turned off all plugins to access the dashboard, and tried Twenty Twenty One theme. Turning on only Woocommerce, then logging out, we can’t log back in again.

    We have turned everything back on so we can still have sales coming through, but we need to be able to access the dashboard!

    We did have Woocommerce 5.6, and ran the upgrade to 5.71 hoping it would resolve, but it hasn’t.

    Have tried debugging via wp-config, but no errors show.
    The host can also see no errors in the logs at their end.

    Please let us know if you can shed any light on this.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Lot’s of people are facing the same issue. It will take a while for Woocommerce to realise that this is not a plugin or theme conflict as it hit’s all sorts of sites and always with the same issue.

    Our workaround is to temporarily disable Woo-Analytics with this code that you need to paste into your functions.php

    // temporarily disables WOO Analytics info on dashboard – disables all Woo Analytics!
    add_filter( ‘woocommerce_admin_disabled’, ‘__return_true’ );

    Related thread: https://www.ads-software.com/support/topic/5-7-1-analytics-crashing/

    Thread Starter littlebizonline

    (@littlebizonline)

    Thank you @merdman2 – interestingly the site appears to be working fine this morning, but I will keep this up my sleeve incase it becomes an issue again.
    Appreciate your help and linking the issues with others. Nice to know we aren’t alone eek!

    @merdman2 you are a life-saver my friend! I’ve had multiple clients absolutely spewing today and this is a (temporary) fix!
    To anyone adding the code to their functions.php, note you need to replace the smart-quotes with simple ones (the little speech marks),

    @merdman2 – Thank you! That saved a client site. I did extensive troubleshooting and narrowed down the problem to WooCommerce itself. All I had active was the Twenty Twenty theme and WooCommerce and I couldn’t access wp-admin. It would time out or not load at all and narrowed it down to this:

    An error of type E_ERROR was caused in line 315 of the file /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/TimeInterval.php. Error message: Maximum execution time of 90 seconds exceeded

    But when I changed to PHP 8, wp-admin loaded fine. But then other WooCommerce plugins would break and have fatal errors on the front end so I had to change back to PHP 7.4.

    So your snippet worked a treat!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot access wp-admin when Woocommerce is active’ is closed to new replies.