• Hi,

    I wasn’t able to use customizer. I deactivated all plugins and started one by one. The one that is causing the problem is smart slider 3 (free version). I never used pro version.

    There is an error at the chrome console that says: Uncaught SyntaxError: Unexpected identifier ‘wordpress’. This is the code:
    window.N2GSAP=0;window.N2PLATFORM=”wordpress”; function…

    Thanks for having a look

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @introarte

    I haven’t managed to reproduce this problem on my local test site using:

    • WordPress 6.7
    • and the latest Twenty Twenty-One theme, where the “Customize” option ( at WordPress > Appearance > Customize ) is still available.

    But your error message is quite strange, since the mentioned code part is just a value assignment, where we assign the “wordpress” string value to the N2PLATFORM property of the window object, yet your error mentions an error with an identifier.

    I am not really sure if it is because of the forum formatting or it appears already like that on the server, but in the code that you mentioned:

    window.N2GSAP=0;window.N2PLATFORM=”wordpress”; function…

    there are “Right Double Quotation Mark” characters:

    instead of normal quotation marks ( which should be there ):

    So first of all you should check if you see this character in the source code, too. If you do, then I believe a third party modified our code and messed the quotation marks up.

    To figure this out, you should check if the problem also occurs while:

    • Smart Slider 3 is the only enabled plugin ( so you have everything else deactivated in your plugins list )
    • and you use a clean ( unmodified ) WordPress default theme ( like Twenty Twenty-One )

    If the problem doesn’t occur like that, then you should start enabling the plugins one by one or in small groups until the problem occurs again. Once it does, please let us know the name of the plugin that conflicts with Smart Slider 3 and we will check it.

    If the problem occurs also with a WordPress default theme and with all plugins disabled ( except Smart Slider 3 ) then please get in touch with us directly over the ticket system:

    and we will continue the debugging there.

    Best regards,
    Laszlo.

    Thread Starter introarte

    (@introarte)

    Ok, i tried some options.

    • When i use twenty twenty-four there is no problem.
    • I am using a generatepress chid theme and it fails
    • With generatepress parent theme active it fails
    • When i deactivate WooCommerce, console log shows same error but customizer loads correctly
    • Woocommerce activated and smart slider activated fails
    • WooCommerce activated and smart slider deactivated, everything works fine. No errors

    Hope this tests helps

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @introarte

    Unfortunately, I haven’t managed to reproduce this problem with the mentioned setup either.

    Here it is what I did:

    • disabled all plugins ( so we can exclude other possible conflicts )
    • enabled Smart Slider 3 ( the Free version )
    • enabled WooCommerce
    • installed the GeneratePress theme ( the parent one ) from the official WordPress theme repository and set it as the active theme
    • opened the Customizer at WordPress > Appearance > Customize
    • in the Customizer I chose the “Right Sidebar” widget position and published a slider there via the Smart Slider 3 block
    • saved the changes
    • refreshed the page, so the Customizer loads again with a Smart Slider 3 slider present on the page
    • inspected the console -> there is no error, also the Customizer loaded fine

    Did I miss something? Should I do something differently to make the error occur?

    Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @introarte!

    We managed to replicate the problem and you can find the instructions with the fix here. If you would have any issues after that, let us know!

    • This reply was modified 3 days, 5 hours ago by Gabor.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.