Jump to content

Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(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 version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. 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.
  4. To start a new thread, click the box with the text "Start a new topic".

Attempting to get citations going

5
2001:9E8:9379:5500:EDEB:DAEA:294:EE9D (talkcontribs)

Hey y'all,

I'm struggling to get the wikipedia citation system going, i've installed all the extensions and dependencies (Scribuntu and TemplateStyles) and imported the "Category:Citation Style 1 templates" category directly from wikipedia (yes, I do need all its functionality).

Still, Lua is throwing this error every time a formatted citation is attempted to be printed out:

  • Lua error in Module:Citation/CS1/Configuration at line 2083: attempt to index field '?' (a nil value).

you can also see the traceback an the page directly.

(e.g., http://psychopragmatics.com/index.php/Template:Cite_journal)

Is anyone experienced with citations and lua and knows how to fix this?

Thanks and love!

Jonathan3 (talkcontribs)
TheDJ (talkcontribs)

Which probably means you don't have a data namespace setup to import Data:CS1/Identifier_limits.tab into. That wouldn't be strange, as data namespace is a pretty rare configuration for most installs.

2A00:20:300E:CEE4:A893:CBA4:105E:25B9 (talkcontribs)

I've imported the Configuration:

wikipedia.org/wiki/Module%3ACitation%2FCS1%2FConfiguration

(from wikipedia, not from commons.wikipedia).

I also created the namespace, but I have to idea what to do next.

Importing Identifier_limits.tab doesn't make much sense to me, (although I tried to do so: http://psychopragmatics.com/index.php/Data:CS1/Identifier_limits.tab) since it is not even on the main wikipedia, where I exported all the other dependencies from.

2A00:20:300E:CEE4:308E:53EF:14E6:546A (talkcontribs)

I've missed a JSON dependency (extensions as well as config). Still doesn't work after installing it, though.

Reply to "Attempting to get citations going"

Cannot load editor or preference tabs after update to 1.42.3

4
Summary last edited by MurdoMaclachlan 12:29, 29 November 2024 7 hours ago

The editor and the tabs on the preferences page would not load due to errors caused by an outdated version of the Popups extension. Updating this extension resolved the issue.

MurdoMaclachlan (talkcontribs)

I updated from 1.41.3 to 1.42.3 today, with no errors reported by MediaWiki following the update. Viewing the wiki is working fine as far as I can tell, but I'm unable to load either the Visual Editor or the Wikitext Editor; if I go to my preferences page, I also can't switch tab (it loads "User profile", but clicking on any of the others has no effect).

When going into the browser console, I see this message:

The resource from “http://10.0.0.19/wiki/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&safemode=1&skin=vector” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

as well as a 500 response to the GET request for that URL.

It appears at least once on all pages; on the preferences page or on edit pages it appears twice. It appears regardless of what skin I have enabled (since preferences won't let me load the "Appearance" tab, I have to change by disabling Vector and switching the default skin in LocalSettings.php), and I have updated my skins to make sure they are the most recent available version.

When I go to that resource URL, I WAS also getting this error:

[8214b8572551d262133baaf6] /wiki/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&safemode=1&skin=vector Error: Class "ResourceLoaderSkinModule" not found Backtrace: from /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(417)

#0 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(453): MediaWiki\ResourceLoader\ResourceLoader->getModule()
#1 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/StartUpModule.php(170): MediaWiki\ResourceLoader\ResourceLoader->preloadModuleInfo()
#2 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/StartUpModule.php(425): MediaWiki\ResourceLoader\StartUpModule->getModuleRegistrations()
#3 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/Module.php(839): MediaWiki\ResourceLoader\StartUpModule->getScript()
#4 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/Module.php(808): MediaWiki\ResourceLoader\Module->buildContent()
#5 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/Module.php(951): MediaWiki\ResourceLoader\Module->getModuleContent()
#6 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(686): MediaWiki\ResourceLoader\Module->getVersionHash()
#7 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(786): MediaWiki\ResourceLoader\ResourceLoader->getCombinedVersion()
#8 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoaderEntryPoint.php(53): MediaWiki\ResourceLoader\ResourceLoader->respond()
#9 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/MediaWikiEntryPoint.php(199): MediaWiki\ResourceLoader\ResourceLoaderEntryPoint->execute()
#10 /home/murdo/.murdomaclachlan/wiki/mediawiki/load.php(42): MediaWiki\MediaWikiEntryPoint->run()
#11 {main}

From my understanding ResourceLoaderSkinModule was removed in an earlier version, so I have no idea what was trying to access it.

However, I'm now getting the same error but for a "ResourceLoaderOOUIIconPackModule" class instead. When I go looking for this, it seems to be a file that should be under "includes/ResourceLoader/", but this file simply doesn't exist on my system. I even re-downloaded the 1.42.3 files to double check and it's not there. As far as I can tell it too has been removed.

MurdoMaclachlan (talkcontribs)

Update: I can get into the Wikitext editor if I click the "reload the page" link on it. Hadn't tried that yet because I thought it worked the same as manually reloading the page, but evidently not. I still cannot access the Visual Editor or the other preferences tabs.

Bawolff (talkcontribs)

Do you have any extensions from an earlier version? Try disabling all extensions and reenable them one-by-one to see which is at fault.

MurdoMaclachlan (talkcontribs)

Yep, looks like it was an outdated version of the Popups extension causing it. Thank you!

I installed Extension:CentralAuth, facing error

1
Centella Gold (talkcontribs)

Error to logging in.

MediaWiki internal error.

Original exception: [39270e243b909456d43524e7] 2024-11-29 09:42:13: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

Reply to "I installed Extension:CentralAuth, facing error"
Summary by ToadetteEdit

Appears to not be related to MediaWiki.

47.200.112.5 (talkcontribs)

So, yall know the social, right? The one on the homepage, it's not working, it says I have to use my email, but I already entered my information and got the email from CON, but, it's still saying I can't use it, even thought put in my info! It's so confusing, so if you can help me, please do so.

Osnard (talkcontribs)

Welcome to the MediaWiki Support Desk!

Here you can ask questions about the MediaWiki software and its extensions. Your request seems unrelated. Can you please be more specific?

Extension:OpenBadges's Special:BadgeView not working.

8
Tang Empire (talkcontribs)

I ran the update script but it still says database error...

/index.php/Special:BadgeView Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

Error 1146: Table 'u585674696_3tRFj.bqyo_openbadges_assertion' doesn't exist

Function: MediaWiki\Pager\IndexPager::buildQueryInfo (BadgesPager)

Query: SELECT obl_name,obl_badge_image,assertion.obl_badge_id AS `badge_id`,obl_badge_evidence FROM `bqyo_openbadges_assertion` `assertion`,`bqyo_openbadges_class` `class` WHERE obl_receiver = 1 ORDER BY obl_name LIMIT 51

Backtrace:

from /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1236)

#0 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()

#1 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

#2 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()

#3 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()

#4 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->select()

#5 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/DBConnRef.php(351): Wikimedia\Rdbms\DBConnRef->__call()

#6 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(467): Wikimedia\Rdbms\DBConnRef->select()

#7 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(289): MediaWiki\Pager\IndexPager->reallyDoQuery()

#8 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(839): MediaWiki\Pager\IndexPager->doQuery()

#9 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/TablePager.php(308): MediaWiki\Pager\IndexPager->isNavigationBarShown()

#10 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/extensions/OpenBadges/includes/specials/SpecialBadgeView.php(26): MediaWiki\Pager\TablePager->getNavigationBar()

#11 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/specialpage/SpecialPage.php(728): SpecialBadgeView->execute()

#12 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run()

#13 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#14 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(960): MediaWiki->performRequest()

#15 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(613): MediaWiki->main()

#16 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/index.php(50): MediaWiki->run()

#17 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/index.php(46): wfIndexMain()

#18 {main}

I hope I didn't just dox myself, but please help, I've been trying to figure this out for so long and I don't know what to do...

TheDJ (talkcontribs)

You likely installed Extension:OpenBadges. But after installing this, you need to run the maintenance update.php script, to create the database tables this extension needs, and likely this was not done (or it failed for some reason). What does the update script end with ? Can you find a reference to "openbadges" in its output ? The extension also hasn't been updated by it's author for a while, so possibly it simply lost compatibility with the current version of MediaWiki.

Tang Empire (talkcontribs)

I think it might have just lost compatibility, because I ran the update script 3 times and still it doesn’t work. But I will try again.

Edit: I tried it again and it still didn't work. I found some refernces to OpenBadges in the script output, here it is.


...openbadges_class table already exists.

Creating openbadges_assertion table...Wikimedia\Rdbms\DBQueryError from line 123 6 of /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/l ibs/rdbms/database/Database.php: Error 1005: Can't create table `u585674696_3tRF j`.`bqyo_openbadges_assertion` (errno: 150 "Foreign key constraint is incorrectl y formed")

Function: Wikimedia\Rdbms\Database::sourceFile( /home/u585674696/domains/heterod ontosaurus-balls.com/public_html/extensions/OpenBadges/includes/../sql/OpenBadge sAssertion.sql )

Query: CREATE TABLE `bqyo_openbadges_assertion` (

obl_id int NOT NULL PRIMARY KEY auto_increment,

obl_timestamp binary(14) NOT NULL,

obl_receiver int(10) unsigned NOT NULL REFERENCES user(user_id),

obl_badge_id int NOT NULL REFERENCES openbadges_class(obl_badge_id),

obl_badge_evidence varchar(255),

obl_expiration binary(14)

) /*wgDBTableOptions*/

TheDJ (talkcontribs)

Right. So this is from OpenBadges/sql/OpenBadgesAssertion.sql. It says that the reference to the user table or the reference to the open badges class table is incorrect

I suspect that in that file, user() and openbadges_class() need to be prefixed with /*_*/ This ensures that MediaWiki will apply the table prefix when doing that table lookup. So I would suggest modifying that file like that, rerun the update.php and then please report back if that works, and then I'll modify that extension with that change. The extension has not seen much support in the last 5 years it seems, so even if the DB update works after this, it might be that other parts are still broken.

Tang Empire (talkcontribs)

alright, I ran the update script again and this time with modifications, and it said

...openbadges_class table already exists.

Creating openbadges_assertion table...Wikimedia\Rdbms\DBQueryError from line 1236 of /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '

obl_badge_id int NOT NULL REFERENCES /*openbadges_class(obl_badge_id)*/,

o...' at line 4

Function: Wikimedia\Rdbms\Database::sourceFile( /home/u585674696/domains/heterodontosaurus-balls.com/public_html/extensions/OpenBadges/includes/../sql/OpenBadgesAssertion.sql )

Query: CREATE TABLE `bqyo_openbadges_assertion` (

obl_id int NOT NULL PRIMARY KEY auto_increment,

obl_timestamp binary(14) NOT NULL,

obl_receiver int(10) unsigned NOT NULL REFERENCES /*user(user_id)*/,

obl_badge_id int NOT NULL REFERENCES /*openbadges_class(obl_badge_id)*/,

obl_badge_evidence varchar(255),

obl_expiration binary(14)

) /*wgDBTableOptions*/

TheDJ (talkcontribs)

I said prefix, you wrapped it.

NOT NULL REFERENCES /*_*/user(user_id),

NOT NULL REFERENCES /*_*/openbadges_class(obl_badge_id),

Tang Empire (talkcontribs)

My apologies. Thank you so much, the Special:BadgeView page now works

Tang Empire (talkcontribs)

But there is another problem, it seems like the Special:BadgeView page displays all badges no matter if issued to you or not. Maybe it’s because I created these badges before the extension got fixed?

Reply to "Extension:OpenBadges's Special:BadgeView not working."

Automatic search for red links

9
Anatole-berthe (talkcontribs)

Hello ! Anybody can say me if there are a way for an automatic search for red links ? It's possible to create a function for this if it doesn't exist ?


When I see an article with red links. If there are articles about the topic available in another language than English.

I create an interlanguage link.


I'm unable to translate into English because I'm not a native speaker of this language and my translations could be too literal.

I can translate from English into French but not the reverse.


Therefore , if such function exist. It can help me and others for my tasks.

TheDJ (talkcontribs)
Osnard (talkcontribs)
Anatole-berthe (talkcontribs)

Thanks ! The special page is a good idea but it contain only the top 500.

There are not any other possibility ?

Osnard (talkcontribs)

It shows all. If there are more than 500 you need to turn the page.

Anatole-berthe (talkcontribs)

I found the function to turn the page. We can only advance per 500 if I'm right.

Ex : I can go to 500-1000 and 1000-1500 but not 500-1500 or 1000-2000.

Anatole-berthe (talkcontribs)

I turned the pages. I can go max to the 5000th result and not beyond.

TheDJ (talkcontribs)

If you want it in a different form, you need to write a tool against the replica databases on toolforge and optimize performance to suit your specific usecase.

Anatole-berthe (talkcontribs)

I'm far to be a good developper. I know nearly nothing about programming.

Which programming language can I use for that ?

Reply to "Automatic search for red links"
Agatnor (talkcontribs)
Bawolff (talkcontribs)
Agatnor (talkcontribs)

Thanks for the answer! I have installed the extension, unfortunately it has not solved my problem. What I am missing is the author and license information in the media viewer, as it can be found in “normal” images (bottom left). I honestly don't know how to create something like this correctly, so I would be very happy to receive an answer!

Reply to "Specify licenses"
Summary by Tactica

Not related to MW.

2001:8003:E4B9:8400:15F0:D710:905:E999 (talkcontribs)

Hi,

I cannot find the colour wheel anywhere on Inkscape. I have seen on the help panel that it should be below the "fill" section, but nothing there. I don't have any way to change the colours of my design other than by picking the pre selected colour palettes on the bottom of the screen.

ToadetteEdit (talkcontribs)

Hi there! This is the support desk for issues relating to the MediaWiki software. I think you are in the wrong place.

How to change font size throughout wiki

13
Jonathan3 (talkcontribs)

When I change the font used on my wiki to Times New Roman, it seems tiny in comparison with Arial... what is the best way to increase the font size slightly throughout the whole wiki? Thanks.

Malyacko (talkcontribs)
Jonathan3 (talkcontribs)

Thanks. I'd read that and it didn't help me, either with Vector or the main skin I use, Foreground. I'll try again though.

Jonathan3 (talkcontribs)
Jonathan3 (talkcontribs)

I compromised and used Georgia in the end. It has serifs, which I want, but is about the same size as Arial so I won't need to adjust any CSS.

Bawolff (talkcontribs)
Jonathan3 (talkcontribs)

Thanks. I'd tried that but wasn't able easily to increase the font consistently across the website. I probably could have done with stacks of lines of CSS but it didn't seem worth it.

The odd things was that when I just changed the font everything worked out at 16px (as before with Arial), but when I compared it with a plain 1990s website with Times New Roman also at 16px the text on the wiki was somehow smaller. To make it a bit bigger I was having to use font-size em/rem values to increase the px, but it was hard to change it consistently across the different elements of the website.

Hachdé (talkcontribs)

can i use different fonts?

Jonathan3 (talkcontribs)

"can i use different fonts?" Yes, you could just use font-family for the relevant things, in MediaWiki:Common.css.

Hachdé (talkcontribs)

Ok, thanks.

Karlpajak (talkcontribs)

This may belong elsewhere, however.

I'm tying to create a Sidebar and want to change the size of the font in the sidebar. How do you specify the size of the font for the words you're typing.

eg: '| Flag = Cago [ [ File:Test_Image.png|50px ] ]
Golden Griffon of Law in White Circle<break holding two lightning bolts on<break a red background

So the words Golden Griffon... I'd like them in font size say 8 so they are small. How do I do that?

Thanks,

Karl

Bawolff (talkcontribs)

Its better to start a new thread than tack on to an existing one,but:

<span style="font-size: 8px">Golden Griffon</span>

Tactica (talkcontribs)

On a related matter, for some time now (maybe years, I don't know) all WMF wikis have a "glasses" icon at the top right, left of the alerts icon. This opens a popup menu with some nice options, mostly (for me at least) the color related ones. How is this enabled? I can't find any obvious extension in Special:Version that implements this.

Reply to "How to change font size throughout wiki"

Access to specific pages for specific users.

3
PeterEasthope (talkcontribs)

Given the wiki at https://easthope.ca/FOTGISdirectors .

MediaWiki 1.41.4 PHP 7.4.33 (litespeed) ICU 63.1 MariaDB 10.5.25-MariaDB-cll-lve-log

Some pages have sensitive data. Refer to these as "financial" pages.

Some users should have edit access to financial pages. Edit includes read as a special case.

All other users should not be able to read financial pages. Reading is a precondition of editing. Therefore "not read" implies "not edit".

Can this be arranged? If so, how?

Thanks, ... Peter E.

Bawolff (talkcontribs)

I would reccomend using 2 separate wikis for that usecase. Mediawiki does not work well with complex read access control.

PeterEasthope (talkcontribs)

Thanks Bawolff. I'll create a "financial" wiki. ... P.

Reply to "Access to specific pages for specific users."