wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Woocomerce notices not being displayed

Open FranAriza opened this issue 2 years ago • 20 comments

Steps to reproduce: While having Elementor/Elementor Pro, Yoast SEO and Woocommerce plugins active, go to My account page and interact with form in a way that trigger the Woocommerce notices (introducing a wrong password, for example). You will notice that Woocommerce notices won't show up. But if you deactivate Elementor or Yoast SEO, and do the same thing, now notices will show up.

Here is a video triggering Woocommerce notices with all the previous plugins active and with Elemento deactivated so you can compare: https://www.loom.com/share/27275410b75b43b19525e5bf048680c3?sharedAppSource=personal_library

Error messages: There is no error message as far as we are aware.

WordPress Version and Plugins: We are running the latest version of Wordpress and while we are using more plugins, the combinations that are causing the problem are Elementor/Elementor Pro, Yoast SEO and Woocommerce.

(Web)server details: Apache php 7.3.25 Mariadb 5.5.68

What did you expect would happen?: We expected the WC notices to show up as they do normally.

What device/browser did the problem occur on?: At least in Google Chrome and Mozilla Firefox, we haven't try any other browser.

Do you have an (educated) guess as to the cause of the problem?: We know that is a conflict between Elementor and Yoast SEO, but nothing more.

Can you suggest a solution?: We are afraid we can't

FranAriza avatar Mar 21 '22 09:03 FranAriza

@FranAriza can you please provide full reproduction steps, including setting up a custom account page? Since I expect the issue won't be on the normal, default, account page of WordPress.

Djennez avatar Mar 21 '22 10:03 Djennez

Unless this is one of those notices: image

In which case I am not able to reproduce the issue.

Djennez avatar Mar 21 '22 10:03 Djennez

Hi @Djennez, sorry but we have overlooked a detail that may be playing a part in the conflict.

The My Account page that we are currently using is not the default one from Woocommerce (using the Woocommerce shortcode), but one made with Elementor Pro

FranAriza avatar Mar 21 '22 12:03 FranAriza

Hello,

So it seems that the Elementor custom page is at least part of the problem. Any idea of how to fix it, or should we talk to Elementor support?

Kind regards,

FranAriza avatar Mar 29 '22 12:03 FranAriza

Hi

I am having exactly the same problem. is there any news about a solution?

TyronVivid avatar Apr 29 '22 11:04 TyronVivid

Hi!

Any news on this issue? We still have this problem on many of our websites... We are using Yoast with Elementor Pro and their custom widgets for Woocommerce. If we disable Yoast or revert to the Woocommerce shortcodes (revert is not an option right now) every notification (like for example missing login fields) appear.

Thank you! Best Regards!

bbdapereira avatar Jul 19 '22 10:07 bbdapereira

any news ? Same problem for me

jgigon avatar Oct 14 '22 10:10 jgigon

I had a quick look as I was replying to https://wordpress.org/support/topic/error-messages-not-showing-in-woocommerce/. I couldn't replicate the issue with the latest WooCommerce, Yoast SEO, and Elementor (free) with the default /my-account/ page created by WooCommerce. The notices were just showing fine for me.

As @FranAriza mentioned, I do think this is specific to the way you've created a customized "My account' page with Elementor Pro (which I'm not familiar with). Please check if you can get support from Elementor Pro and if they are able to reproduce the issue.

jeroenrotty avatar Oct 25 '22 10:10 jeroenrotty

Hello guys, nice to meet you all.

Here is the solution (walkaround for now) provided by Yoast premium support:

just edit the "my account" page normally (not with Elementor) and set a description in Facebook and Twitter box at the bottom of the page in the Yoast "social" tab.

Everything will work fine now.

Thank you :)

GabRomeHC avatar Dec 02 '22 12:12 GabRomeHC

Internal bug report: https://yoast.atlassian.net/browse/IM-2093

The problem happens when the My Account widget available in Elementor Pro is used on the WooCommerce My Account page.

monbauza avatar Dec 06 '22 07:12 monbauza

Exactly. This is the argument of this topic, no? Yoast and Elementor conflict in my account widget. Edit the my account page (made with elementor widget) via Wordpress "edit page", not via "edit with Elementor" and do like I wrote. Open again my account page and the problem is solved. Waiting for the official bug fix anyway.

GabRomeHC avatar Dec 06 '22 08:12 GabRomeHC

Have this same issue too. However, I found that this problem do not show if Twitter cards and Social media optimization is off.

MiaoMiaoGO avatar Jun 18 '23 06:06 MiaoMiaoGO

The problem is that Yoast tries to generate og:description and twitter:description probably by looking at the contents of the page and probably "consumes" the WooCommerce login error notice (I found the login error message inside the og:description meta tag...) which is then not availble when Elementor Pro tries to render the final page.

TESTED WORKAROUND (Yoast 20.10, Elementor Pro 3.14.1) Just set the "Facebook description" and "Twitter description" manually (make sure it is not empty) for that specific page (My Account).

(thanks @MiaoMiaoGO for narrowing the issue down to Yoast social media)

betatester07 avatar Jul 02 '23 11:07 betatester07

Elementor Pro have directed me to open a support ticket with Yoast, their reply was:

Since Yoast is a third-party plugin, we recommend reaching out to them so they can check their plugin files, make sure they are following WordPress standard so there will be no issues with compatibility when using Elementor as your main editor.

It would be awesome if Yoast & WooCommere & Elementor Pro play nicely together.

The workaround posted above didn't work for me. My workaround is to disable search engines for this page in the Yoast page settings.

EdithAllison avatar Mar 04 '24 18:03 EdithAllison

I have literally spent hours trying to solve this thinking it was WooCommerce, Elementor Pro or Astra Theme and reverse engineering it only to find it was Yoast. I hope they fix this soon!

contemplate avatar Mar 11 '24 02:03 contemplate

Hello, as commented before, spent lots of time on trying to find the culprite, finally – and it is a problem for quite some time. Please fix this soon – users need notices.

bdktsh avatar Apr 05 '24 13:04 bdktsh

I filled only the seo description and this fixed the issue. Now the banner appears! When the seo description is empty the og: description includes the error notice in its content! Thanks betatester07!

marcieee73 avatar Apr 05 '24 14:04 marcieee73

Hello, as commented before, spent lots of time on trying to find the culprite, finally – and it is a problem for quite some time. Please fix this soon – users need notices.

Can't agree more. Hopefully can get this fixed soon.

Letssura avatar Apr 09 '24 02:04 Letssura

+1 https://wordpress.org/support/topic/notices-woocommerce-my-account-doesnt-work-with-elementor-pro/

josevarghese avatar Apr 10 '24 07:04 josevarghese