-
Author
-
March 24, 2016 at 12:18 #112523fersampParticipant
Hi,
I have a SyntaxError: illegal character when loading home page.In particular:
COPY CODE<p><script>// <![CDATA[ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v2.5"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); // ]]></script></p>
Is it a problem about facebook sdk for login?
How can I solve it?
Thank you
March 24, 2016 at 17:55 #112590RaduModeratorHi,
Do you have latest theme version 4.0.4 ?
Also this kind of issue can be caused by some third plugins, do you have a plugin for social connect ? if yes try to disable it to see if that causes this
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 25, 2016 at 13:44 #112725fersampParticipantHi Radu,
I have the latest KLEO version and these plugin active:
<p style=”text-align: left;”>BuddyPress</p>
<p style=”text-align: left;”>BuddyPress Cover Photo</p>
<p style=”text-align: left;”>Seleziona BuddyPress Multilingual</p>
<p style=”text-align: left;”>Contact Form 7</p>
<p style=”text-align: left;”>Events Manager</p>
<p style=”text-align: left;”>Events Manager and WPML Compatibility</p>
<p style=”text-align: left;”>K Elements</p>
<p style=”text-align: left;”>rtMedia for WordPress, BuddyPress and bbPress</p>
<p style=”text-align: left;”>rtMedia Upload Terms</p>
<p style=”text-align: left;”>Slider Revolution</p>
<p style=”text-align: left;”>Seleziona UpdraftPlus – Backup/Restore</p>
<p style=”text-align: left;”>WPBakery Visual Composer</p>
<p style=”text-align: left;”>WPML Multilingual CMS</p>
<p style=”text-align: left;”>WPML String Translation</p>
<p style=”text-align: left;”></p>
<p style=”text-align: left;”>I have still the same problem.</p>
<p style=”text-align: left;”>Uncaught SyntaxError: Unexpected token ILLEGAL</p>March 25, 2016 at 13:47 #112727fersampParticipantSorry for the post, I don’t know why it gave me a syntax error even the post 🙂
I have the latest KLEO version and these plugin active:
- BuddyPress
- BuddyPress Cover Photo
- Seleziona BuddyPress Multilingual
- Contact Form 7
- Events Manager
- Events Manager and WPML Compatibility
- K Elements
- rtMedia for WordPress, BuddyPress and bbPress
- rtMedia Upload Terms
- Slider Revolution
- Seleziona UpdraftPlus – Backup/Restore
- WPBakery Visual Composer
- WPML Multilingual CMS
- WPML String Translation
But I have still the same problem –Â Uncaught SyntaxError: Unexpected token ILLEGAL
March 25, 2016 at 18:15 #112764RaduModeratorHi,
Try to disable all plugin except : Visual Composer, K-elements, Buddypress and Revolution Slider
Let me know if the error goes away
If the error not goes away please provide me URL and credentials to check
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 25, 2016 at 18:41 #112772fersampParticipantHi Radu,
I localized the problem: Facebook Page code that I inserted in a row element.
I used this code got direclty from Facebook Developer page:
<script>// <![CDATA[ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v2.5”; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’)); // ]]></script>
But I need it… Probably it is in conflit with Kleo login facebook…
How can I use both together?
March 28, 2016 at 13:32 #113071RaduModeratorHi,
Try to put that is in header not in body from wp-admin -> theme options -> general settings -> quick js.
Let me know
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 29, 2016 at 10:13 #113224fersampParticipantI didn’t add it manually, so I could add that jv code in quick js but I don’t know where to remove the old.
March 29, 2016 at 16:17 #113267RaduModeratorMaybe some plugin inject the js code into body, try to disable all plugins except visual composer, revolution slider , woocommerce and K-elements then clear cache and and see if the js is there if is still there please provide an url to take a look
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.