• Hi there,

    Following updates recently, a development site has started to produce the WordPress fatal error page shown below. This is a cPanel environment on CloudLinux 7, with this website running under PHP 7.3 with all usual extensions enabled and options set to suit decently busy websites.

    “There has been a critical error on your website.
    Learn more about debugging in WordPress.”

    Looking at the PHP error log, this seems to stem from WooCommerce and potentially an admin note field/insertion/etc catching an exception. It seems unlikely that this wouldn’t already be known about via other users though.

    This website runs lean with regard to plugins, and those that it’s running are all well-known and/or reputable. The active theme is Divi (licensed).

    PLUGINS // Installed & active

    • Disable Comments
    • Price Per Unit Pro
    • WooCommerce
    • WooCommerce Admin
    • WooCommerce Gateway – Stripe
    • WooCommerce Gateway – PayPal Express Checkout

    FATAL PHP ERROR

    [24-Mar-2020 01:04:46 UTC] PHP Fatal error: Uncaught WC_Data_Exception: The admin note content prop cannot be empty. in /home/USERNAME/public_html/REDACTED/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:810

    PHP STACK TRACE

    #0 /home/USERNAME/public_html/REDACTED/wp-content/plugins/woocommerce-admin/src/Notes/WC_Admin_Note.php(384): WC_Data->error(‘admin_note_inva…’, ‘The admin note …’)
    #1 /home/USERNAME/public_html/REDACTED/wp-content/plugins/woocommerce-admin/src/Notes/WC_Admin_Notes_Deactivate_Plugin.php(39): Automattic\WooCommerce\Admin\Notes\WC_Admin_Note->set_content(”)
    #2 /home/USERNAME/public_html/REDACTED/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Package.php(56): Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes_Deactivate_Plugin::add_note()
    #3 [internal function]: Automattic\WooCommerce\Admin\Composer\Package::init()
    #4 /home/USERNAME/public_html/REDACTED/wp-content/plugins/woocommerce/src/Packages.php(72): call_user_func(Array)
    #5 /home/USERNAME/public_html/REDACTED/wp-content/plu in /home/USERNAME/public_html/REDACTED/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 810

    Could someone at Automattic or in the WordPress community please offer some assistance? It’d be very much appreciated.

    Many thanks,
    Bastian

    • This topic was modified 4 years, 1 month ago by bastian123. Reason: Added mention of active theme; Improved formatting
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error (WC_Data_Exception) Admin note content prop cannot be empty (4.0.1)’ is closed to new replies.