Hi @huislaw
I am having the same issue as per my post
At the moment I also have only two pages missing the content and only showing the header and footer.
I have searched all the forums and found nothing so far. I have also done the most recent AMP updates.
Hi @votw,
So weird, I found two pages so far as well.
you can downgrade to the version 0.9.64 to temporarily fix the issue. It happens to any post/page with a lot of links/images inside but I don’t know why. Maybe due to the css/js (or css/js compressed)
Ref: https://wordpress.org/support/topic/content-in-the-post-disappeared-and-amp-minify-conflict-with-w3tc/
My two pages are fixed.Before this the content itself is compressed. I uncompressed the content then it is OK now.
But I guess a patch is needed because I have many older pages with compressed content.
Thanks.
-
This reply was modified 8 years, 4 months ago by
huislaw.
@huislaw @votw
That’s really strange. The content is already there but it’s not displaying.
Can you contact us on team@magazine3.com ? I will make sure that your issues are fixed immediately!
It’s a big concern for us too and I assure you that we will find the root cause of this and fix it for you.
Same issue here!
After 0.9.67 upgrade still same issue… back again to 0.9.64.
Tried to deactivate all plugins didnt help.
Sorry but I can stop my site or plugins for pluging debuging… only answer questions.
Regards,
Hi @votw @dimadjmorg @huislaw @vivisa0290 @jorgitobg @haynhat
I really appreciate your patience guys, We have found the reason behind this issue and fixed it. This will be fixed in 0.9.68 version which will be released tomorrow.
Here is the reference to the ticket: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1392
If you don’t want to wait till tomorrow, then here is a quick fix for you. Go to features.php and remove the below line
// Removing text-align, center, font-size from the a tag
$content = preg_replace('/<a (href=".*?")(.*?)(rel=".*?").*?(text-align:=".*?").*?(center=".*?").*?(font-size:=".*?")>/', '<a $1 $3>', $content);
Sorry for the inconvenience.
Hi! Thanks for the support!
I’ve commented line 1002
// Removing text-align, center, font-size from the a tag
//$content = preg_replace(‘//’, ‘‘, $content);
But content still missing.
If can help, this is the original article.
https://www.tornaremagri.it/sport-dimagrire-non-ce-la-faccio-a-fare-sport/
This is amp version
https://www.tornaremagri.it/sport-dimagrire-non-ce-la-faccio-a-fare-sport/amp
Thanks!
EDIT: Commentig also line 999 and 1000 content show up
// removing sl-processed form anchor tag
//$content = preg_replace(‘ < a (href=”.*?”)(.*?)(target=”.*?”)(.*?)(sl-processed=”.*?”) >/ ‘, ‘< a $1$3 >’, $content);
//$content = preg_replace(‘ < a (href=”.*?”)(.*?)(rel=”.*?”)(.*?)(sl-processed=”.*?”) >/’, ‘< a $1$3 >’, $content);
-
This reply was modified 8 years, 4 months ago by
dimadjmorg.