Topic on Project:Support desk

Navbox error, hlist shown vertically as bullets and other errors

8
Robertinventor (talkcontribs)

Hi there, thanks for your help, we've installed Mediawiki and copied over many templates from Wikipedia. Much of it is working fine but there are a few remaining niggling errors. Wondered if you can help. Thanks!

I've got an example of the error here:

http://encyclopediaofbuddhism.org/index.php?title=User:Robertinventor/import_process /error_example

This is the same code on Wikipedia to show how it should be displayed: https://en.wikipedia.org/wiki/User:Robertinventor/test

I copied the Navbox template over from Wikipedia using Special:Export, with "Include Templates " checked and then imported into the new wiki with Special:Import.

Any idea how to fix it?

Parser extension flags missing

As you'll see from the error page it also is missing some Parser extension flags including "indicator" - do you know why that is and what we can do?

Instant commons images not shown

Finally we also have enabled InstantCommons but the image links are shown as red text. I'm guessing this is a permissions problem connecting to the network as noted there. Checked to see if we have SELinux installed as I saw that mentioned as a problem that could lead to this issue. But not sure where to go in CPanel or how else to check this

(As you will see from the error page, We also have a FlaggedRevs error but this is in a template we don't need at present so there is no urgency about this, seems likely to be a missing extension and it looks like it may be tricky to install so we can just forget it for now.)

MediaWiki 1.24.1
PHP 5.6.33
MySQL 5.6.36-82.1
Lua 5.1.5

http://encyclopediaofbuddhism.org/index.php?title=Special:Version

AhmadF.Cheema (talkcontribs)
Robertinventor (talkcontribs)

Oh okay great, thanks! That's a simple one then. We do plan to upgrade but it's not our top priority. If this is the only reason to upgrade, if we only need that tag - well it seems to have rather small repercussions for our wiki so far - small enough to work around them - so then we will probably leave it to a few months down the line.

So - I count that as the Parser extension flags missing question now answered :).

Anything about the other two anyone? They are more important for us and if either of those require the wiki to be upgraded we have to do it right away and will make it top priority.

AhmadF.Cheema (talkcontribs)

Continuing with an old version that has known security vulnerabilities is risky, an upgrade is recommended as soon as possible.

Also note that a lot of Wikipedia templates make use of code such as the "indicator" tag, therefore you will not be able to just import and use such templates. You will need to edit the fairly complicated templates and modules code in order to make those work for an out-of-date Wiki.

For horizontal lists in Navboxes, you will need to include the "hlist" code from w:MediaWiki:Common.css into your Wiki.

For SELinux, the most convenient route would be to contact your hosting provider's support.

This post was hidden by Ciencia Al Poder (history)
Robertinventor (talkcontribs)

Oh, okay, I will recommend that to my colleague. He was planning an upgrade last weekend but then decided not to do it as we had other priorities. I'll suggest he does it as soon as possible and then that will be fixed. With our wiki then I did a visual review of the pages with script errors and didn't turn up anything else so far - though there are errors in the templates they don't seem to affect the pages visually. This one is not actually used at present as we have only two contributors and plan to grow gradually and not let the general public create accounts - it's a closed wiki - so page protection is not a priority for us at present. It was just a display issue for the imported protected page which I fixed by removing the protection template. In future we can do the same for other imported protected pages. Still, fixing it would save the need of that extra step to remove protections from imported pages :).

With the MediaWiki:Commons.css, have I put this in the right place? http://encyclopediaofbuddhism.org/index.php?title=MediaWiki:Commons.css

It doesn't seem to have changed the visual display on the test page yet.

http://encyclopediaofbuddhism.org/index.php?title=User:Robertinventor/import_process/error_examples

Or in any of the pages that use the navbox, see e.g. end of this page http://encyclopediaofbuddhism.org/index.php?title=Pratyekabuddha

I tried Shift + reload in Firefox and purging the page and looking at the page in a different browser (Chrome) never used to view it before. It doesn't seem to have done anything yet.

Okay I will suggest he contacts the hosing provider's support on SELinux.

Thanks for your help.

AhmadF.Cheema (talkcontribs)

This could have something to do with Module errors due to old MediaWiki version – as some of the code that loads for the template on Wikipedia does not load for your Wiki – but I can't say for sure.

Robertinventor (talkcontribs)

Oh okay fine. My colleague is going to update to the latest MediaWiki version over the weekend maybe this or the next weekend as it is a weekend project for him. So we will see what it's like after that. So that is everything addressed for now, and will need to see what the result is after the wiki upgrade and after he hears back from his question about SELinux. Thanks for your help!

Reply to "Navbox error, hlist shown vertically as bullets and other errors"