Support » Plugin: Autoptimize » Uncaught SyntaxError: Unexpected identifier

  • Resolved JeanineH93



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

    It refers to: /* <![CDATA[ */
    var autoptimize_ajax_object = {"ajaxurl":"https:\/\/\/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:\/\\/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


    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?


    Plugin Author Optimizing Matters


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

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