Im facing an error that not allow launch GTM. The error is shown in the Browser console as: Uncaught SyntaxError: Unexpected token ‘<‘
As soon I disable Litespeed cache plugin, everything works fine.
I tried to exclude the js in litespeed cache but doesn’t work.
Location and js url are:
– /wp-content/litespeed/localres/7a40012a55d690ae256a69a8aaf9399b.js
– wp-content/litespeed/localres/aHR0cHM6Ly93d3cuZ29vZ2xldGFnbWFuYWdlci5jb20vZ3RtLmpz?id=GTM-N64FH626
I found that the script has an error 400:
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 400 (Bad Request)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>400.</b> <ins>That’s an error.</ins>
<p>Your client has issued a malformed or illegal request. <ins>That’s all we know.</ins>
I already try this: https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/ and didnt solve the problem:
Someone can help me with this issue?
Thanks in advance
fl-builder.min.js?ver=2.5.5.5:1 ************************************************************************
fl-builder.min.js?ver=2.5.5.5:1 Beaver Builder caught the following JavaScript error. If Beaver Builder is not functioning as expected the cause is most likely this error. Please help us by disabling all plugins and testing Beaver Builder while reactivating each to determine if the issue is related to a third party plugin.
fl-builder.min.js?ver=2.5.5.5:1 "Uncaught SyntaxError: missing ) after argument list" on line 2 of https://jlcrobotics.com/wp-includes/js/underscore.min.js?ver=1.13.3.
fl-builder.min.js?ver=2.5.5.5:1 SyntaxError: missing ) after argument list
at new Function (<anonymous>)
at Function.template (underscore.min.js:2:15276)
at wp-util.min.js:2:290
at eval (eval at template (underscore.min.js:2:15276), <anonymous>:74:17)
at e (underscore.min.js:2:15349)
at wp-util.min.js:2:323
at Object.renderField (fl-builder.min.js:1:301020)
at eval (eval at template (underscore.min.js:2:15276), <anonymous>:79:37)
at e (underscore.min.js:2:15349)
at wp-util.min.js:2:323
fl-builder.min.js?ver=2.5.5.5:1 ************************************************************************
I followed the instructions, disabling all other plugins and re-enabling them one at a time until I found the one that broke BeaverBuilder and it was WP-Optimizer that’s breaking things. I can re-create the JS error at will by enabling WPO and fix it by disabling same.
Is there a way to fix this? I will post the same to the BB forums if possible to find an answer.
I’m on Windows 10 and tried both Chrome and Edge and still get the JS failure.
WP 6.0.2 running Astra
Astra 3.9.2
BB Plugin (Lite) 2.5.5.5
Powerback for BB 2.25.2
Ultimate Addons for Beaver Builder 1.35.1
WPO 3.2.9
I am getting some errors displayed within my chrome browser Console and those seems to relate to your plugin.
Uncaught SyntaxError: Invalid or unexpected token
and
VM6316 about:srcdoc:11 Uncaught TypeError: Cannot read properties of undefined (reading ‘split’)
Screenshot > https://www.screencast.com/t/Sa0ns9dwF
Please help to find out why and how to solve.
Best regards, Alex
]]>Using Google Chrome developer tools, it occasionally shows 2 errors. It’s not consistent. The first error is more common.
“Uncaught SyntaxError: Unexpected end of input” then the link is associated with Autoptimize.
“Uncaught ReferenceError: jQuery is not defined”
“(jQuery); //</script> <script defer src=”https://fathers.com/wp-content/cache/autoptimize/js/autoptimize______________.js”></script></body></html>”
I welcome all suggestions because I’ve searched and tried many suggestions, but still the issues remain.
]]>The details gave me a source “mysite dot com/wp-content/plugins/atomic-blocks/dist/assets/js/dismiss.js?ver=1556813107:6”
I put that into a browser, it gives this:
(function($) {
$(document).ready(function() {
const elems = document.querySelectorAll('.ab-block-notice.ab-dismissable[data-id]');
elems.forEach(el => {
const uid = el.getAttribute( 'data-id' );
if ( ! localStorage.getItem(<code>notice-${uid}</code>) ) {
el.style.display = 'block';
}
if ( $( '.ab-notice-dismiss' ).length ) {
el.querySelector('.ab-notice-dismiss').addEventListener('click', () => {
localStorage.setItem(<code>notice-${uid}</code>, 1);
el.style.display = '';
})
}
})
});
})(jQuery);
Is it problem with the plugin?
How significant is it?
Thanks
]]>Yoast seo Not working In My website. When I check My Consol I find This :
https://image.ibb.co/mhnzdA/issus.png
I using WordPress 4.9.8 and Yoast SEO for WordPress 9.0.2
the issue doesn’t persist when Yoast SEO is disabled.
I find JavaScript errors in My Consol related to Yoast SEO.
I tried to Deactivate All My plugins One by One, but issue Is persist.
I Use theme Newspaper
And Javascript is enabled in my web browser.
]]>Console shows “Uncaught SyntaxError: Unexpected token ;” 2x. First – admin.php?page=manage_fmc on line 731, that is:
document.getElementById('show_title').value=document.getElementById('pages').getAttribute("show_title");
document.getElementById('show_numbers').value=document.getElementById('pages').getAttribute("show_numbers");
return true;
}
gen = ; // !!!!!!!!!!!!!!!!!!!!!!!!!!!
function enable() {
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
for (x = 0; x < 14; x++) {
And another one:
function formOnload() {
for (t = 0; t < ; t++) { // !!!!!!!!!!!!!!
if (document.getElementById(t + "_typeform_id_temp")) {
if (document.getElementById(t + "_typeform_id_temp").val
]]>See print below:
print
Can this be fixed?
Tks!
]]>