@hassadr
I am not using the Push Notification options at the moment. So I solved temporary in this way:
open the file accelerated-mobile-pages/includes/features/push-notification/push-notification-functions.php
and comment from row 264 to 268
function ampforwp_truepush_markup(){
/* if (!checkAMPforPageBuilderStatus(get_the_ID()) && is_single()) {?>
<amp-web-push-widget visibility="unsubscribed" layout="fixed" width="250" height="45">
<button on="tap:amp-web-push.subscribe" class="amp-subscribe"><?php echo ampforwp_translation( ampforwp_get_setting('ampforw p-truepush-translator-subscribe'), 'Subscribe to updates' ); ?></button>
</amp-web-push-widget>
<?php } */
}
If your’re using Push Notification functionality, stay away from this.
Hope it helps.
@daweb
Thank you for your reply.
For me, I’m back to the previous version now.
I’m not using Push Notification option also.
Thanks to those who have raised this issue. I have not updated yet since it seems there are serious issues again – so thanks for the heads up. I must say, it is getting pretty frustrating that every time there is an update there seems to be a serious issue afterwards.
Thank you Davide. You helped me.
Hello,
To fix it simply add this to your functions.php
add_action('init', function () {
remove_action('ampforwp_after_post_content', 'ampforwp_truepush_markup');
remove_action('ampforwp_before_post_content', 'ampforwp_truepush_markup');
}, 11);
Sorry for the inconvenience. We already create a ticket for this issue and we are going to push it immediately. It will be fixed in the 1.0.66.1 update.
For Reference: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/4796
-
This reply was modified 5 years, 7 months ago by
Ahmed Kaludi.
This issue has been fixed in the latest version of the plugin(1.0.66.1). Can you please update the plugin and check once whether having the same issue or not. Then do let us know.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
I’m closing this topic to new replies as it quickly picked up many other people for their problem. I have also archived those replies.
If you need support then per the forum guidelines please start your own topic.
https://ww.wp.xz.cn/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too
You can do so here.
https://ww.wp.xz.cn/support/plugin/accelerated-mobile-pages/#new-post