Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter purityboy83

    (@purityboy83)

    +
    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?

    Thread Starter purityboy83

    (@purityboy83)

    hi

    @bornforphp

    ref img : https://ibb.co/6PvpQsw

    js was added to exclude

    and browser initialization
    and minify reset

    However, the problem still occurs.

    @purityboy83 Can you please add the full path instead of only adding the filename?

    Thread Starter purityboy83

    (@purityboy83)

    hi

    @bornforphp

    ref img : https://ibb.co/bWpCFV4

    and browser initialization
    and minify reset

    However, the problem still occurs.

    Thread Starter purityboy83

    (@purityboy83)

    Hi

    @bornforphp

    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,
    Hyunho

    Thread Starter purityboy83

    (@purityboy83)

    hi

    @bornforphp

    any update please?……
    Tell me if there’s anything else I need to check

    Best Regards,
    Hyunho

    Hi @purityboy83

    Could you do the following:
    – Remove the wpo-minify-*** items that you put in the exclude field (that won’t do anything)
    – Disable “Enable merging of JavaScript files” In Minify > JavaScript

    Are you able to share your website’s URL?

    Kind regards,
    Marc

    Thread Starter purityboy83

    (@purityboy83)

    Hi
    @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/9WpPn7K

    2) but blog page is now fine
    ref img: https://ibb.co/MDKJWjQ

    3) if use “Enable merging of javascript file” again(original setting)
    Ref img : https://ibb.co/C8DdQm8

    this 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->3

    However, 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 add googlesitekit to 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

    Thread Starter purityboy83

    (@purityboy83)

    Hi
    first, Thank you for your help

    1. 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 line

    Should I disable the merge js function and use it?

    Best Regards,
    Hyunho

    Only add googlesitekit in the list, and all the relevant files will be ignore. Do not add the file names containing wpo-minify-***, as that will not do anything.

    Error is same

    Is there no extra information?

    Thread Starter purityboy83

    (@purityboy83)

    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/7SxzC8K

    I think the problem is solved

    The code highlight problem was the biggest problem
    Now it works normally

    Thanks

    Best Regards,
    Hyunho

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘SyntaxError Unexpected identifier’ is closed to new replies.