• Resolved mattarios2

    (@mattarios2)


    When I update from 5.4.1 to 5.5.0 I receive a fatal error on my live and staging site. Here is the debug log for the staging site after updating the plugin:

    [20-Sep-2021 12:41:12 UTC] PHP Fatal error:  Uncaught Automattic\WooCommerce\Admin\Notes\NotesUnavailableException: Notes are unavailable because the "admin-note" data store cannot be loaded. in /var/www/dogloverstore/staging-site/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Notes.php:452
    Stack trace:
    #0 /var/www/dogloverstore/staging-site/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php(108): Automattic\WooCommerce\Admin\Notes\Notes::load_data_store()
    #1 /var/www/dogloverstore/staging-site/wp-content/plugins/woocommerce-gateway-stripe/includes/notes/class-wc-stripe-upe-compatibility-note.php(68): WC_Stripe_UPE_Compatibility_Note::possibly_delete_note()
    #2 /var/www/dogloverstore/staging-site/wp-content/plugins/woocommerce-gateway-stripe/includes/admin/class-wc-stripe-upe-compatibility-controller.php(40): WC_Stripe_UPE_Compatibility_Note::init()
    #3 /var/www/dogloverstore/staging-site/wp-includes/class-wp-hook.php(303): WC_Stripe_UPE_Compatibility_Controller->add_inbox_note('')
    #4 /var/www/doglovers in /var/www/dogloverstore/staging-site/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Notes.php on line 452
    

    Can you help with this?

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @mattarios2,
    I’d like to understand more about your setup.

    Could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.

    Once you’ve done that, you can paste the text in https://gist.github.com/ and feel free to change/remove your site URL in the report for privacy reasons.

    Once you do that, you can paste the Gist link here in your reply.

    I can confirm we’re seeing the same error when WC Admin is disabled. It causes a fatal error:

    Fatal error: Uncaught Automattic\WooCommerce\Admin\Notes\NotesUnavailableException: Notes are unavailable because the "admin-note" data store cannot be loaded. in /home/*****/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Notes.php:452 Stack trace: #0 /home/*****/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php(108): Automattic\WooCommerce\Admin\Notes\Notes::load_data_store() #1 /home/*****/wp-content/plugins/woocommerce-gateway-stripe/includes/notes/class-wc-stripe-upe-compatibility-note.php(68): WC_Stripe_UPE_Compatibility_Note::possibly_delete_note() #2 /home/*****/wp-content/plugins/woocommerce-gateway-stripe/includes/admin/class-wc-stripe-upe-compatibility-controller.php(40): WC_Stripe_UPE_Compatibility_Note::init() #3 /home/*****/wp-includes/class-wp-hook.php(287): WC_Stripe_UPE_Compatibility_Controller->add_inbox_note( in /home/*****/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Notes.php on line 452

    Thread Starter mattarios2

    (@mattarios2)

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @mattarios2,

    Thanks for the Status report. From the logs and the plugin changes, I found that there are changes made to notify users about Stripe compatibility with previous versions of WooCommerce.To quote from the changelog “Add – Notice for WP & WC version compatibility check.”

    I see that you are using a plugin “Disable WooCommerce Bloat: by ospiotr – 2.5.3” that disables WooCommerce Admin notifications. I’m wondering if this plugin is the one causing the fatal as it’s blocking compatibility notifications from Stripe.

    Are you able to disable this plugin temporarily and check if there are fatal errors with Stripe Gateway 5.5.0 when this plugin is disabled?

    Thread Starter mattarios2

    (@mattarios2)

    Thanks for getting back to me so quickly.

    I disabled the “Disable WC bloat” plugin, then re-activated stripe plugin and no fatal errors, yes!

    I then tried re-enabling the disable WC bloat plugin and still no fatal errors.

    Any idea why disabling and re-enabling that WC bloat plugin stopped this issue?

    Do you recommend I disable any settings in the disable WC bloat plugin so this does not happen again? If yes, which setting(s) specifically?

    Here are my current settings in the disable WC bloat plugin:

    https://snipboard.io/lRZbeI.jpg
    https://snipboard.io/P3B4ge.jpg

    Thanks again, much appreciated!

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @mattarios2,

    >I disabled the “Disable WC bloat” plugin, then re-activated stripe plugin and no fatal errors, yes!

    That’s great news. Glad we found the culprit.

    >I then tried re-enabling the disable WC bloat plugin and still no fatal errors.
    Any idea why disabling and re-enabling that WC bloat plugin stopped this issue?

    I’m no expert with this nor the code running these notifications. I am guessing the disabling of WooCommerce Admin by the bloat plugin triggered the fatal error becasue the stripe plugin required WooCommerce Admin to run compatibility checks. Once you disabled the plugin, it ran the compatibility checks and finished. Since your site already meets the criteria the compatbiliyt check isn’t running periodically to check if you are meeting the compatibility requirements and hence no more fatals.

    >Do you recommend I disable any settings in the disable WC bloat plugin so this does not happen again? If yes, which setting(s) specifically?

    I would suggest you disable the plugin completely if possible because we won’t know what new features(Stripe/other plugins) will be added in the future that could rely on these disabled features, but if you must turn a setting off, then it would be the WooCommerce Admin setting that caused this issue.

    Thread Starter mattarios2

    (@mattarios2)

    Thanks, will do that tomorrow and update on the live site.

    Appreciate the fast help. I’d leave a review for the plugin but already gave it 5 stars a while back.

    Thanks again!

    Confirmed to be an issue in the ‘WooCommerce Stripe Payment Gateway’ plugin rather than ‘Disable WooCommerce Bloat’. There is a fix coming in https://github.com/woocommerce/woocommerce-gateway-stripe/pull/1924

    @pipdig

    That’s great news. Let’s wait for the WooCommerce Stripe Payment Gateway which will fix this issue.

    @simplysaru can you confirm that this is included in the 5.6.0 release? The changelog isn’t mentioning it.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @galbaras, @ospiotr, @pipdig,

    Yes, the fix has been merged and the 5.6.0 version of the plugin should not have any fatal if the WooCommerce Admin has been disabled.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal Error in Version 5.5.0’ is closed to new replies.