Project:Support desk

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  3. To start a new thread, click "Start a new topic".

What is the best upgrade route from 1.16.1?

1
Mbiorn (talkcontribs)

Yes, I know this is a very old version but the person that created the site left the company and no one has had the time or skills to upgrade it. We are using WAMP for the site. I have tried upgrading all the way to 1.35.6 but am running into a lot of compatibility issues so wondered if there was a version I should upgrade to first. Thank you for any assistance you can give.

Reply to "What is the best upgrade route from 1.16.1?"

What do I need to install for multi-column support on a self-hosted MediaWiki instance?

3
BinUnterwegs (talkcontribs)

I need to enable some sort of multi-column layout on a self-hosted MediaWiki instance. There appear to be several modules around somewhere, but...


I am completely confused by the existing documentation, so please excuse me if the answer would have been out there somewhere.


- Template:Columns uses tables and seems to have no documentation,

- Template:Div col looks interesting but seems to not offer its sources anywhere,

- https://de.wikipedia.org/wiki/Vorlage:Column-multiple#Dokumentation.Info is just the same,

- https://de.wikipedia.org/wiki/Vorlage:Mehrspaltige_Liste is another example,

- https://en.wikipedia.org/wiki/Help:Columns uses templates colbegin and colend but does not document how to install them on a local setup,

- https://de.wikipedia.org/wiki/Hilfe:Textgestaltung/Mehrspaltigkeit_und_Listen#Responsives_Design only discusses many aspects of CSS and web design limitations, but offers nothing to install


So, seemingly simple question: What do I need to install, and how do I need to install it, so that my locally hosted MediaWiki instance offers some way of setting text in a multicolumn layout without using HTML tables?

Bawolff (talkcontribs)

You dont have to install anything just use css: https://developer.mozilla.org/en-US/docs/Web/CSS/columns


E.g. use <div style="columns: 2">put some text here</div>


Which makes:

put some text here. Here is some more text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse faucibus, massa vitae facilisis interdum, urna dolor vehicula magna, sit amet laoreet odio ex non tellus. Donec laoreet tempor erat rhoncus congue. Integer a vestibulum odio. Ut scelerisque, ipsum sed auctor finibus, massa neque maximus ante, aliquam sagittis ex enim non tellus. Pellentesque lectus turpis, malesuada vitae commodo sit amet, congue in diam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quam risus, interdum vitae mi ac, varius consectetur sem.
BinUnterwegs (talkcontribs)

Thanks for that suggestion, but the templates seem to bring some added functionality on the table -- wouldn't I lose, e.g., the ability to add breaks at arbitrary places?


I still would prefer to try them out, so if you could provide me with pointers on installation, I'd be very grateful.

Reply to "What do I need to install for multi-column support on a self-hosted MediaWiki instance?"

The lua binary is not executable - Internal Error (Scribunto)

1
Bradcoxy (talkcontribs)

Tried making a Module: page but it was refusing to let me.


[2b17c8bd0979eba08baf7dec] /index.php?title=Module:Graph&action=submit MWException: The lua binary (/var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

Backtrace:

from /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php(97)

#0 /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(99): Scribunto_LuaStandaloneInterpreter->__construct()

#1 /var/www/html/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(127): Scribunto_LuaStandaloneEngine->newInterpreter()

#2 /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(17): Scribunto_LuaEngine->load()

#3 /var/www/html/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(230): Scribunto_LuaStandaloneEngine->load()

#4 /var/www/html/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(38): Scribunto_LuaEngine->getInterpreter()

#5 /var/www/html/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(25): Scribunto_LuaModule->getInitChunk()

#6 /var/www/html/extensions/Scribunto/includes/common/ScribuntoEngineBase.php(194): Scribunto_LuaModule->validate()

#7 /var/www/html/extensions/Scribunto/includes/common/ScribuntoContent.php(35): ScribuntoEngineBase->validate()

#8 /var/www/html/extensions/Scribunto/includes/common/ScribuntoContent.php(107): ScribuntoContent->validate()

#9 /var/www/html/includes/content/AbstractContent.php(548): ScribuntoContent->fillParserOutput()

#10 /var/www/html/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()

#11 /var/www/html/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()

#12 /var/www/html/includes/Revision/RevisionRenderer.php(217): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()

#13 /var/www/html/includes/Revision/RevisionRenderer.php(154): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()

#14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()

#15 /var/www/html/includes/Revision/RenderedRevision.php(197): call_user_func()

#16 /var/www/html/includes/Storage/DerivedPageDataUpdater.php(1389): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#17 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()

#18 /var/www/html/includes/edit/PreparedEdit.php(104): call_user_func()

#19 /var/www/html/includes/edit/PreparedEdit.php(119): MediaWiki\Edit\PreparedEdit->getOutput()

#20 /var/www/html/includes/Storage/DerivedPageDataUpdater.php(1359): MediaWiki\Edit\PreparedEdit->__get()

#21 /var/www/html/includes/page/WikiPage.php(2086): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()

#22 /var/www/html/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(616): WikiPage->prepareContentForEdit()

#23 /var/www/html/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(835): SimpleCaptcha->shouldCheck()

#24 /var/www/html/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(871): SimpleCaptcha->doConfirmEdit()

#25 /var/www/html/extensions/ConfirmEdit/includes/ConfirmEditHooks.php(50): SimpleCaptcha->confirmEditMerged()

#26 /var/www/html/includes/HookContainer/HookContainer.php(338): ConfirmEditHooks::confirmEditMerged()

#27 /var/www/html/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()

#28 /var/www/html/includes/HookContainer/HookRunner.php(1485): MediaWiki\HookContainer\HookContainer->run()

#29 /var/www/html/includes/editpage/Constraint/EditFilterMergedContentHookConstraint.php(90): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent()

#30 /var/www/html/includes/editpage/Constraint/EditConstraintRunner.php(88): MediaWiki\EditPage\Constraint\EditFilterMergedContentHookConstraint->checkConstraint()

#31 /var/www/html/includes/EditPage.php(2086): MediaWiki\EditPage\Constraint\EditConstraintRunner->checkConstraints()

#32 /var/www/html/includes/EditPage.php(1687): EditPage->internalAttemptSave()

#33 /var/www/html/includes/EditPage.php(665): EditPage->attemptSave()

#34 /var/www/html/includes/actions/EditAction.php(71): EditPage->edit()

#35 /var/www/html/includes/actions/SubmitAction.php(38): EditAction->show()

#36 /var/www/html/includes/MediaWiki.php(543): SubmitAction->show()

#37 /var/www/html/includes/MediaWiki.php(320): MediaWiki->performAction()

#38 /var/www/html/includes/MediaWiki.php(930): MediaWiki->performRequest()

#39 /var/www/html/includes/MediaWiki.php(564): MediaWiki->main()

#40 /var/www/html/index.php(53): MediaWiki->run()

#41 /var/www/html/index.php(46): wfIndexMain()

#42 {main}

Reply to "The lua binary is not executable - Internal Error (Scribunto)"

No such service: DBLoadBalancerFactory

3
MikleWik (talkcontribs)

Hello!

I try upgrade my mediawiki 1.37.6 to 1.38.4 and I receive this error


Fatal error: Uncaught Wikimedia\Services\NoSuchServiceException: No such service: DBLoadBalancerFactory in /var/www/mediawiki1_38/vendor/wikimedia/services/src/ServiceContainer.php:468

Stack trace:

#0 /var/www/mediawiki1_38/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()

#1 /var/www/mediawiki1_38/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()

#2 /var/www/mediawiki1_38/includes/MediaWikiServices.php(928): MediaWiki\MediaWikiServices->getService()

#3 /var/www/mediawiki1_38/includes/exception/MWExceptionHandler.php(136): MediaWiki\MediaWikiServices->getDBLoadBalancerFactory()

#4 /var/www/mediawiki1_38/includes/exception/MWExceptionHandler.php(201): MWExceptionHandler::rollbackPrimaryChangesAndLog()

#5 /var/www/mediawiki1_38/includes/exception/MWExceptionHandler.php(170): MWExceptionHandler::handleException()

#6 [internal function]: MWExceptionHandler::handleUncaughtException()

#7 {main}

  thrown in /var/www/mediawiki1_38/vendor/wikimedia/services/src/ServiceContainer.php on line 468

Bawolff (talkcontribs)

Can you enable your mediawiki debug log - see How to debug.


What method did you use to upgrade? Are you sure all files are for the right version of mediawiki?

MikleWik (talkcontribs)

Debug is enabled, but I didn't get more info.

I use instructions from Manual:Upgrading/en , manual upgrade php update.php .

Skins and extensions updated.


I found the problem, my LocalSettings had require_once("$IP/includes/DefaultSettings.php"); I removed it and the update was successful.


P.S. Thanks @Bawolff

Reply to "No such service: DBLoadBalancerFactory"
BHPphil (talkcontribs)

I'm trying to download a table I've created in our wiki. It's not huge -- I could re-type the 20 or so rows, or paste cell contents, but I'd like to capture the current table, and take it offline. Is there a way other than print it and scrape it?

Version details:

Product Version
MediaWiki 1.35.7
PHP 7.4.30 (fpm-fcgi)
MariaDB 10.3.34-MariaDB-0+deb10u1-log
Jonathan3 (talkcontribs)

Do you mean you want the HTML version of a wikitext table?

BHPphil (talkcontribs)

That would be fine. We want to give it to something like Excel or Google Sheets, turn it into a spreadsheet.

Jonathan3 (talkcontribs)
BHPphil (talkcontribs)

OK, that looks promising. I tried to log into our wiki, now getting this. I'll start a new thread. I don't see any answers already logged on this error.


[2c54cfe70897692dd7533069] 2022-10-01 00:00:18: Fatal exception of type MWException

Jonathan3 (talkcontribs)

Yes start a new thread. You'll get asked to turn on debugging to get a better error :-)

Reply to "download a page?"

Perl issue when installing EasyTimeline

4
AlexGRFan97 (talkcontribs)

I have tried to install the EasyTimeline extension so that my Wiki, Gearknob, can support timelines. It has found Ploticus, since it no longer throws up that error, but after uploading a copy of Strawberry to the FTP, it is not recognising perl.exe as an application.


The error reads as thus: "Perl could not be executed: /perl/perl/bin/perl.exe is not an executable file. Make sure $wgTimelinePerlCommand is set correctly."


The executable's directory has been set as $wgTimelinePerlCommand = "$wgResourceBasePath/perl/perl/bin/perl.exe"; in LocalSettings.php and checking this in the FTP confirms it is the perl application. Yet it is not recognising it as such.

Bawolff (talkcontribs)

For starters, just to confirm, which operating system is your server running?

$wgTimelinePerlCommand = "$wgResourceBasePath/perl/perl/bin/perl.exe";

Is almost certainly wrong, as $wgResourceBasePath is a url value not a file system path (your error message also suggests that you are setting this in the wrong order and it might be uninitialized when you set wgTimelinePerlCommand). Without knowing where you put the perl binary on your server, i can't tell you what the correct value would be.

AlexGRFan97 (talkcontribs)

The server was provided by OVH, but attempts to access it with SSH in order to identify the OS, even after checking that my account had SSH privileges, I've been unable to access it after following their guide, and have received zero technical support despite multiple correspondences, a common problem many on the provider have noted. And there's no way for me to get a refund.


Foolish on my part to have not done more proper vetting before registering my domain with them, but I'll likely move to another provider next time around which is a little more receptive.


I can provide a file tree if it'll help in regards to the second part of your response, but at this point it seems more likely I'll just use Wikipedia as a proxy to generate the timelines I require in the editor and then upload the generated image to my Wiki.

Bawolff (talkcontribs)

The reason i asked for your OS, is it sounds like you uploaded a windows version of perl, however most web servers run linux, so that might be part of your issues. Often linux servers will have perl pre-installed, so you might want to check if that is the case (in such a case you could try $wgTimelinePerlCommand = "perl";)

As far as path goes, you just need to ensure that the path you use is whereever perl is on the system.

Reply to "Perl issue when installing EasyTimeline"

Editing Page Content via MySQL

3
67.247.107.18 (talkcontribs)

I'm attempting to edit a page's content by updating the underlying MySQL text table. By editing and committing this table, the new content flows through to the front end 'Edit' page but not the 'Read' page.


For example, I can append 'test str' within the MySQL text table. The appended 'test str' does not appear when refreshing a page, but DOES appear when going into edit the page on the front end. In other words, I can input changes via the SQL backend but have to commit them by hitting 'Save changes' on the front end.


I suspect I'm just missing a final step here in the underlying SQL. When 'Save changes' is executed on the front end in the normal process of updating an existing page, what SQL functionality or subprocess does this correspond to on the backend?

67.247.107.18 (talkcontribs)

I did not solve the issue but found an effecitve work around by first updating the old_test field in the text table within the SQL and then running $ php update.php. This doesn't answer the question above but works in my use case.

For posterity, I was not able to fund the solution for the above but I suspect it has to do with updating the content_sha1, rev_sha1 and rev_len values though the problem is likely much deeper than just correctly updating these three values.

Bawolff (talkcontribs)

Don't do this, you're missing like 15 steps and causing potential referential integrity issues. There is a high liklihood that your wiki will break in mysterious ways later down the line.


If you need to edit from the command line, use edit.php maintenance script, or the api. If you are doing this because you need some way to redact some content, use RevDel

Reply to "Editing Page Content via MySQL"

Coolest Tool Award 2022: Call for nominations

1
MediaWiki message delivery (talkcontribs)
Reply to "Coolest Tool Award 2022: Call for nominations"

modifier ma page et ajouter une photo !

2
Voilamarie (talkcontribs)

je suis marie talon  j'ai écrit le texte de ma page wikimonde en 2014 ou je ne sais plus au juste, mais j'aimerais bien pouvoir actualiser!!!!     je ne vois pas comment faire   de plus il manque une photo je veux bien la mettre mais je n'ai toujours pas trouvé le bouton sur lequel appuyer qui me demanderait de joindre la photo en question!!

Ammarpad (talkcontribs)
Reply to "modifier ma page et ajouter une photo !"

- In Front Of Main Page Title

2
JulianMalcolm08 (talkcontribs)

Hi,


When I load into my wiki from the url nedefenses.com it displays a dash in front of the page title. How do I remove this? I did not add it and it appeared after I hid the redirect message to make that page the main page.

Ammarpad (talkcontribs)
Reply to "- In Front Of Main Page Title"