[SOLVED] X-flexslider not displayed with a JSON error in the console

Hi,

It was easy to post a slider on our site a short time ago, but it seems that an error now prevents it from appearing.

https://www.3is.fr/bordeaux/test/

A JSON error appears in the console:

Uncaught SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at cs-body.js?ver=3.2.5:1
at cs-body.js?ver=3.2.5:1
at Array.forEach ()
at cs-body.js?ver=3.2.5:1
at Array.forEach ()
at f (cs-body.js?ver=3.2.5:1)
at Array.forEach ()
at HTMLDocument. (cs-body.js?ver=3.2.5:1)

@Rad I give you the login credentials in private message :wink:

Hello There,

Please follow up the steps below:

  1. Ensure everything is up to date according to our version compatibility list here. Please follow the best practices when updating your theme and plugins. Click here for more information.
  2. Go to X > Settings and click on the Clear Style Cache button.
  3. If you’re using a CDN(ex: CloudFlare), please clear the CDN’s cache and disable optimization services. For the CloudFlare you also need to follow the steps below besides the developer mode: https://xthemetips.com/using-cloudflare-rocket-loader-with-x-pro-and-x5/928/1
  4. Test for a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
  5. Remove custom CSS and Javascript from the options or Child Theme and test the case.
  6. Switch to the parent theme to check if the issue persists.
  7. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.
  8. Increase the PHP Memory Limit of your server. Click here for more detailed information and how to increase the PHP memory limit.

Let us know how it goes!

I finally found what was causing this error: a data-x-params that was not properly closed (with a onclick duplicated in it) in our function.php

 <a href="#share" data-x-element="extra" data-x-params=" onclick="ga(\'send\',\'event\',\'engagement\',\'clic_partage_reseaux_sociaux\',\'print\');" {&quot;type&quot;:&quot;tooltip&quot;,&quot;trigger&quot;:&quot;hover&quot;,&quot;placement&quot;:&quot;bottom&quot;,&quot;title&quot;:&quot;&quot;,&quot;content&quot;:&quot;&quot;}" class="x-share" title="" onclick="window.print();" data-original-title="Imprimer cette page">[x_icon type="print"]</a>

Glad to hear it’s sorted and thanks for letting us know.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.