Topic on Project:Support desk

<code>common.js</code> files are not executing

8
Weeklyd3 (talkcontribs)
  1. I installed Mediawiki brand-new.
  2. I set $wgAllowUserJs = true; at the bottom of LocalSettings.php.
  3. I created a Special:Mypage/common.js file and saved it with contents such as alert(1).
  4. When I bypass the cache, the JavaScript does not execute. Why not? I'm using Mediawiki 1.37.2 and PHP 7.4.29 with MariaDB.

I.hate.spam.mail.here (talk) 04:51, 17 May 2022 (UTC)

Bawolff (talkcontribs)

If you open the developer console in your web browser, are there any errors?

Weeklyd3 (talkcontribs)
Bawolff (talkcontribs)

Are you sure? The script will be named load.php

Weeklyd3 (talkcontribs)
Bawolff (talkcontribs)

If you have a link to your wiki, it would be helpful so we could look closer.

Weeklyd3 (talkcontribs)

Sorry, I'm running it on localhost, so I don't have a link. ~~~~

Weeklyd3 (talkcontribs)