• Resolved emreaakyuz

    (@emreaakyuz)


    I get an error like the following on my website, all I did was want to add my_account shortcode to the header field. Later it gave this error and whatever I did didn’t fix it

    Fatal error: Uncaught WC_Data_Exception: The admin note title prop cannot be empty. in /home/u9340248/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:856 Stack trace: #0 /home/u9340248/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php(396): WC_Data->error('admin_note_inva...', 'The admin note ...') #1 /home/u9340248/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/CouponPageMoved.php(73): Automattic\WooCommerce\Admin\Notes\Note->set_title('') #2 /home/u9340248/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php(74): Automattic\WooCommerce\Admin\Notes\CouponPageMoved::get_note() #3 /home/u9340248/public_html/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\Admin\Notes\CouponPageMoved->possibly_add_note('') #4 /home/u9340248/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #5 /home/u9340248/public_html/wp-includes/plugin.php(484): WP_ in /home/u9340248/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 856

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @emreaakyuz ,

    I am sorry to see you having this issue.

    I will recommend deactivating all plugins except WooCommerce and check if that solved the problem. If not, switch over to a different theme temporarily. This should remove the errors.

    Then remove the customizations you have made on your previous theme. It is always better to use a snippet plugin to add custom code to the site.

    Let me know the update.

    Thank you πŸ™‚

    Thread Starter emreaakyuz

    (@emreaakyuz)

    Unfortunately, I did what you said, but the result is the same, giving the same error. You can see the full error message below.

    Fatal error: Uncaught WC_Data_Exception: The admin note title prop cannot be empty. in /home/u9340248/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:856 Stack trace: #0 /home/u9340248/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php(396): WC_Data->error('admin_note_inva...', 'The admin note ...') #1 /home/u9340248/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/CouponPageMoved.php(73): Automattic\WooCommerce\Admin\Notes\Note->set_title('') #2 /home/u9340248/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php(74): Automattic\WooCommerce\Admin\Notes\CouponPageMoved::get_note() #3 /home/u9340248/public_html/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\Admin\Notes\CouponPageMoved->possibly_add_note('') #4 /home/u9340248/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #5 /home/u9340248/public_html/wp-includes/plugin.php(484): WP_ in /home/u9340248/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 856

    Hello @emreaakyuz ,

    Okay, going back to the initial message. Can you please give me a little more details on where you are trying to add the my_account shortcode?

    A screenshot will be helpful to understand the issue better. You can use https://snipboard.io/ to share a screenshot.

    Thank you πŸ™‚

    Thread Starter emreaakyuz

    (@emreaakyuz)

    I tried to add (header default) to the field I marked.
    https://snipboard.io/DH6Lzi.jpg

    Hello @emreaakyuz ,

    Thanks for sharing the screenshot.

    It looks like you are using a page builder and using their own shortcode/widgets for the cart options. In cases like this, you need to contact the plugin/theme developers who are providing the page builders.

    You can see the regular process for WooCommmerce’s my-account, cart, checkout pages here – https://docs.woocommerce.com/document/woocommerce-pages/

    I hope you will get the solution soon from the page builder developers.

    Cheers πŸ™‚

    Thread Starter emreaakyuz

    (@emreaakyuz)

    I don’t think the problem is caused by this because I get the same error when I change the theme. When I access the file with the error, I see that the header part could not be pulled from the database.

    Hello @emreaakyuz ,

    The page builder not only comes with the theme they are a separate plugin as well. The best way to find out the problem is by doing a conflict test.

    Please run through these tests and let me know how it goes?

    1. Switch to a default theme i.e. Twenty Twenty / Storefront
    2. Deactivate all plugins except WooCommerce and then activate them one by one to figure out the faulty one.

    Test your feature after each activation/deactivation. More details on the conflict test here.

    If the above does not help please share your WooCommerce configuration details from wp-admin > WooCommerce > Status so we can understand a bit more about the problem.

    Thank you πŸ™‚

    Plugin Support EtienneP a11n

    (@etiennep)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

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

The topic ‘Uncaught WC_Data_Exception: The admin note title prop cannot be empty.’ is closed to new replies.