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

Using Phonos with Top Icon

3
Theklan (talkcontribs)

Hello! I post this here, because at Help_talk:Extension:Phonos has been suggested to use this page. I am trying to understand the possibilities to use Phonos in some creative ways. At en:Wikipedia:Spoken_articles we have a list of articles with spoken version (see, for example, en:2 Broadway. The project adds a Top Icon loudspeaker, which goes to the file itself when clicked, instead of being in the page (which may be better for people who wants to use the spoken version without leaving the page). I wonder if there would be a way to combine both things, and have the audio played directly when clicked the top icon. I could get the Phonos loudspeaker up there, but I don't know if there is a better option (like using the custom loudspeaker). Thanks!

Samwilson (talkcontribs)

It should be possible with e.g. <indicator name="spoken"><phonos file="Wikipedia_Audio_-_2 Broadway.wav"></phonos></indicator> but it seems not to work because the click handler is only looking within #mw-content-text and the indicators area is outside that. We should probably also add the wikipage.indicators hook. I opened task T369262.

Theklan (talkcontribs)

Thanks!

Reply to "Using Phonos with Top Icon"

Upgrading MediaWiki from 1.27.1 to the Latest Version

6
Georgesanjeev (talkcontribs)

Hello, community!

I'm currently using MediaWiki version 1.27.1 and looking to upgrade to the latest version available. Could someone guide me through the steps involved in this process? Here are a few specific questions I have:

  1. Upgrade Steps: What are the recommended steps to upgrade from MediaWiki 1.27.1 to the latest stable version? I've tried the upgrade but it looks like there's been some MAJOR schema changes and it errors out asking for missing tables. Ive also tried going to the v1.28.0 but its giving me same error. Table 'user' not found. Are there any particular considerations or prerequisites I should be aware of? My next idea is to setup 1.42.1 with the default db and try and see if a schema compare will let me allow a data migration. but again
  2. Database Migration: Currently, my MediaWiki instance is using SQL Server and I've setup a MariaDB using the sql workbench migration feature. Few warnings about the Auto Increment being dropped but nothing major. I'm particularly worried about the schema changes between the two versions

Any help or guidance on these topics would be greatly appreciated! Thank you in advance.

Fokebox (talkcontribs)

Upgrade Path:

  • Direct upgrade to 1.42.1 from MediaWiki 1.33 or earlier versions is not supported
  • Upgrade to MediaWiki 1.35 before transitioning to MediaWiki 1.42 to prevent data loss
  • MediaWiki 1.35 is the oldest version compatible with a direct upgrade to MediaWiki 1.42
TheDJ (talkcontribs)
Georgesanjeev (talkcontribs)

The problem I have here is that, the db level changes between 1.27 and 1.35.

My new db is MYSQL and current one is SQL Server. I tried to setup 1.35 on the new server and import the data but apparently there are quite a few changes schema wise for the data migration to go through .


I aslo tried to setup 1.27.1 on a new server and run through the mediawiki installer but it always errors out with "Table 'mediawiki.cur' doesn't exist" which is strange considering from what Ive read its been "The cur table was used in older versions of MediaWiki wikis to store the current revision of a page"


So im stuck as to where I go from here

TheDJ (talkcontribs)

Yes, moving from a completely different database system, requires quite a bit of knowledge about SQL to pull off and will be a lot of manual labor.

You can find a full documentation about the history of all (mysql) tables via Manual:Database layout. You will probably want to peruse through all that in order to make it work. I would definitely setup a mysql 1.27 with a mysql setup first to do the SQL to MySQL data migration, before getting started on the actual data migration.

There is also the history of the entire mssql schema at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/REL1_33/maintenance/mssql/

However note that already in 1.33 mssql had major broken parts and was lagging behind the other schema changes, so I would not use it to upgrade to the 1.33 schema. It and it's history may however help in figuring out the history of the schema and the differences with the mysql variant.

Georgesanjeev (talkcontribs)

So here is the process I find might be the best way to do it.

  1. Backup current mediawiki db from sql server
  2. Using MySql workbench migrate to new MySQL DB (Apparently workbench dropped all auto increments for the primary fields)
  3. Setup 1.35 on new server. Recognsies tables in db and runs upgrader. And the below error.

Error -

Making bot_passwords.bp_user into an unsigned int ...

An error occurred:

Cannot change column 'bp_user': used in a foreign key constraint 'FK__bot_passw__bp_us__2C3393D0'

Do i go about removing all the FKs it reports as errors and then readd them later on?

Reply to "Upgrading MediaWiki from 1.27.1 to the Latest Version"

Mobile version doesn't update

2
ConstanceSL (talkcontribs)

Hi all,

I made a wiki with Miraheze for an event I'm organising. I was doing the last updates last night, when I saw that the mobile version wouldn't update anymore. I've tried to clear the cache, it doesn't help. So this morning I went to check the logs and hid all the small changes to the settings I had done. It just made things worst, as now the titles don't expend anymore and the whole wiki is basically useless on mobile. The weird thing is that from some pages, it displays the changes I made to the side bar since, and if I click on links to pages I had not made yesterday, it sometimes bring me to the page I made this morning, and sometimes it doesn't.

I've tried to just disable the mobile front end, as it works well on my phone when I request the desktop version. But it didn't work, it still shows me the broken mobile version by default.

I'm new to media wiki, and I have no idea how most of this works. But I'm pretty desperate. I've spent weeks preparing the wiki and was suppose to release it today to the participants. Any idea how to fix this?


Thanks!

Bawolff (talkcontribs)

Possibly this is a bug on the miraheze side where mobile is not recieving CDN purges. Please ask at miraheze support.

Reply to "Mobile version doesn't update"

I just installed MediaWiki 1.42, and I get fatal error connecting to DB

3
Sir Berzerk (talkcontribs)

Original exception: [ac5e92b0d2f6ecce1f33f1a8] /index.php Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'wiki_user'@'192.168.0.5' (using password: YES) (192.168.0.20)

It says the user is denied, but I used the same user that I installed with, and the installer had no trouble installing the tables.

Can someone explain why it can't connect to the DB? DB is remote, in the same network.

Sir Berzerk (talkcontribs)

I'm using mariadb also.

Sir Berzerk (talkcontribs)

Found out the cause, I needed to restart my php-fpm.

Increase limit on list of articles (per Category page)

2
Abhidevananda (talkcontribs)

On my project, I have a category that currently includes 3262 articles. When I go to that Category page, I can only view 200 articles at a time. I would like to see all 3262 articles listed on a single page (without having to navigate from page to page, 200 results at a time). I need to allow for an output of 6000 results on any Category page. How can I make that possible? For reference, please see https://sarkarverse.org/wiki/Category:Songs_of_Prabhat_Samgiita

Thanks again.

Leaderboard (talkcontribs)
Reply to "Increase limit on list of articles (per Category page)"

502 Bad Gateway when accessing a particular page with any account logged in

4
Subilan1234 (talkcontribs)

This is weird.

I'm currently using MediaWiki 1.40.1+PHP 7.4.33+nginx 1.18.0. There's (so far I found) only one page on my wiki that behaves weird. If I access that page with my administrator account logged in, the page returns 502. The same happens for non-admin accounts.

The output in /var/log/nginx/access.log after I tried to access the page on my computer is as follows:

[01/Jul/2024:14:37:49 +0800] "GET <XXX> HTTP/1.1" 502 559 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"

[01/Jul/2024:14:37:52 +0800] "GET /load.php?modules=skins.citizen.serviceWorker&only=scripts&raw=true&skin=citizen&version=akqj0 HTTP/1.1" 304 0 "/load.php?modules=skins.citizen.serviceWorker&only=scripts&raw=true&skin=citizen&version=akqj0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"

and there's no output about this wiki site in error.log.

If I log out of my account, the page is shown as usual with no data loss. The page content retrieved through curl in command line is also normal.

I searched through the Internet but found no clues. The sole related solution is mentioned in https://stackoverflow.com/questions/67062607/nginx-returns-502-to-browsers-but-works-fine-with-curl and linked to a media wiki support desk topic which suggests setting $wgDisableOutputCompression to true. Unfortunately, no luck.


This problem is so weird to me. So I come here to seek for help.

Bawolff (talkcontribs)

502 usually means a timeout. You might have more info on nginx error log (instead of php error log)

Sometimes different users might have different cachability, which might mean that logged out hits cache but admin does not and hits timeout.

Is the contents of that page particularly complex.

Subilan1234 (talkcontribs)

Yes, the content is long and complex to some extent. I'll check if there are other error logs present. Thanks.

Subilan1234 (talkcontribs)

Is this related to the use of Cloudflare? The error page suggests it's a host error, "The web server reported a bad gateway error", but there's no error logged in nginx error log (/var/log/nginx/error.log) and PHP error log(/var/log/php7.4-fpm.log). I can't find any.

Interestingly when I added error_reporting( -1 ); ini_set( 'display_errors', 1 ); to LocalSettings.php, the page becomes accessible at once (Why?), with some extra lines displayed.

Notice: Array to string conversion in extensions/VisualEditor/includes/Hooks.php on line 889

(repeated, about 50 lines)

Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80

<Here, the original content is shown without error>

Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80

I think none of these warnings are of any use or related. If I remove the two lines from LocalSettings.php, the page returns 502 on refresh right away.

There must be something wrong but is there any way to see the error directly? The error seemed invisible now as both nginx error log and php error log show no clue and turning on error_reporting in LocalSettings.php also gives no useful information.

Reply to "502 Bad Gateway when accessing a particular page with any account logged in"

Elastria and CirrusSearch extensions not work?

3
Tang Empire (talkcontribs)

I added these extensions because I heard that they can hide redirects from the search bar. But it doesn't work? Do I need to wait a bit for it to hide redirects? I use version 1.41.1.

Bawolff (talkcontribs)

I'm not 100% sure but I don't think cirrussearch does that...

Tang Empire (talkcontribs)

I heard Wikipedia uses it to do that. Are there any other alternative solutions?

Reply to "Elastria and CirrusSearch extensions not work?"

Spam from mediawiki script

2
187.108.15.9 (talkcontribs)

Hello guys,

I have a customer that run just mediawiki at their cpanel account at propriedadeintelectual.wiki.br and your script are disparing spam. Can you help me please?

I already updated the script.


Time:  Sun Jun 30 23:57:44 2024 -0300

Path:  '/home/propried/public_html'

Count: 101 emails sent

Sample of the first 10 emails:

2024-06-30 23:02:21 cwd=/home/propried/public_html 5 args: /usr/sbin/sendmail -t -i -f email@propriedadeintelectual.wiki.br

Possible Scripts:


Time:  Mon Jul  1 19:55:43 2024 -0300

Type:  LOCALRELAY, Local Account - propried

Count: 101 emails relayed

Blocked: No

Sample of the first 10 emails:

2024-07-01 19:30:48 1sOPXr-0004Oq-2L <= email@propriedadeintelectual.wiki.br U=propried P=local S=1589 id=propried_mw-mwpi_.66832e1737dd92.45706034@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for isabella.dacosta73@festivaldomingosmartins.com.br

2024-07-01 19:31:00 1sOPY4-0004SY-06 <= email@propriedadeintelectual.wiki.br U=propried P=local S=1570 id=propried_mw-mwpi_.66832e23ca5fc9.59544495@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for christianrichardson41@turu.ophixy.com

2024-07-01 19:31:01 1sOPY5-0004T9-0Q <= email@propriedadeintelectual.wiki.br U=propried P=local S=1541 id=propried_mw-mwpi_.66832e24e91c76.05179894@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for ch5yohorta@outlook.com

2024-07-01 19:31:02 1sOPY6-0004V4-0Q <= email@propriedadeintelectual.wiki.br U=propried P=local S=1561 id=propried_mw-mwpi_.66832e260a5cc4.60198161@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for elmogoodenough60@happy.ylixo.com

2024-07-01 19:31:08 1sOPYC-0004a9-0k <= email@propriedadeintelectual.wiki.br U=propried P=local S=1553 id=propried_mw-mwpi_.66832e2c1f3dc1.01267558@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for ilsebrauer91@frio.dravix.org

2024-07-01 19:31:23 1sOPYR-0004eU-2U <= email@propriedadeintelectual.wiki.br U=propried P=local S=1558 id=propried_mw-mwpi_.66832e3b94a6d8.74043617@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for chauchristmas31@every.hivoltz.org

Bawolff (talkcontribs)

what makes you think these are spam?

Reply to "Spam from mediawiki script"
Davisvawiz (talkcontribs)

Hello, is there a moderation configuration that will block edits to be displayed to the public before the admin or the authorised personels approves after seeng that is worthy.

Thanks

Rgds

Davis Wanyonyi

Owner

Netvibe World

Bawolff (talkcontribs)
Reply to "Moderation setting"

Toolbar Buttons gone?

4
VerticalTec (talkcontribs)

Good day all...

I have installed the MediaWiki and started to create the first entry.

Above the editing-field I had the Toolbar Buttons to mark text "Bold, URL, etc.", but after saving the buttons are now gone.

Can anyone explain why and how I can get these Toolbar Buttons back?


THX in advance..

Malyacko (talkcontribs)

Please see the sidebar: Which exact MediaWiki version? After saving what?

Please also check your server logs for errors.

VerticalTec (talkcontribs)

1. Version 1.35.5-0154 (installed on Synology)

2. after fresh install = Toolbar Buttons available

I created new Link > added text > saved (after that Toolbar buttons gone)

3. were would I find the ServerLogs?

Thanks for any assistance, much appreciated.

Malyacko (talkcontribs)
  1. That's an ancient version not supported by the MediaWiki developers anymore and with potential security issues. You should talk to Synology
  2. We don't know which editor software Synology includes. Could be WikiEditor, could be VisualEditor, etc. You probably want to contact Synology about this.
  3. We don't know as we did not set up your server. Depends on your server.
Reply to "Toolbar Buttons gone?"