SyntaxError Unexpected identifier
-
hi
[Error] SyntaxError: Unexpected identifier ‘Insufficient’. Expected ‘;’ after variable declaration.
(anonymous function) (wpo-minify-footer-454322ce.min.js:72)Ref img1 : https://ibb.co/z7BcpHc
Ref img2 : https://ibb.co/HXP0Jxw
error 72 line is docx file : https://drive.google.com/file/d/1doguJtbpXCmh-ega5B3jCFrh9xS34kXm/view?usp=sharing
This problem only occurs when you are logged into the blog.
When you are logged out (guest mode), no error occurs.
I really need help.
Best Regards,
Hyunho
-
+
I Purge(remove) all caches, but the problem still occurs.@purityboy83 Can you please try to exclude the path of JS file which shows in the console in WP-Optimize > Minify > Javascript > Exclude and then check if you still see errors in console?
hi
ref img : https://ibb.co/6PvpQsw
js was added to exclude
and browser initialization
and minify resetHowever, the problem still occurs.
@purityboy83 Can you please add the full path instead of only adding the filename?
hi
ref img : https://ibb.co/bWpCFV4
and browser initialization
and minify resetHowever, the problem still occurs.
Hi
Reset minify : ref img – https://ibb.co/mBDJ3bX
exclude js : ref img – https://ibb.co/d61K7C3
browser cache purge : ref img – https://ibb.co/PZQXZSt
browser end -> start (restart )
connect to site => login => blog post check -> problem exists
ref img : https://ibb.co/BVdpR95
Is there a problem with what I have done?
(Is the procedure wrong?)Best Regards,
Hyunhohi
any update please?……
Tell me if there’s anything else I need to checkBest Regards,
HyunhoHi @purityboy83
Could you do the following:
– Remove thewpo-minify-***items that you put in the exclude field (that won’t do anything)
– Disable “Enable merging of JavaScript files” In Minify > JavaScriptAre you able to share your website’s URL?
Kind regards,
MarcHi
@marcusig– Disable “Enable merging of JavaScript files” In Minify > JavaScript
=>> result : The problem at the front of the blog has been fixed.What it means is
1) error increase 1->3
ref img: https://ibb.co/9WpPn7K2) but blog page is now fine
ref img: https://ibb.co/MDKJWjQ3) if use “Enable merging of javascript file” again(original setting)
Ref img : https://ibb.co/C8DdQm8this plugin is “Enlighter – Customizable Syntax Highlighter”
(https://wordpress.org/plugins/enlighter)Enable Merge JS -> problem blog -> Code highlight is weird
Disable Merge JS -> blog is fine -> Code highlight is normal
but background error increase 1->3However, an error occurs back side, but there seems to be no problem using the blog.
There seems to be no problem so far.
If you want the address of the site to solve the problem
i can duplicate the site and send inform you after changing account information.Because this problem only occurs when you are logged in.
So you also need to log in.If you want, i can provide you with a test site and admin account
(I will send you the information by email)Best Regards,
Hyunho-
This reply was modified 5 years, 6 months ago by
purityboy83.
Hi Hyunho,
Disabling Merge of JS enables you to see which files might cause an issue.
So you could now addgooglesitekitto the exclusions in the JavaScript settings.If you do not want do disable merging of JS, you can try enabling ” Contain each included file in its own block”. If the error still happens, it might be more accurate and display the name of the original file.
You can then add that file to the exclusion list.
If none of this works, you can send your details using this form: https://getwpo.com/ask-pre-sales-question/ and mentioning my name.
Marc
Hi
first, Thank you for your help1. exclude googlesitekit js and enable merge js
Any JavaScript files that match the paths below will be completely ignored
wpo-minify-footer-googlesitekit-modules-tagmanager.min.js
wpo-minify-footer-googlesitekit-modules-analytics.min.js
wpo-minify-footer-googlesitekit-modules-adsense.min.js
/core/cache/wpo-minify/1613579635/assets/wpo-minify-footer-googlesitekit-modules-adsense.min.js
/core/cache/wpo-minify/1613579635/assets/wpo-minify-footer-googlesitekit-modules-tagmanager.min.js
/core/cache/wpo-minify/1613579635/assets/wpo-minify-footer-googlesitekit-modules-analytics.min.js
/core/cache/wpo-minify/1613639244/assets/wpo-minify-footer-308f22ce.min.js=> occur error
2. ENABLE -> Contain each included file in its own block (enable if trying to isolate a JavaScript error introduced by minifying or merging)
I keep getting the error, but I wasn’t able to more accurately resolve the original file name
Error is same
SyntaxError: Unexpected identifier 'Gathering'. Expected ';' after variable declaration. wpo-minify-footer-308f22ce.min.js 169 lineShould I disable the merge js function and use it?
Best Regards,
HyunhoOnly add
googlesitekitin the list, and all the relevant files will be ignore. Do not add the file names containingwpo-minify-***, as that will not do anything.Error is same
Is there no extra information?
Hi @marcusig
Sorry too late response
I just added “googlesitekit” according to your guide
and enable : Enable merging of JavaScript files
and enable : Contain each included file in its own block (enable if trying to isolate a JavaScript error introduced by minifying or merging)Ref img : https://ibb.co/xJB7Q79
problem does not occur.
post is fine and code highlight it’s ok
Ref img : https://ibb.co/7SxzC8KI think the problem is solved
The code highlight problem was the biggest problem
Now it works normallyThanks
Best Regards,
Hyunho -
This reply was modified 5 years, 6 months ago by
The topic ‘SyntaxError Unexpected identifier’ is closed to new replies.