gasparesganga/jquery-loading-overlay

Uncaught TypeError: Cannot read property 'extend' of undefined

Closed this issue · 6 comments

Hello, I just started using your plugin and love the light-weight code. Thanks!!

I tried using the progressbar addition; but ran into an issue. I took the code off the cdn, and included it into a single file to keep it local. I have a slew of other stuff running, so it's entirely possible something else is interfering. jQuery is not my strongest language, and I'm a bit lost.

Any assistance would be greatly appreciated. Screenshot is attached. This is happening in all of my browsers (chrome, firefox, opera, and safari).

Thank you.

capture

For testing purposes you should try to run the same code using the single js files, not merged into a single one. This way you should be able to identify the exact file that generates the problem and at what line.

I I have to guess judging from your screenshot, I would say jQuery is not properly loaded before you try to initialize a LoadingOverlayProgress.

Anyways, could you post the relevant code that generates the problem?

I do love a responsive developer!

Well, it's in a WordPress site, so jquery is loaded as a dependency to the two files you've written. I'm sorry I can't give you the page; it's behind a paid membership platform. I'll try tomorrow (it's late here) to replicate on a public site where I can share the link.

In the meantime, here is the updated screenshot:

capture

I've just released a new bugfix version of this plugin and I am pretty sure it works fine, I test everything before every release. I am incline to think it's something related to your website configuration.
As I wrote before, that error message leads to think whether jQuery has been already defined or not. Extra Progress uses $.extend() when initialized, so that undefined could be exactly $ (jQuery)!

Understood. I'll get it on a public site tomorrow and see if the issue persists. I'll update back here as soon as I make some progress.

Thank you.

No updates about that?
Was the cause the one I hinted?

After one month without any reply, I'm assuming I was right about the missing jQuery library...
I'm closing this.