Page MenuHomePhabricator

Not working, "Uncaught ReferenceError: $ is not defined" in console
Open, Needs TriagePublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

  • Open page with images;
  • Click on image.

What happens?:
File page opens.

What should have happened instead?:
File preview should have opened.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Software version: MediaWiki 1.35.2, PHP 7.4.18, SlimboxThumbs 2014-04-01 (379f277)

Version page URL (archived): Special:Version (archived)

Page URL:Лунтик

Browser log (developer console) when visiting page with images:

Uncaught ReferenceError: $ is not defined

What is really interesting is that when I type $ in developer console after the page was loaded, it does not respond with "$ is not defined" error. I guess, inline script loads before jQuery and therefore fails.

Event Timeline

Developer console screenshot:

Screenshot from 2021-05-31 20-32-48.png (1×1 px, 276 KB)

SlimboxThumbs 2014-04-01

That date is likely incorrect?

SlimboxThumbs 2014-04-01

That date is likely incorrect?

Hmm, maybe, but that is what Version page says: 2014-04-01 (379f277) 18:49, 13 may 2021

I have modified extension code a little using ResourceLoader, and it works, although it looks very strange.