• Resolved davenoakes

    (@davenoakes)


    Hi Frank,

    I’m getting a strange problem on several pages & posts.

    In console, I’m receiving the following error

    autoptimize_a207b054e75cf9e02e929b217f891189.php:267 Uncaught ReferenceError: require is not defined
    at autoptimize_a207b054e75cf9e02e929b217f891189.php:267
    at autoptimize_a207b054e75cf9e02e929b217f891189.php:267

    Which appears to have something to do with the table of contents plus plugin (it was because of that plugin not functioning correctly on the pages in question that my attention was drawn to this error).

    However, when I deactivate the plugin, I get a similar error referring to something else.

    autoptimize_3dc909c462ecc9bf919d5a0b2a9830e6.php:493 Uncaught ReferenceError: require is not defined
    at autoptimize_3dc909c462ecc9bf919d5a0b2a9830e6.php:493
    at autoptimize_3dc909c462ecc9bf919d5a0b2a9830e6.php:493

    Do you have any idea what could be going on?

    Thanks in advance for your help!

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

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

    (@optimizingmatters)

    I would need to be able to switch between the Autoptimized & non-AO’ed version of your site by adding ?ao_noptimize=1 to the URL, but something (your page cache) is breaking that behavior, so except for the fact that the JS source is “infinite scroll”-s, there’s not a lot I can do now I’m afraid ..

    Thread Starter davenoakes

    (@davenoakes)

    I tried switching off comet cache and adding ?ao_noptimize=1 to the page myself, but there was no change to the messages in console. I guess that turning off comet cache was not enough to address this issue. Do you have any idea where else I could find page cache settings that would be causing this?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmmm, maybe a cloudflare setting?

    Thread Starter davenoakes

    (@davenoakes)

    Looks like it’s not Cloudflare either. I paused Cloudflare completely, and deactivated Comet Cache, and still the same problem.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    weird, no idea why ?ao_noptimize=1 isn’t working I’m afraid. (clumsy) alternative is to disable JS optimization so we can have a look at what happens then (both at HTML source and console error level)?

    Thread Starter davenoakes

    (@davenoakes)

    Hi Frank,

    An update on this… Somehow, swapping between parent theme and child theme several times and clearing cache even more times has made this error disappear (in both parent and child theme).

    I have no idea how that happened, but it seems to be fixed. Thanks, as always, for your help!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    let’s put this one down to the mysteries of wordpress-performance-optimizing-weirdness in that case ??

    have a nice day,
    frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uncaught ReferenceError: require is not defined’ is closed to new replies.