Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not seem to load with MinervaNeue on 1.36.1 #33

Open
Yuubari opened this issue Jul 16, 2021 · 5 comments
Open

Does not seem to load with MinervaNeue on 1.36.1 #33

Yuubari opened this issue Jul 16, 2021 · 5 comments

Comments

@Yuubari
Copy link

Yuubari commented Jul 16, 2021

I am using 0.8.2 on MW 1.36.1 with MobileFrontend 2.3.0 (f78273c) and MinervaNeue (20711d8) from May 28th 2021. On pages rendered with MinervaNeue the JS is not included at all and the expressions are not rendered.

Prior to this I used 0.7.4 with 1.35.2 which worked fine.

@6cdh
Copy link

6cdh commented Jul 17, 2021

Same with this issue. My docker compose file as follows:

version: '3'
services:
  mediawiki:
    image: mediawiki:1.36
    container_name: mwiki
    restart: always
    ports:
      - 4095:80
    links:
      - database
    volumes:
      - ./LocalSettings.php:/var/www/html/LocalSettings.php
      - ./extensions/SimpleMathJax:/var/www/html/extensions/SimpleMathJax
      - ./extensions/MobileFrontend:/var/www/html/extensions/MobileFrontend
      - ./skins/MinervaNeue:/var/www/html/skins/MinervaNeue
  database:
    image: mariadb:10.6-focal
    container_name: db
    restart: always
    volumes:
      ...
    environment:
      ...

Minerva Neue is 20711d8.

When I access my wiki with ?debug=true, it outputs

OutputPage::transformFilePath: Failed to hash /var/www/html/extensions/SimpleMathJax/resources/resources/ext.SimpleMathJax.js

in console.

It works with other themes.

@Yuubari
Copy link
Author

Yuubari commented Jul 17, 2021

@6cdh, I am not getting this error with my installation but you could try getting rid of it by editing extension.json from

        "ResourceModules": {
                "ext.SimpleMathJax": {
                        "scripts": ["resources/ext.SimpleMathJax.js"]
                }
        },
        "ResourceFileModulePaths": {
                "localBasePath": "",
                "remoteExtPath": "SimpleMathJax/resources"
        },

to

        "ResourceModules": {
                "ext.SimpleMathJax": {
                        "scripts": ["ext.SimpleMathJax.js"]
                }
        },
        "ResourceFileModulePaths": {
                "localBasePath": "resources",
                "remoteExtPath": "SimpleMathJax/resources"
        },

, although I am not sure this is the correct solution.

@6cdh
Copy link

6cdh commented Jul 17, 2021

@Yuubari, thanks, the error disappears though math equations still don't get rendered.

After several hours of research, I found this workaround. Change

mw.hook( 'wikipage.categories' ).add( function ( $content ) {

to

mw.hook( 'wikipage.content' ).add( function ( $content ) {

@Yuubari
Copy link
Author

Yuubari commented Jul 17, 2021

This does not seem to work in my case (I am not using Docker, though); thank you for the pointer, though. I think I will try deploying a test MW instance to debug this properly.

@e792a8
Copy link

e792a8 commented Apr 1, 2022

This fork works with me. Have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants