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

how to add an email to my user?

1
Lina torress (talkcontribs)

hello, I made a profile in ecured and I don't know how to put an email, I wonder what I do if I lose my password, how would I recover it?

Reply to "how to add an email to my user?"

MediaWiki not creating thumbnails for JPEG images

3
NutchapolSal (talkcontribs)

For some reason, My MediaWiki install isn't creating thumbnails for jpegs. I've tried uploading 2 jpeg images and the File: pages show a blank placeholder image, reporting 0 x 0 as dimensions, and having an _error -1 metadata while able to show the file size. The files got uploaded correctly as they're there in images/x/xx/. Both images aren't big, they're around 1280x720.

I've tried uploading a png image, however it does work fine.

I then tried debug logging while reloading the File: pages, hoping to see some ImageMagick command failures as I'm using ImageMagick 7 and there's no mention of using "magick.exe" instead of "convert.exe" in any MediaWiki manual so far, however it turns out that I can't find any trace of thumbnails in the File: jpeg pages (tried searching for "thumbnail", "TransformationalImageHandler", etc. only found in the png page). No empty folders in thumbs either, it looks just like the whole thumbnailing part got skipped.

So I guess my question is how do I turn on/fix JPEG thumbnailing?

Installed Software:

Product Version
MediaWiki 1.38.1
PHP 8.1.7 (cgi-fcgi)
MariaDB 10.6.8-MariaDB
ICU 70.1
Lua 5.1.5
Pygments 2.11.2

Some screenshots from the File: pages

PS. tried uploading a small 10 x 10 jpeg, thumbnail still fails so it's definitely not some filesize/dimension limiter

Bawolff (talkcontribs)

There is a bug in mediawiki 1.38 where jpeg are broken if you have php's exif extension disabled (should be fixed next release of mediawiki). Try enabling it in your php.ini file and see if that helps.


Alternatively, try setting $wgShowEXIF=false;

NutchapolSal (talkcontribs)

Setting $wgShowEXIF = false; only removed the _error -1 metadata, and enabling exif didn't do anything (still shows the same blank placeholder)

I'm running on Windows Server 2012 R2 (with Media Foundation enabled and updates installed), could that have something to do with the issue?

Reply to "MediaWiki not creating thumbnails for JPEG images"

Erase automatically non-used pages and documents

4
Mirha513 (talkcontribs)

Hi all, is there a way to configure MediaWiki so that it erases "pages" that are marked with a specific attribute.


Say that I have pages that I want to remove added here: https://wiki.company.com/wiki/Categori:Erase


Is there a way of doing this automatically without needing to visit this page all the time to check if there are pages to erase?


Thanks in advance!

Ammarpad (talkcontribs)

There's no such feature. You can use deleteBatch.php script however to delete the pages in batch, but you'll still need to collect the page titles.

Mirha513 (talkcontribs)

Hi @Ammarpad, thanks for the tip.

If I rewrote the question: Is there anyway to first collect the pages in category Categori:Erase and than use the deletePatch.php script to remove those?


Maybe there is some other type of script for this purpose or is this something that needs to be developed on my own?

Ammarpad (talkcontribs)

You use the API for that, which means you have to do some work. See API:Categorymembers for examples.

Reply to "Erase automatically non-used pages and documents"

como agregar un correo a mi usuario?

1
Lina torress (talkcontribs)

hola, hice un perfil en ecured y no se como poner un correo, me pregunto que hago si pierdo mi contraseña, como la recuperaria.

Reply to "como agregar un correo a mi usuario?"

Enabling Visual Editor Citation Tool

6
Mccollough75 (talkcontribs)

I am trying to enable the Visual Editor Citation Tool following these instructions, without success. I spent hours trying to understand the procedure - a total waste of time.

I get stuck when I am asked to create a special configuration message on my wiki MediaWiki:Visualeditor-cite-tool-definition.json. How is one supposed to do it? I would really appreciate some plain, operational, step-by-step instructions for this specific purpose.

TheDJ (talkcontribs)
TheDJ (talkcontribs)

I understand btw that these steps are not simple for most people, but please understand that you are literally changing the interface of the website, generally not an operation that casual editors would do.

Mccollough75 (talkcontribs)

Thanks TheDJ.

I am not a casual editor. I am the one who set up the infrastructure and I have interface-administrator permissions. But I am an amateur, just trying to learn the basics to run a school-limited wiki. Anyway, I finally managed to create the file MediaWiki:Visualeditor-cite-tool-definition.json and the user interface has been properly updated. This page solved my problem.

108.45.66.5 (talkcontribs)

Hi,

I'm also trying to set up a mediawiki installation. Even reviewing the system messages page didn't answer it for me. I know what the contents of the file should be. But, do I create it in a text editor and upload it to my server? Or, is it a page that I create through the wiki interface itself. Thanks for your help!

105.105.173.95 (talkcontribs)

Find an extension to use VisualEditor's citation tool.

Reply to "Enabling Visual Editor Citation Tool"

Overwriting of images in wikimedia

3
Kotrblu2 (talkcontribs)

I have done a face detection on some wikimedia pictures and because it took some time I saved the result in a key-value format. The key is name of the picture on mediawiki and the value are all the faces that were found. Later I realized, that there might be a problem with using the result file as some of the pictures could have been overwritten. How likely is that someone uploads a picture with the same name as another picture which already exists on wikimedia?

For example:

this is the original

https://commons.wikimedia.org/wiki/File:Ayn_Rand_(1943_Talbot_portrait).jpg

and someone overwrite it with completely different picture or a crop of the original.

I remember reading somewhere, that pictures and other files are not deleted from wikimedia, even though they are no longer used. But I just cannot find it right now.

The only case I can think of is, that picture gets deleted, because of some permission issues and then gets replaced by a different picture, but with the same name. Can you think of different cases?

Bawolff (talkcontribs)

Its not common, but can happen - for example, if a pucture was very explicit and used for vandalism.

See c:COM:DR.


You can fetch an sha1 ientifier via api that is more stable.

Kotrblu2 (talkcontribs)

Could you point me to the sha1 identifier via API? I was looking for it for a while as I though that would ultimately solve my problem.

Reply to "Overwriting of images in wikimedia"

degree of difficulty in using SMW

1
2804:14C:BD85:93E8:F1EF:E193:F9ED:F6CC (talkcontribs)

I would like to know if users who do not know about ontologies (no knowledge, as they are from other areas) can collaborate and use SMW+

Reply to "degree of difficulty in using SMW"
Syed md ataullah (talkcontribs)

hi. i have an account and i know my user name but i forgotten my email id , how can i get that ?

Ammarpad (talkcontribs)

What website is this issue about?

Reply to "login issue"

Transfer all pages from one server to another

16
Mpb8877 (talkcontribs)

My current wiki is running Mediawiki 1.27 which is obviously extremely outdated. I also need to update the server to Ubuntu 20.04 from 18.04. When I update to 20.04 it completely breaks the wiki and it won't load any page. So I have decided to start a new server which will be our new wiki. I got the newest version of Mediawiki installed and running and I got my skin all loaded up. I have tried looking around the mediawiki wiki pages and I am not quite sure what is the best method to transfer my pages and extensions over from the old server to the new. Do I mysqldump the info? Running mysql on the new server with the new mediawiki version and then picking the dumped sql file as a source for the mediawiki database causes the wiki to stop working. No pages will load because of an error.

What would you all suggest for transferring all of this data?

Jonathan3 (talkcontribs)
Mpb8877 (talkcontribs)

I have seen this page but like I said when I rewrite the mysql database it breaks the wiki and I get nothing but a white screen with this error:

MediaWiki internal error.

Original exception: [96869a41066409ad467fac2c] /index.php/Main_Page 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 1054: Unknown column 'page_links_updated' in 'field list' (localhost)

Function: WikiPage::pageData

Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Main_Page' LIMIT 1

Backtrace:

from /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1606)

#0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException()

#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError()

#3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1810): Wikimedia\Rdbms\Database->query()

#4 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1911): Wikimedia\Rdbms\Database->select()

#5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->selectRow()

#6 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(337): Wikimedia\Rdbms\DBConnRef->__call()

#7 /var/www/html/mediawiki/includes/page/WikiPage.php(411): Wikimedia\Rdbms\DBConnRef->selectRow()

#8 /var/www/html/mediawiki/includes/page/WikiPage.php(433): WikiPage->pageData()

#9 /var/www/html/mediawiki/includes/page/WikiPage.php(473): WikiPage->pageDataFromTitle()

#10 /var/www/html/mediawiki/includes/page/WikiPage.php(594): WikiPage->loadPageData()

#11 /var/www/html/mediawiki/includes/page/WikiPage.php(668): WikiPage->exists()

#12 /var/www/html/mediawiki/includes/page/WikiPage.php(300): WikiPage->getContentModel()

#13 /var/www/html/mediawiki/includes/page/WikiPage.php(286): WikiPage->getContentHandler()

#14 /var/www/html/mediawiki/includes/page/Article.php(2039): WikiPage->getActionOverrides()

#15 /var/www/html/mediawiki/includes/actions/ActionFactory.php(262): Article->getActionOverrides()

#16 /var/www/html/mediawiki/includes/actions/ActionFactory.php(362): MediaWiki\Actions\ActionFactory->getAction()

#17 /var/www/html/mediawiki/includes/actions/Action.php(111): MediaWiki\Actions\ActionFactory->getActionName()

#18 /var/www/html/mediawiki/includes/MediaWiki.php(177): Action::getActionName()

#19 /var/www/html/mediawiki/includes/MediaWiki.php(872): MediaWiki->getAction()

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

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

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

#23 {main}

Exception caught inside exception handler: [96869a41066409ad467fac2c] /index.php/Main_Page 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 'mediawiki.revision_comment_temp' doesn't exist (localhost)

Function: MessageCache::loadFromDB(en)-small

Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `page` JOIN `revision` ON ((page_id = rev_page)) JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)

Backtrace:

from /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1606)

#0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException()

#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError()

#3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1810): Wikimedia\Rdbms\Database->query()

#4 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->select()

#5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(319): Wikimedia\Rdbms\DBConnRef->__call()

#6 /var/www/html/mediawiki/includes/cache/MessageCache.php(569): Wikimedia\Rdbms\DBConnRef->select()

#7 /var/www/html/mediawiki/includes/cache/MessageCache.php(447): MessageCache->loadFromDB()

#8 /var/www/html/mediawiki/includes/cache/MessageCache.php(370): MessageCache->loadFromDBWithLock()

#9 /var/www/html/mediawiki/includes/cache/MessageCache.php(1112): MessageCache->load()

#10 /var/www/html/mediawiki/includes/cache/MessageCache.php(1040): MessageCache->getMsgFromNamespace()

#11 /var/www/html/mediawiki/includes/cache/MessageCache.php(1011): MessageCache->getMessageForLang()

#12 /var/www/html/mediawiki/includes/cache/MessageCache.php(953): MessageCache->getMessageFromFallbackChain()

#13 /var/www/html/mediawiki/includes/language/Message.php(1491): MessageCache->get()

#14 /var/www/html/mediawiki/includes/language/Message.php(968): Message->fetchMessage()

#15 /var/www/html/mediawiki/includes/language/Message.php(1071): Message->format()

#16 /var/www/html/mediawiki/includes/OutputPage.php(1041): Message->text()

#17 /var/www/html/mediawiki/includes/OutputPage.php(1090): OutputPage->setHTMLTitle()

#18 /var/www/html/mediawiki/includes/OutputPage.php(2843): OutputPage->setPageTitle()

#19 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(148): OutputPage->prepareErrorPage()

#20 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(76): MWExceptionRenderer::reportHTML()

#21 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output()

#22 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report()

#23 /var/www/html/mediawiki/includes/MediaWiki.php(583): MWExceptionHandler::handleException()

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

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

#26 {main}



Seems like it might have something to do with reconfiguring schema. Not sure how to do that though

Also running update.php gives me this:

MediaWiki 1.38.0-rc.1 Updater

justinrainbow/json-schema: not installed, 5.2.11 required.

Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies


so I am not sure how to go about getting this justinrainbow schema? Can I get it off my old server?

Bawolff (talkcontribs)

justinrainbow is included with the mediawiki release. Are you sure you extracted the tar/zip file correctly and aren't mixing multiple versions of mediawiki.

The other error is caused by not running update.php succesfully.

Mpb8877 (talkcontribs)

There is no other version of mediawiki on the machine. I just used tar to extract it it is mentioned on the wiki pages for mediawiki. I run update.php and it gives me this error:

MediaWiki 1.38.0-rc.1 Updater

justinrainbow/json-schema: not installed, 5.2.11 required.

Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies


I know where to get this schema I just don't know where I would put it in the files of the server once I have it.

2.207.117.104 (talkcontribs)
Mpb8877 (talkcontribs)

Okay so I a little confused. The post linked by 2.207.11.104 says the json-schema is included. Is it not included or is it?

2.207.117.104 (talkcontribs)

json-schema was not included. This is fixed with mediawiki 1.38.1 release:


=== Changes since MediaWiki 1.38.0 ===

* (T309860) Add justinrainbow/json-schema to vendor.

* (T309933) Drop PHP 7.2 support in MediaWiki 1.38; require 7.3.19.

Mpb8877 (talkcontribs)

Okay so I just uninstalled Mediawiki 1.38.0 and installed mediawiki 1.38.1 and now when I import he databases I get the same error (which is expected) but when I run update.php now it gives me this error:


Can not upgrade from versions older than 1.29, please upgrade to that version or later first.


I don't know where it's getting that I am running an older version. Given my old wiki was on Mediawiki 1.27 could that be my issue?

Jonathan3 (talkcontribs)

I'm going to guess it's related to the information below from manual:Upgrading (though I don't know why it mentions 1.29). See also Version lifecycle. Maybe go for 1.35 first.

Since Version 1.36, MediaWiki only commits to supporting upgrades from two LTS releases ago (see phab:T259771). Upgrades from older versions of MediaWiki will have to be performed in multiple steps. This means that if you want to upgrade to 1.36 from 1.23 or earlier, you'll first have to upgrade your 1.23 wiki to 1.27 (or 1.35), and, from 1.27 (or 1.35), you'll be able to upgrade to 1.36.

Mpb8877 (talkcontribs)

Well see that's the thing. I am not upgrading. I am installing it for the first time. I have a machine with 1.27 but I am not upgrading that machine. I am simply installing Mediawiki for the first time on a new machine and it is acting like I am upgrading. Do I need to fresh install 1.36 and upgrade it to 1.38?

Jonathan3 (talkcontribs)

You're using the database from a version 1.27 wiki and files from version 1.38.

As I understand it, the update.php script usually updates the database (new tables etc).

So effectively you are upgrading.

Maybe it's something to do with version 1.38. It's only new so maybe has a bug. I don't know.

How about just moving to version 1.35 (LTS) and sticking with it for a while? Then move to 1.39 (LTS) when it's released in November.

Mpb8877 (talkcontribs)

Alright. Working with 1.35 seemed to work...sort of. Usually after I import my database of pages it freaks out and the wiki won't even load. Then I run update.php and something breaks. This time, the wiki freaked out on me but when I ran update.php it actually ran. After this the wiki loaded again and I was back on the main page. The problem is, none of my pages showed up. It's as if I didn't load the database at all. I did catch and error while update.php was running that was :


php: Error 1091: Can't DROP INDEX `log_user_text_type_time`; check that it exists (localhost)

Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/mediawiki/maintenance/archives/patch-drop-logging-user-fields.sql )

Query: ALTER TABLE `logging`

DROP INDEX user_time,

DROP INDEX log_user_type_time,

DROP INDEX log_user_text_type_time,

DROP INDEX log_user_text_time,

DROP COLUMN log_user,

DROP COLUMN log_user_text,

ALTER COLUMN log_actor DROP DEFAULT

#0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1684): Wikimedia\Rdbms\Database->getQueryException()

#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1659): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1228): Wikimedia\Rdbms\Database->reportQueryError()

#3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(5074): Wikimedia\Rdbms\Database->query()

#4 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(5009): Wikimedia\Rdbms\Database->sourceStream()

#5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()

#6 /var/www/html/mediawiki/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()

#7 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(771): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()

#8 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(930): DatabaseUpdater->applyPatch()

#9 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->dropField()

#10 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()

#11 /var/www/html/mediawiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()

#12 /var/www/html/mediawiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()

#13 /var/www/html/mediawiki/maintenance/update.php(253): require_once('/var/www/html/m...')

#14 {main}


Is this preventing my pages from loading?

178.254.128.122 (talkcontribs)

Hello,

I'm having a problem trying to install SSL certificate through Let's Encrypt. The wiki is crashing and I can't load it. What should I do to install SSL certificate successfully on my wiki? Does anyone have a guide or website that might help?

Jonathan3 (talkcontribs)
37.171.92.180 (talkcontribs)

Mpb8877: I had exactly the same dependency issue as you described (justinrainbow), even on a freshly installed mediawiki 1.38 setup, and managed to fix it as follows:

$ cd /var/www/w/vendor/

$ composer require justinrainbow/json-schema:5.2.11

Reply to "Transfer all pages from one server to another"
Pmathewd (talkcontribs)

Hi. I am currently using MW 1.35.6 with a customized skin (since MW 1.20)

Unfortunately my skin is not yet compatible for the new update to 1.37 and above. Is there a way to fix it?

105.105.32.74 (talkcontribs)

Which skin are you using?

Pmathewd (talkcontribs)

it is a custom made one. The filter does not let me add the URL to my wiki here. However i just found out that it is based on the skin MonoBook

197.202.41.196 (talkcontribs)

I thnk its author no longer maintains your skin.

Bawolff (talkcontribs)

If its your custom skin, you will have to update it yourself to be compatible.

You can post urls inside nowiki tags

Pmathewd (talkcontribs)

Thx for your reply. I managed to fix the custom skin

Reply to "Customized skin"