Giter Site home page Giter Site logo

Comments (5)

Yuubari avatar Yuubari commented on May 27, 2024 1

@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.

from simplemathjax.

6cdh avatar 6cdh commented on May 27, 2024 1

@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 ) {

from simplemathjax.

6cdh avatar 6cdh commented on May 27, 2024

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.

from simplemathjax.

Yuubari avatar Yuubari commented on May 27, 2024

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.

from simplemathjax.

e792a8 avatar e792a8 commented on May 27, 2024

This fork works with me. Have a try.

from simplemathjax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.