• Resolved JeanineH93

    (@jeanineh93)


    Hello,

    Chrome console is giving me the following warning: Uncaught SyntaxError: Unexpected identifier

    It refers to: /* <![CDATA[ */
    var autoptimize_ajax_object = {"ajaxurl":"https:\/\/site.nl\/wp-admin\/admin-ajax.php","error_msg":"Your Autoptimize cache might not have been purged successfully, please check on the <a rel="nofollow" href="https:\/\site.nl\/wp-admin\/options-general.php?page=autoptimize">Autoptimize settings page<\/a>.","dismiss_msg":"Dismiss this notice.","nonce":"9abd0eb82e"};
    /* ]]> */
    

    How to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Weird; that looks like a bug in Autoptimize due to double-quotes in the error_msg breaking the error_msg string, but

    1. The code does not add those quotes
    2. I can’t reproduce on my sites

    What version of WordPress are you using on what version of PHP?

    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’ve done a small improvement in what will become AO25, but this was probably triggered by a 3rd party plugin such as W3 Total Cache or Pagespeed Ninja, both of which I have seen messing quotes up at some point.

    Groeten uit België,
    frank

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught SyntaxError: Unexpected identifier’ is closed to new replies.