AMP+ Jetpack – Subscribe button stopped working
-
When AMP is activated the Jetpack Subscription button does not work.
https://ww.wp.xz.cn/support/topic/jetpack-subscribe-button-stopped-working/
I deactivated AMP and it works.
-
Thanks for reporting this. I can reproduce the problem. I’ll investigate and open a pull request to fix the widget in Jetpack. I may be able to create a patch plugin for you to use in the mean time as well.
@mbiernat Please try installing this workaround plugin: https://gist.github.com/westonruter/3b61ffcfbc1b528b1135ac7cc065eaa2
With that enabled, should be able to submit the subscriptions form from an AMP page.
It turns out that this is, I believe, a bug in the AMP project itself, not with the AMP plugin. The issue is that when clicking the button:
<button type="submit" name="jetpack_subscriptions_widget">Subscribe</button>The AMP form submit handler is not including the button
jetpack_subscriptions_widgetamong the form data being submitted. I’m going to open an issue with the AMP project as well to fix it upstream./cc @flixos90
Aside: I’m curious why the form submission on a paired AMP page is not resulting in a redirect to an AMP page. A separate minor issue to look at.
Filed issue with the AMP project for underlying fix: https://github.com/ampproject/amphtml/issues/21498
I’ve also extended the workaround plugin to also implement Ajax-based handling of the submission response. So instead of the page reloading upon submission, the success/error message will be displayed inline with the form.
@westonruter
Your plugin fix “Jetpack Subscriptions Widget AMP Workaround and Ajax Enhancements” -I tested on two of my websites and they both work. Thank you.I’ve also opened a fix for Jetpack: https://github.com/Automattic/jetpack/pull/11637
Dear all,
I’m a basic user, then I cannot really understand how to solve the issues that occurs to all my websites.
I didn’t realize since now that the jetpack subscription widget didn’t work. It disappear from the sidebar of all my websites eg http://www.professionefarmacia.it/blog-professione-farmacia/ or http://www.ati14.it/blog-per-anestesisti-rianimatori/.
Would you please guide me step by step to solve the problem?
I believe this is a bug in AMP (not the AMP plugin) which should be fixed soon: https://github.com/ampproject/amphtml/pull/21518
For more background on the issue, see: https://github.com/Automattic/jetpack/pull/11637
You can also use this workaround plugin in the mean time: https://gist.github.com/westonruter/3b61ffcfbc1b528b1135ac7cc065eaa2
Hi. Just tryed the workaround plugin. Still doesn’t work. I don’t have any AMP plugin either. Any new idea?
@giannandrea Neither of the URLs you shared are for AMP pages. Did you disable AMP? I can see the subscription widget on http://www.professionefarmacia.it/blog-professione-farmacia/
@sandydeea Please share the URL for the AMP page that has the subscription widget on it.
I am not sure what AMP page is, but my url with problem is https://www.cinefilia.ro/
When there was no workaround plugin i just had the error on the page, now it ust look like a broken site…I tryed to disable some of the plugins that i have but no result. I have no AMP plugin or AMP related plugin… at least not sure.
-
This reply was modified 7 years, 1 month ago by
sandydeea.
@sandydeea This topic here is about an incompatibility with the AMP plugin and Jetpack. Since you don’t use the AMP plugin, please report any issues you have with Jetpack at https://ww.wp.xz.cn/support/plugin/jetpack/.
If you have general support questions about your website, go to https://ww.wp.xz.cn/support/.
Dear @westonruter, yes you can see the subscription widget because I solved the problem.
Thanks for your help -
This reply was modified 7 years, 1 month ago by
The topic ‘AMP+ Jetpack – Subscribe button stopped working’ is closed to new replies.