• Resolved pjjonesnz

    (@pjjonesnz)


    Updated my website to 5.7.1 (from 5.6.0) yesterday. No trouble at all – it all went fine without any trouble.

    BUT today, some time after my server rolled over past midnight, the WordPress dashboard now takes 30+ seconds to load, and the Woocommerce widget said that there was a fatal error on the website.

    I have managed to get things running by deleting all of the analytics data, using Analytics -> Settings -> Delete Previously Imported Data, and then disabling the Woocommerce widget on the dashboard.

    As soon as I re-import all of the analytics data, it crashes things again.

    If I disable Woocommerce, the dashboard works again. If I have Woocommerce enabled, but disable everything else, it has the fatal error.

    In Analytics Overview (before deleting the analytics data), the Net Sales and Orders charts work, but the performance boxes are blank.

    Anyone have a solution for this?

    Thanks
    Paul

    Woocommerce 5.7.1
    Blocks 5.7.2
    Action Scheduler 3.2.1
    Woocommerce Admin 2.6.5
    Wordpress Version 5.8.1
    Woocommerce DB Version: 5.7.1

    • This topic was modified 3 years, 2 months ago by pjjonesnz.
Viewing 15 replies - 1 through 15 (of 32 total)
  • Thread Starter pjjonesnz

    (@pjjonesnz)

    In my PHP error log I get the following:

    PHP Fatal error: Maximum execution time of 30 seconds exceeded in …/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/TimeInterval.php on line 321″ while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: doamin.com, request: “GET /wp-json/wc-analytics/reports/performance-indicators?after=2021-09-25T00%3A00%3A00&before=2021-09-25T15%3A26%3A10&stats=revenue%2Ftotal_sales%2Corders%2Forders_count%2Cjetpack%2Fstats%2Fvisitors%2Cjetpack%2Fstats%2Fviews&_locale=user HTTP/2.0”, …

    Yes im having a similar issue….after the update I cannot open my analytics and marketing page in my dashboard i cannot even access the setting option as it goes to a Site cant be reached page

    this is the error msg im getting

    This site can’t be reached The webpage at https://bready.co.in/wp-admin/admin.php?page=wc-admin&path=/analytics/overview might be temporarily down or it may have moved permanently to a new web address.
    ERR_HTTP2_PROTOCOL_ERROR

    Mirko P.

    (@rainfallnixfig)

    Hi @pjjonesnz,

    From what you have described, it looks like this kind of problem is being caused by a conflict with your theme or with another plugin. The best way to determine this is to:

    – Temporarily switch your theme to Storefront.
    – Disable all plugins except for WooCommerce.
    – Repeat the action that is causing the problem.

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    To figure out the cause of the problem, reactivate your theme first and check again. Then activate other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here – https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    @big00ballz Please open your own thread and we’ll assist you further there. Provide your System Status Report for further checks.

    Thanks.

    Same issue in this topic : https://www.ads-software.com/support/topic/cant-open-wp-dashboard-after-update-to-wc-5-7-1/

    I am using HTTP2 in Nginx.

    I have got my site working by using Widget Disable plugin to disable Woocommerce widgets from the dashboard.

    I disabled all plugins except Woocommerce, this makes no difference. I haven’t tried theme to default but I don’t think its relevant – can test this on staging once I get it up to date from prod.

    Now I can log on fine and view the dashboard. So the issue is specific to the statistics widget I think.

    We have the same issue on WP 5.8.1 and Woo 5.7.1

    We temporarily disabled all anaylitcs with this code in the functions.php:

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

    WordPress version 5.8.1
    Current theme: Generatepress Child (version 1.0.0)
    Current plugin: WooCommerce (version 5.7.1)
    PHP version 7.3.22

    Error Details
    =============
    An error of type E_ERROR was caused in line 168 of the file /container/application/public/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/TimeInterval.php. Error message: Maximum execution time of 30 seconds exceeded`

    Given that people with various themes are all suffering the same issue, and that it doesn’t work even with all other plugins disabled, I’m pretty sure this is a Woocommerce issue.

    I had particularly bad symptoms because something was overriding my max execution time setting, which meant the rogue processes never exited. I’ve fixed that.

    @kidsinthekitchennz Yes, I agree. Something is wrong and it sits in the Analytics module.

    Thread Starter pjjonesnz

    (@pjjonesnz)

    Hi @rainfallnixfig

    Thanks so much for your support.

    I’ve done as you asked. Disabled all plugins, changed the theme to storefront. The same thing happens as I described in my first post.

    I have taken screenshots of the dashboard, and analytics, as well as saving the Woocommerce status report, before disabling and after disabling.

    After I disabled the plugins and changed the theme, I deleted all of the Analytics’ previously imported data, and things worked again (although of course the dashboard widget said $0 for sales, and the ‘performance’ part of Analytics was blank).

    I then (with Storefront active and the plugins deactivated) re-imported all the historical data and the same error on the Dashboard, and performance data in Analytics is blank.

    This is the dashboard error in the Woocommerce Status Widget – ‘There has been a critical error on this website. Please check your site admin email inbox for instructions.’

    An interesting thing to note, any sales that are made after the site history is deleted, DOES show up in the analytics correctly. The dashboard displays those sales and everything is fine. As soon as I re-import historical data (with or without all the plugins disabled and the theme changed), it causes the errors.

    I have screenshots and Woocommerce status info (before and after changes) I can PM you if you would like.

    Thanks
    Paul

    ### Active Plugins (1) ###
    
    WooCommerce: by Automattic – 5.7.1
    
    ### Inactive Plugins (18) ###
    
    ...
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.8.1
    • This reply was modified 3 years, 2 months ago by pjjonesnz.

    I am having the same issue. The problem appears to only be on the admin dashboard – cannot access that, get a timeout in the TimeInterval.php file (not always line 321). If I navigate directly to any of the individual admin pages it loads fine.

    Can even load the analytics page itself, although the performance icons don’t display (Grey boxes only).

    As others have noted, get the same behaviour in recovery mode with default theme and no other plugins.

    Hi – its great to hear there is a solution to this issue.

    I am just wondering which functions.php is being referred to as there appear to be > 1 files with this name around the woocommerce plugin folder.

    thanks in advance
    mark

    For temporary access to example.com/wp-admin:
    1. attempt to log in (seems to fail, times out)
    2. go to example.com, it will load the black wordpress menu at the top of the page
    3. click “Howdy [name]” on the right of that menu, logout, and surprise: wordpress loads…

    This seems to work fairly consistently!

    Thread Starter pjjonesnz

    (@pjjonesnz)

    HI @fsooffice

    The functions.php file referred to will be the one in the folder of your active theme.

    This isn’t a solution, as Woocommerce Analytics will no longer work, but is a workaround while we wait for Woocommerce to hopefully fix this issue.

    Great to find this is not just me having the same issue!
    I moved my site to a staging area & tried various things.

    New Htaccess file.
    diasbling all plugins
    optimised all tables & caching
    regenerated permalinks.

    Contacted my host seemed to be plugins juicing the server & was told to switch on what I only needed?
    I have 6 plugins running.

    Woocommerce 5.7.1 seemed to be the issue once enabled.

    I tried 5.7.0 & all seemed fine on the staging site but didnt work for the main site.
    Not ideal when we have a fairly active shop with a few users who cant process orders.

    Site has been fine for the past 5 years & always runs updated plugins.

    Hopefully we can get a solution in the next update.. Thanks guys! holding my breath until then..

    @pjjonesnz I disabled woocommerce and tried to add the line:

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

    In the functions.php theme file but after activating woocommerce it still will not load the backend of the site. Is there another temporarily workaround?

    • This reply was modified 3 years, 2 months ago by Naturaldude.
Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘5.7.1 – Analytics crashing’ is closed to new replies.