Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #706762

    I noticed that, after updating Enfold to version 3.8, a JS error started appearing on the pages.

    Uncaught SyntaxError: Unexpected token var
    data:application/javascript;base64,dmFyIHVyY2hpblRyYWNrZXI9ZnVuY3Rpb24oKXt9LF9nYXE9e3B1c2g6ZnVuY3Rpb24oKXt0cnkge2lmKGFyZ3VtZW50c1swXVswXT09J19saW5rJyl3aW5kb3cubG9jYXRpb24uaHJlZj1hcmd1bWVudHNbMF1bMV19Y2F0Y2goZXIpe319fSxfZ2F0PXtfY3JlYXRlVHJhY2tlcjpmdW5jdGlvbigpe30sIF9nZXRUcmFja2VyOmZ1bmN0aW9uKCl7cmV0dXJue19fbm9TdWNoTWV0aG9kX186ZnVuY3Rpb24oKXt9LF9saW5rOmZ1bmN0aW9uKG8pe2lmKG8pbG9jYXRpb24uaHJlZj1vO30sX2xpbmtCeVBvc3Q6ZnVuY3Rpb24oKXtyZXR1cm4gdHJ1ZTt9LF9nZXRMaW5rZXJVcmw6ZnVuY3Rpb24obyl7cmV0dXJuIG87fSxfdHJhY2tFdmVudDpmdW5jdGlvbigpe319fX07Y3hBcGk9e3NldENvb2tpZVBhdGg6ZnVuY3Rpb24oKXt9LGNob29zZVZhcmlhdGlvbjpmdW5jdGlvbigpe319dmFyIF9nYXQ9e19nZXRUcmFja2VyQnlOYW1lOiBmdW5jdGlvbigpe190cmFja0V2ZW50OiBmdW5jdGlvbigpe319fTs=

    After an investigation, it turned out to be related to the GA script added in the theme settings. I removed that script, and the error disappeared. Thinking of an issue in the script, I copied it from my GA settings, but the error returned.

    I made an experiment, removing the script from the Enfold settings and adding it via a wp_footer event. The script runs fine, no error is returned in that case. Perhaps this information may help you finding the cause of the issue.

    #706996

    Hey Diego,

    Thanks for reporting that though I think it’s something local on your installation since we haven’t heard this reported by any other users.

    Best regards,
    Rikard

    #707043

    I would doubt that it’s something specific to my setup. It looks like the GA script is minimised, and that causes the error. I explicitly disabled JavaScript minification in any my settings (didn’t touch Enfold) to prevent these issues, and the error occurred only after the update to Enfold 3.8.

    As I wrote, I worked around it by removing the GA script from the theme settings and by injecting it manually. The script is no longer minified, and it works fine.

    #707559

    Hi,

    Ok, thanks for letting us know. We’ll have a look at it.

    Best regards,
    Rikard

    #1367386

    Hi,

    I have a similar error. the message it appears on WordPress is
    Site: http://www.lunica.it

    Modifica widget: Google Analytics Stats ADD widget: Google Analytics Stats Modifica Aggiungi Google Analytics Stats
    Google Analytics Stats

    Thanks in advance
    Regard
    Alessia
    (Email address hidden if logged out)

    #1367414

    Hi Alessia,

    Could you try updating the theme to the latest version (5.1.2) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. If not, then please open a new thread and include WordPress admin login details in private, so that we can have a closer look at your site.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.