-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions Widget Broken Under AMP with Native Template Mode #11595
Comments
Fix in #11637. |
Actually, I haven't seen the |
@macmanx2 I can't reproduce the In testing a site in native mode, when I submit the subscriptions form, I see a request to:
And the response headers include:
And there is no such error:
|
I can still reproduce this using the latest stables under Twenty Nineteen. Are you using a development version of either? |
I was using the latest stable version of the AMP plugin to test (v1.0.2). I tested with Twenty Seventeen, but the theme shouldn't matter. Can you share details about the environment you tested on? Maybe on Slack? |
Yeah, can you leave me a DM to remind me? I’m away from deep work until Monday. |
I forgot I could easily pull this from Health Check, which is hilarious because I recommend it for the same reason every day. WordPressVersion: 5.1.1 Installation sizeUploads Directory: 135.27 MB Active ThemeName: Twenty Nineteen Must Use Plugins (1)Health Check Disable Plugins: Version 1.0 Active Plugins (3)AMP: Version 1.0.2 by WordPress.com VIP, XWP, Google, and contributors Inactive Plugins (3)Akismet Anti-Spam: Version 4.1.1 by Automattic Media handlingActive editor: WP_Image_Editor_Imagick ServerServer architecture: Linux 3.10.0-693.11.6.1.ELK.el6.x86_64 x86_64 DatabaseExtension: mysqli WordPress ConstantsABSPATH: /home/macmanx2/public_html/delta/ Filesystem PermissionsThe main WordPress directory: Writable |
This may be the underlying problem right here. The So this is a separate issue (that AMP requires HTTPS), and not related to Jetpack, I believe. |
Hm, that does make sense in hindsight. I originally ruled that out since the original reporter's site was under HTTPS. Looking at https://wordpress.org/support/topic/amp-jetpack-subscribe-button-stopped-working/ it seems your pull request works, so I think we can close this. :) Thanks! |
When using AMP 1.0.2 and Jetpack 7.1.1 under WordPress 5.1.1, the Subscribe button in the Subscriptions widget does not function while under AMP's Native template mode.
To reproduce the issue, simply add the "Blog Subscriptions (Jetpack)" widget to your site, make sure that AMP is running under the Native template mode, and attempt to subscribe. You will notice that clicking the Subscribe button does nothing, and the following errors appear in the Console:
Response must contain the AMP-Access-Control-Allow-Source-Origin header: template-impl.js:227:8
Jf template-impl.js:227
<anonymous> viewport-impl.js:1126
assert log.js:349
y log.js:762
Wg action-impl.js:716
Form submission failed: Error: Response must contain the AMP-Access-Control-Allow-Source-Origin header: log.js:187:6
Ha log.js:187
Da log.js:242
error log.js:257
xc amp-form.js:885
The Subscribe button works perfectly under the Paired and Classic template modes, only the Native mode is affected.
Reported at https://wordpress.org/support/topic/jetpack-subscribe-button-stopped-working/
(Apologies if this should have gone under #9730 I didn't see it listed there and am not 100% sure on the protocol.)
The text was updated successfully, but these errors were encountered: