• Resolved gabrielwolf

    (@gabrielwolf)


    I use Sage 8.4.2 and the Soil Plugin to load jQuery 1.x via CDN.
    Deactivating Soil and all plugins and my other js doesn’t help to start queueing.

    “The Asset Queue Manager panel did not load. This can happen if jQuery is not being loaded on the page. If you have encountered this error after dequeuing an asset by mistake, you can restore all assets dequeued by Asset Queue Manager. This message is only shown to administrators.”

    Any hint would be great!

    Best,
    Gabriel

    https://www.ads-software.com/plugins/asset-queue-manager/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author NateWr

    (@natewr)

    Hi Gabriel,

    When you inspect the assets loaded in your browser’s dev tools, are you seeing jQuery loaded on the page at all?

    Thread Starter gabrielwolf

    (@gabrielwolf)

    Hi Nate,

    without AQM active jQuery is being loaded and used. With your plugin active I get this error in the Console: Uncaught Error: Syntax error, unrecognized expression: .asset.handle-sage/css.styles

    Plugin Author NateWr

    (@natewr)

    Have you brought this issue to the attention of the Sage devs? They’d be better positioned to know why there’s a conflict going on. To be honest, there’s really nothing special about the JavaScript in AQM. It’s pretty basic, unsophisticated jQuery stuff.

    Thread Starter gabrielwolf

    (@gabrielwolf)

    I set up a fresh Bedrock/Sage-Wordpress with AQM and “unfortunately” I couldn’t reproduce the error. It works. Where should I dig further? Maybe in my specific Sage code? I already tried to exclude all JS.

    Plugin Author NateWr

    (@natewr)

    Maybe you’ve got something dequeued without realizing it? With AQM activated, go to the Plugins menu in WordPress. Under AQM you’ll see a link to “Restore Dequeued Assets”.

    That should blow away the setting in the database so if there’s anything getting messed with there it should reset.

    Thread Starter gabrielwolf

    (@gabrielwolf)

    I’ve done that all the time troubleshooting. I have another idea, I will change the theme and go back in Git history of theming to the point where it failed. Have to test that.

    Thread Starter gabrielwolf

    (@gabrielwolf)

    I fixed it!

    In the file setup.php the main.css and main.js are being loaded with name ‘sage/css’ and ‘sage/js’. The ‘/’ conflicts with AQM plugin. Simply remove sage from it and there you go. Here are the 2 corrected lines:

    wp_enqueue_style('css', Assets\asset_path('styles/main.css'), false, null);
    [...]
    wp_enqueue_script('js', Assets\asset_path('scripts/main.js'), ['jquery'], null, true);
    Plugin Author NateWr

    (@natewr)

    Nice! Thanks for reporting back. I’ve filed an issue for this. To be honest, though, I’m not doing much active development on the plugin these days. But at least it’s filed for future reference in case anyone stumbles upon the problem and a solution for AQM.

    @gabrielwolf – Thank you and great job, this really helped me. Also, Nate I love this plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin not working, because jQuery not loading’ is closed to new replies.