Skip Navigation

[Resolved] Need to resolve a previously reported issue about AMP for WP compatability

This thread is resolved. Here is a description of the problem and solution.

Problem:

AMP for WP plugin is not compatible issues with Toolset Blocks plugin.

Solution:

I don't think AMP plugin is compatible with Toolset plugins, see details here:

https://toolset.com/forums/topic/need-to-resolve-a-previously-reported-issue-about-amp-for-wp-compatability/#post-2205689

Relevant Documentation:

This support ticket is created 2 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.99 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by dbarber 2 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2203149

I had opened a support ticket on this previously and it was paused while another issue was being looked at.

I tried to "reactivate" the ticket but got a notification that it had been closed.

Here's the link to the original support ticket: https://toolset.com/forums/topic/amp-validation-errors-due-to-div-tag-and-script-added-before-doctype-html/

#2204571
amp1.jpg

Hello,

I have checked the HTML source codes of URLs you mentioned in previous thread:
view-source:hidden link
view-source:hidden link

I don't see the same problem:
there's a div tag and a script that appear before anything else on the problematic pages.

See my screenshot amp1.JPG

Is there any steps missing? is this problem resolved?

#2204737

Sorry for the confusion, Luo.

I had disabled Toolset on the AMP version on the production site.

You can see the problem on the staging version:

hidden link

#2205689

Thanks for the details, I can see the problem in your website, please compare the HTML source codes below two URLs:
1) Without AMP:
view-source:hidden link
Those HTML div tags are in HTML body tag, you can search below codes

<div class="tces-js-style-encoded"

2) But in the problem URL with AMP:
view-source:hidden link
Those HTML div tags are moved to above all other HTML tag:

So it is AMP plugin conducts the problem, I don't think we can fix their issue

3) In above problem URL, you should be able to see below JS errors:
hidden link
Uncaught ReferenceError: toolsetCommonEs is not defined

The AMP plugin prevents loading javascript files of Toolset Blocks plugin, for example:
hidden link
it will conducts lots of unexpected results, so I don't think AMP plugin is compatible with Toolset plugins.

#2209331

Thanks, Luo. I will follow up with their support team.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.