Hi @lesrossacs
Which AMP plugin are you using? Currently we’re compatible with:
AMP for WordPress and AMP for WP – Accelerated Mobile Pages.
The JavaScript error points to a file minified by WP Fastest Cache. Have you cleared its cache recently?
Do you know if they provide different cache files for AMP and non-AMP pages? Because the problem can be that while our code would skip the slider on AMP pages, WPFC still shows the “non-AMP” page as the AMP one, so our codes are not skipped at all.
-
This reply was modified 7 years, 9 months ago by
Ramona.
Hi,
I’m using AMP for WordPress.
Yes I’ve cleared the cache recently.
I just cleared it again right nos and tried to start a validation of the correction in the search console. But it has been declined again with the following message : “Not posible to continue the validation process. Some pages concerned had been found. Fix the issue and launch a new validation.
I have no idea if they proved different cache file for AMP and non AMP :/
I might try another cache plugin (I have other issues with it). Do you recommande a specific cache plugin to work properly with smart slider ?
Hi @lesrossacs
Smart Slider 3 should work fine with any kind of caching plugin. What you should really look for in the new caching plugin is whether it can make a difference between AMP and non-AMP pages. (E.g. by creating a separate cache for them.)
Ok I’ll check that with the cache plugin developer 🙂
Seems like the issue about JS & CSS is linked to minified file from this cache plugin.
For the 3rd issue “The attribute “amp-custom” mandatory is missing in the tag “style amp-custom””, do you have any idea where it could come from ?
Thanks
Hi @lesrossacs
Unfortunately, I’m not really familiar with AMP but this documentation might help figuring out the problem: https://www.ampproject.org/docs/troubleshooting/validation_errors
Hello again 🙂
Seems like the issue comes from the slider (and not the cache plugin) in the end.
I deactivated the cache plugin and analyzed the AMP URL again, and here are the pieces of code that are in error now for JS & CSS. Seems like its’ coming from smart slider minified files :
JS (6 JS errors in total) :
<script type=”text/javascript” src=”https://lesgrossacs.com/wp-content/plugins/smart-slider-3/nextend/media/dist/n2.min.js?1536127411″></script>
<script type=”text/javascript” src=”https://lesgrossacs.com/wp-content/plugins/smart-slider-3/library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.min.js?1536127411″></script>
</style><script type=”text/javascript”>(function(){var N=this;N.N2_=N.N2_||{r:[],d:[]},N.N2R=N.N2R||function(){N.N2_.r.push(arguments)},N.N2D=N.N2D||function(){N.N2_.d.push(arguments)}}).call(window);if(!window.n2jQuery){window.n2jQuery={ready:function(cb){console.error(‘n2jQuery will be deprecated!’);N2R([‘$’],cb)}}}window.nextend={localization:{},ready:function(cb){console.error(‘nextend.ready will be deprecated!’);N2R(‘documentReady’,function($){cb.call(window,$)})}};</script><script type=”text/javascript” src=”https://lesgrossacs.com/wp-content/plugins/smart-slider-3/nextend/media/dist/n2.min.js?1536127411″></script>
CSS :
<link rel=”stylesheet” type=”text/css” href=”https://lesgrossacs.com/wp-content/plugins/smart-slider-3/library/media/smartslider.min.css?1536127411″ media=”all” />
Any idea on how I could fix that ?
Hi @lesrossacs
Could you please open a support ticket to check out this bug? You can do it here: https://smartslider3.com/contact-us/support/?topic=Other&platform=WordPress&version=Free
Also, please refer to this topic in your ticket.