• Resolved bcupham

    (@bcupham)


    Hi,

    The Critical CSS settings page is unresponsive and is not showing any rules. Attempting to click on any of the buttons gets no response.

    I see the following errors in the console:

    VM20944:1 Uncaught SyntaxError: Unexpected end of JSON input
        at JSON.parse (<anonymous>)
        at HTMLDocument.<anonymous> (options-general.php?page=ao_ccss_settings:673)
        at i (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:2)
        at Function.ready (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:2)
        at HTMLDocument.J (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:2)

    and this error seems to appear in the console every 30 seconds or so:

    Uncaught TypeError: Cannot read property 'hasClass' of undefined
        at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-dragga&load[chunk_1]=ble,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,thickbox,svg-painter,wp-hooks,heartbeat,wp-auth-check&ver=5.4.1:684)
        at HTMLDocument.dispatch (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:3)
        at HTMLDocument.r.handle (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:3)
        at Object.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:3)
        at Object.a.event.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:8)
        at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:3)
        at Function.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:2)
        at a.fn.init.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:2)
        at a.fn.init.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.4.1:3)
        at Object.<anonymous> (load-scripts.php?c=1&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-dragga&load[chunk_1]=ble,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,thickbox,svg-painter,wp-hooks,heartbeat,wp-auth-check&ver=5.4.1:682)

    Could this be because there are too many rules? It was auto-generating a rule for every separate 404.

    Thanks,
    Ben

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

    (@optimizingmatters)

    Could this be because there are too many rules?

    Assuming it worked before: yes. Any idea how many you have?

    It was auto-generating a rule for every separate 404.

    AO will not generate rules if the is_404() conditional matches, but if your theme (or a plugin) is preventing that conditional from returning true, then AO can only assume this is a valid page.

    If your 404-ing non-is_404() pages all use the same (specific) template, you could create a manual rule for that template maybe?

    removing all rules (and jobs) lastly, can be done with this code snippet (which obviously should only be executed once);

    update_option( 'autoptimize_ccss_rules', '' );
    update_option( 'autoptimize_ccss_queue', '' );

    hope this helps,
    frank

    Thread Starter bcupham

    (@bcupham)

    Thanks I will try that.

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

The topic ‘Critical CSS settings page unresponsive’ is closed to new replies.