• Resolved ArcticFritid

    (@metuza)


    After reading most of the fatal error messages here in the forum i have done several tests on my staging site and on a clean wordpress / woocommerce install.

    When setting up an clean install on previous WC version everything seems to work ok, no errors in WC logs. But i get no info about updating database and because of that the main controlpanel page is dead, just loading all spinners, never ending. Doing an DB update everything seems to be working OK.

    The same happens if i download latest WC version and install it on top of the automatic install of latest version. No DB update requested and dashboard is dead. The only place i find fatal error is in my server logs, no emails from WP and no fatal errors in WC logs.

    When doing the same tests on my original staging site complete with all my plugins and themes the same happens but now i can find the fatal error in WC logs, by email and via Fatal error plugins.

    So there is no dubt that there is problems with latest WC version. Problem is that on my clean install test the server log just has a short error message, no stack trace.

    [error] 8565#8565: *39718 FastCGI sent in stderr: "; PHP message: PHP Fatal error: Uncaught Error: Trait "Automattic\WooCommerce\Internal\Traits\RestApiCache" not found in /www/arcticfritidas_679/public/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:27

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ArcticFritid

    (@metuza)

    I just found this error in the wordpress dashboard. In my first install/update of latest WC version i was able to make it work when i manually updated database but after a manual instal of WC problem came back again with error as below:

    • Uncaught Error: Call to a member function get_name() on false in /public/wp-content/plugins/woocommerce/templates/dashboard-widget-reviews.php:39
      Stack trace:
      #0 /public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include()
      #1 /public/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-dashboard.php(517): wc_get_template(‘dashboard-widge…’, Array)
      #2 /public/wp-admin/includes/template.php(1453): WC_Admin_Dashboard->recent_reviews(”, Array)
      #3 /public/wp-admin/includes/dashboard.php(271): do_meta_boxes(Object(WP_Screen), ‘normal’, ”)
      #4/public/wp-admin/index.php(204): wp_dashboard()
      #5 {main}
      thrown
    • File: /public/wp-content/plugins/woocommerce/templates/dashboard-widget-reviews.php
    • Line: 39

    This error seems to block widgets from loading in wordpress dashboard.

    Regards
    Rune

    Thread Starter ArcticFritid

    (@metuza)

    Moved this little code into /public/wp-content/plugins/woocommerce/templates/dashboard-widget-reviews.php

    if ( is_a( $product, 'WC_Product' ) ) {
    $product_name = $product->get_name();
    }

    Then replaced $product->get_name() with $product_name and controlpanel again working ok.

    I have a clean install, only latest wordpress, woocommerce 10.5.0 and latest storefront. I have tried manual install of WC latest version downloaded from wordpress repository but fatal error, no DB update message and all the wierd issues are still the same.

    Sai (woo-hc)

    (@saivutukuru)

    Hi @ArcticFritid,

    Thanks for taking the time to test this so thoroughly and for sharing your findings. We’ve seen a few similar reports around 10.5.0 where the update doesn’t complete cleanly, which can lead to missing DB update prompts and admin/dashboard issues like the ones you’re describing.

    We’ve shared this internally with our development team for review. In the meantime, if this is affecting a production site, the safest temporary workaround is to roll back to the previous stable WooCommerce version until we have more clarity.

    We appreciate the detailed investigation and code snippet you shared; it’s very helpful. We’ll follow up once we have an update or next steps to share.

    Plugin Support Kay U a11n

    (@kingsleyinfo)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    If you have a few minutes, we’d love if you could leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.