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".
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?

Reply to "Chat"

Extension:OpenBadges's Special:BadgeView not working.

6
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),

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

Automatic search for red links

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

Reply to "Automatic search for red links"
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."
Mahabarata73 (talkcontribs)

This page begins (second line) with a text in English not between <translate> tags so we cannnot translate it in other languages.

Could someone with the appropriate rights (the English page is protected) fixes it ?

Reply to "Help:Redirects"
Mahabarata73 (talkcontribs)

In this page, in the section Help:Tables#Note_about_large_tables_(noresize_class), the title is between <translate> tags but not the text after this title which means we cannot translate it.

Some items of the table (after this text) could also be translated if someone adds the same tags.

Could someone with the appropriate rights (the page is protected) fixes that ?

Reply to "Help:Tables"
Mahabarata73 (talkcontribs)

A few days ago I wanted to create a French page for the page . So I created the page .

But these 2 pages are not linked : on the English page, there is no link to the French page.

Could someone fixes that ?

And could someone explains to me how to create a page in another language when the link "Translate this page" is not visible at the top of a page ?

Clump (talkcontribs)

Please do not create translated versions manually, they indeed will not be properly linked. If the Translate this page link is not there then someone with translationadmin rights first needs to mark it for translation. Help:Extension:Translate/Page translation administration describes the underlying workflow.

Mahabarata73 (talkcontribs)

Sorry : if you look at this Extension:StructuredDiscussions/fr, you will see, in the categories, many red links. I only followed one of them and created the page then, when looking to the English page, saw the missing link with the french page. I was thinking that an automate will fix that. Sorry for my mistake.

How to fix that ? The link you gave me is very interesting but it is for administrators and I'm not one. Where could I find a translate administrator to ask him to fix my mistake ? I wrote several other topics on this support desk about translation issues, and none have an answer so I suspect it is not the good place.

Reply to "link 2 pages"
Mahabarata73 (talkcontribs)

There is a problem with this page and I don't have enough experience to solve it.

The text begins with "The Popups (known in Special:Version as Previews)".

But if you follow the link to the Special:Version page, you will see that there is no "Previews" on this page (nor "Popups" by the way).

I thought of 2 solutions:

  • remove the wrong text on the Extension:Popups page
  • add, in the right table (I don't know which one) of the Special:Version page, the information about this (important) extension.

I think that the best solution is the second one but I don't know who can do it.

If you think solution 1 is better, I can make the change if needed.

Clump (talkcontribs)

Correct, the link is to this wiki's own Special:Version page, and neither is installed here, but it should really be referring to a description of the Special:Version page on the wiki in which that extension is installed. Given the context, perhaps a better link would be to Manual:Developing extensions#Registering features with MediaWiki.

Mahabarata73 (talkcontribs)

Yes, that would be better. But maybe too technical, I think the link should go to a more general help page, for example this one Help:Special_pages#General_information or, on the same page with another anchor, this one Help:Special_pages#V

But is it a true information ? On Wikipédia, l'encyclopédie libre, Popups/Previews extension is installed (as on all wikipedia websites). But there is no Previews/Popups extension listed on Version — Wikipédia

Do you know of a wiki where this extension is installed and the Special:Version page of that wiki displays it ?

Clump (talkcontribs)

It is installed on the french wikipedia---search for "Previews".

Reply to "Extension:Popups"