Subscribe Submit Error in AMP Mode
-
We have used this plugin for many years and has always worked great for Non AMP sites.
However, there is a Warning Message displayed when submitting the subscribe form on an AMP site.
Setup:
Genesis Ver. 3.3.3
Navigation Pro Ver. 1.2.0
Genesis eNews Extended Ver. 2.2.0
AMP Ver. 2.1.2Mailchimp is used for the Email Subscriber list.
The Genesis eNews Extended Widget is being used in the “After Entry” section, so it displays on every page. AMP is configured for Standard Template Mode.
The Mailchimp form details are configured correctly, because works in NON AMP mode.
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.The Mailchimp “Subscribe” actually works, because the email subscriber details are added to the Mailchimp List. However, the User on the Website is shown the FAIL Warning Message instead of the correct Mailchimp subscribed message page.
We talked to the hosting provider, and they suggested we check support with the code developer.
The Genesis eNews Extended plugin does process the “Subscribe” with the Mailchimp List, but the plugin 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.
Do you have any suggestions or ideas?
Thanks so much.
Geoff
- The topic ‘Subscribe Submit Error in AMP Mode’ is closed to new replies.