kraftbj / genesis-enews-extended

WordPress widget to provide additional functionality to the Genesis eNews widget.
https://kraft.blog/genesis-enews-extended/
Other
12 stars 15 forks source link

AMP Issue? #154

Open geoffmckay opened 3 years ago

geoffmckay commented 3 years ago

We use this plugin on an WP site. When AMP is enabled, the Subscribe/Submit generates an error. If AMP is disabled, it works fine.

Does anyone know how to resolve this issue?

DETAILS: WP Theme: Genesis Ver. 3.3.3 Genesis Child Theme: Navigation Pro Ver. 1.2.0

Plugins: Genesis eNews Extended Ver. 2.2.0 AMP Ver. 2.1.2

Email List Manager: Mailchimp

The Plugin works great when AMP is disabled. The issue only happens when AMP is enabled. The Submit/Subscribe connects with the Mailchimp List, and it adds the subscribe to the MC List. However, the redirect to the Mailchimp Subscriber Success Notice Page fails.

ERROR DETAILS: When AMP is enabled, the re-direct to the success page for the subscribe fails. Instead, an Empty Error Code is displayed.

The following is displayed in a red box in the subscribe widget area: “Your submission failed. The server responded with (code). Please contact the developer of this form processor to improve this message. Learn More”

There is no error code provided. Just the word “code”. The “Learn More” in the error displayed links to: https://amp-wp.org/documentation/playbooks/handling-form-submissions/

Using Google Chrome Inspect, the following errors are detected: __amp_source_origin from origin ‘…’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

As mentioned, the Genesis eNews Extended plugin does process the “Subscribe” with the Mailchimp List, but the website shows an Error (with empty error code), instead of re-direct to the success page on Mailchimp.

The site is not in production yet, so I can not provide a public link.

However, here is the error displayed when you attempt to subscribe: Capture

Do you have any suggestions or ideas? Thanks so much. Geoff