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

The link icon is not displayed

12
Summary by 174.214.49.52

About:Permit

Kohana240 (talkcontribs)
The link icon is not displayed

In the timeless skin, there was originally a link svg in the upper right corner of the inserted link text, but it was not displayed

Srigurukripa (talkcontribs)

Dear Wikimedia Support Team,

content strikken

[edited by administrator]

@Srigurukripa this is a support desk for the software and not a general appeals platform. So not only are you in the WRONG place, you added your comment to a random other thread, using an alternate account from your actual account. Please don't. -- User:TheDJ

Srigurukripa (talkcontribs)

@TheDJ can you please tell me from where I can get support. can you please help by providing me support desk link of Wikipedia.

Kohana240 (talkcontribs)

Hmm.. Can anybody please help me with this problem. I will be very thankful.

Bawolff (talkcontribs)

@Kohana240: to clarify you mean the little square with an arrow pointing out of it, icon that comes after external links. E.g. like like this ?


If your wiki is public, a link to it would be helpful.

Kohana240 (talkcontribs)

Yes. The icon after the link is always not displayed. And the link of the website is soka.cafe. It is a Chinese website.

Kohana240 (talkcontribs)

soka.cafe is the link

Bawolff (talkcontribs)

The external link icon is supposed to be located at https://soka.cafe/skins/Timeless/resources/images/ext-link.svg - however i think the short url setup is intercepting the url and treating it as an article, preventing MediaWiki from loading the icon. What url MediaWiki uses for this is controlled by $wgStylePath.

p.s. I love the customization of the Timeless skin, it is very pretty.

This post was hidden by Kohana240 (history)
Reply to "The link icon is not displayed"
2A02:A212:A500:DE00:153A:A1F4:EE3E:F66F (talkcontribs)
Bawolff (talkcontribs)

Looks fine to me

Reply to "Links disappeared?"

Update From 1.38.4 To 1.39 Ends With An SQL Error

3
Gustav.zone (talkcontribs)

Hello


We got this error after automatic upgrade to v 1.39:

Deprecated: Caller from MediaWiki\User\UserOptionsManager::loadOptionsFromDb ignored an error originally raised from MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds: [1054] Unknown column 'rev_actor' in 'field list' in /path/to/rootdir/includes/debug/MWDebug.php on line 381

MediaWiki internal error.

Original exception: [Y4sC-agvWrsHVKR4EV9SnQABNxQ] /Esileht 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?

Error 1054: Unknown column 'rev_actor' in 'field list'

Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds

Query: SELECT 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`,rev_actor,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `zudn_revision` JOIN `zudn_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `zudn_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `zudn_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = rev_actor)) JOIN `zudn_page` ON ((page_id = rev_page)) LEFT JOIN `zudn_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE rev_id = 22052 LIMIT 1


Can we do something before the update to fix this issue or is it caused by the installer (Installatron in this case)?

Would manual update work?


Thank you

Gustav

Bawolff (talkcontribs)

Did you run update.php? This is the type of error you would get if update.php was not run. (Although you would probably have to be going from a version earlier than 1.38)


Note: mediawiki does not have a builtin auto upgrade feature.

2A00:23C7:AE85:3A01:A8C3:B506:5A30:33B4 (talkcontribs)

Please, fix the wiki. Please.

Reply to "Update From 1.38.4 To 1.39 Ends With An SQL Error"

What's the situation with Structured Discussions?

6
Subfader (talkcontribs)

I wonder what extensions are recommended atm if you need comments or a forum.

On Structured Discussions I read that the project ended in November 2023 and everyone is advised to archive their discussion (what the?). Is there a follow-up? On the other hand this very support desk uses exactly this?

What should I use if I start a wiki nowaydays and want future-proof comments under article pages instead of talk pages?

TheDJ (talkcontribs)

Structured discussion is dead, I wouldn't use it. I'd argue it is impossible to maintain for 3rd parties, with a lot of exceptions and interventions that differ from how we do things in MW.

Everything Wikimedia will eventually switch to using DiscussionTools.

Subfader (talkcontribs)

Thanks. Let's hope this will be supported longer than Flow.

Bawolff (talkcontribs)

I have a much better feeling about discussion tools than flow. Its already been fairly well recieved by the community, where flow was controversial right out of the gate. I think it has staying power (just my 2 cents, i dont have access to a crystal ball any more than anybody else)

Jack Phoenix (talkcontribs)

@Subfader: Out of general curiosity, exactly what is the problem with Comments? As the maintainer and primary developer of it since 2011, I'd be curious to know. :) Its User Interface is pretty stable and definitely not using the latest fancy design things, but it gets the job done. (I'll admit, though, that OOUI did end up lasting for several years longer than it did, but that, too, is being phased out and I'm sure that the successor will also be sunset in favor of a newer, shinier gadget, give it some time. Not using these sort of frameworks comes with the unexpected benefit of your code working regardless, if you can tolerate a somewhat "dated" looking UI.)

For the record: the initial version was written circa 2006 (!) and as it (like other social tools originating from ArmchairGM which enable new content types, like Extension:FanBoxes, Extension:LinkFilter, Extension:Video, ...) predates MediaWiki's ContentHandler system by many years, it does things in a way which isn't ideal, yet it's surprisingly functional and shockingly robust (in my biased opinion), because even major core changes aren't likely to disrupt this little extension which does things in its own way.

Some people argue that "no recent code commits" (or something similar) equals to a dead project. I largely disagree; while it may mean that the end-user should exercise a bit of caution and carefully test things etc., not all MediaWiki developers are huge fans of "move fast and break stuff", which, alas, seems to be all too common these days. Sure, it bumps up a repository's commit count a lot, but what for, and at what cost?

Now, as for Comments' actual architectural shortcomings...while the comments are associated with a(n existing wiki) page, they are indeed in other ways separate, they are not regular wiki page content or anything. So implementing a history interface (phab:T156736) or the ability to undelete previously deleted comments (phab:T127595) is very tricky, to say the least, and I for one would be very surprised (but in a positive way!) to see those implemented before Comments turns 20 years old in 2026.

Subfader (talkcontribs)

Sorry, not old as outdated code but interface-wise. From the screenshots it looks like forum discussions from early 2000s.

Do you know of sites that use it which you could link or mail me?

In over 15 years I went from ArticleComments to some forum extension I forget and then Flow. Each time I was forced to throw away all old comments and posts. Not funny when you try to run a community. This timed I prefer some more LTS.

Reply to "What's the situation with Structured Discussions?"

Automated way to add a Category to all pages in Namespace "Main"

3
Abhidevananda (talkcontribs)

Hi again. I have a wiki with close to 3000 articles in Namespace Main. Now I need to add a Category (the same category) to all of those articles (with only a few exceptions). I am looking for an automated way to do this, maybe a regex in Special:ReplaceText (or possibly in some other extension). I have researched this but could not find specific instructions. If this can be done, what would the regex(s) be... presumably in two parts (one for the Search string and the other for the Replace string? Thanks.

Bawolff (talkcontribs)
Abhidevananda (talkcontribs)

Thanks, Bawolff. Just found the answer through AI.

  Search for: (.+)$
  Replace with: $1\n

Here’s a breakdown of what these expressions do:

  (.+)$: This matches the entire content of the page.
  $1\n: This appends the category tag  to the end of the content.

Make sure to replace YourCategoryName with the actual name of the category you want to add. (Sorry, I had trouble typing all of the Replace string. Immediately after the $1\n must come two opening square brackets, then Category:YourCategoryName followed by two closing square brackets.)

I also found that for such a large number of results in the ReplaceText extension I had to extend the result limits from the default 250 to a much higher number. But the instructions for doing this (adding a line in LocalSettings) were explained in the ReplaceText extension doc.

Appreciate all your help.

Reply to "Automated way to add a Category to all pages in Namespace "Main""

Replacing site name with image

2
213.204.92.109 (talkcontribs)

Hello, I'm looking on how to replace the site name with an image like how Wikipedia.org has the globe logo as site image and a WikipediA text logo in the place of the site name...

Can anyone help me on this matter?

Leaderboard (talkcontribs)
Reply to "Replacing site name with image"

getting all pages in a category

2
WASP-Outis (talkcontribs)

hello, how is there any way to get (crawl) all pages in a category? including pages in sub-categories in that category.

using api or pywiki

thank you

Leaderboard (talkcontribs)
Reply to "getting all pages in a category"

There is currently no text in this page - strange things

5
Stephankk (talkcontribs)

Hi all,


I'm using mediawiki for +15 years. Sometimes you need newer versions.

After the hosting-installatron updates (start with 1.31.1) of mediawiki, my wiki became "corrupt".

Issue: There is currently no text in this page

Editing page does not work, cause page exists in DB. Also in the text table.

New pages creating goes fine. Putting backup back (v 1.31.1) gives the same issue (that's my strange point). It takes a lot time for me to find apossible issue. Not found yet (for sure I did place also more and older backups - same issue).

I decided to create fresh install (installatron) version 1.38.4

And putted an upgraded DB below.

For new pages everything works fine. The old existing pages which are "There is currently..." aren't available and do have the same issue as earlier (when I putted the backup back). So, the version does not affect issue (it's still same findings)

When I try to edit this page (same as earlier also), the next message becomes:

The revision #0 of the page named "IToon" does not exist.

This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log

I hope someone recognize this problem and give me an hint to tix. Thanks in advance

Bawolff (talkcontribs)
Stephankk (talkcontribs)

Thanks for your hint. Issue still there.

Also runned: attachLatest.php, findMissingActors.php, findAnomalies.php, migrateActors.php But no results.

Futher analysis: the revisionXX tables are not filled in. New created page they do.

So I tried creating records in the tables of an old existing page.

Just for checking if I can fix the problem with sql update queries.

Now, the correspondending old test page gives after refresh in the browser the message: Main slot of revision not found in database. See T212428. https://phabricator.wikimedia.org/T212428

I don't know if it gives more insight in my problem, but this are some findings..

Table revision_comment_temp , field revcomment_comment_id giving high number, issue still issue.

So I think it should be possible to make with good sql the old pages available, based on table page and table text (perhaps some more). Or do I miss something?

Bawolff (talkcontribs)

that's probably from manually filling in some of the tables but not others. The error is essentially telling you there are referential integrity issues.


Generally i would reccomend not trying to manually adjust the database but use the updater script where possible.

Stephankk (talkcontribs)

Yes they were for sure.

Problem found. The intallatron backup mechanism of the hosting skipped some tables.

So, manually import script and no modifications. And now it works. thanks again for help!

Reply to "There is currently no text in this page - strange things"

Mediawiki keeps redirecting to old IP after the server got a new IP

4
Kmuriuki (talkcontribs)

I installed mediawiki at work and it has been working without issues. But recently I changed ip addresses of my server from 192.168.80.30 to 172.16.9.10 but whenever i am trying to access mediawiki is redirecting to old ip address. Kindly assist. i have been trying to search localsetting but i am not lucky to find it?

Fokebox (talkcontribs)

Try to clean cache

Kmuriuki (talkcontribs)

Thanks

Bawolff (talkcontribs)

Check the value of $wgServer in LocalSettings.php

Toolforge warning

14
Klein Muçi (talkcontribs)

I tried accessing Toolforge today and I got this warning:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the [] key sent by the remote host is []. Please contact your system administrator. Add correct host key in [] to get rid of this message. [] Host key for login.toolforge.org has changed and you have requested strict checking. Host key verification failed.

I have removed [some information] thinking maybe it shouldn't be public. What does it mean exactly and what should my course of action be? Can someone help me?

Bawolff (talkcontribs)

It probably means they reinstalled the operating system. The error means that you are talking to a different computer than last time you connected. In theory it could be someone evesdropping on the connection, but in practise it usually just means toolforge was updated.


If your paranoid, check the value against those listed at https://wikitech.wikimedia.org/wiki/Help:SSH_Fingerprints/login.toolforge.org

Klein Muçi (talkcontribs)

@Bawolff, thanks a lot for the straightforward answer! What exactly should I be changing so it allows me to login in again?

This: login.toolforge.org,185.15.56.48 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFnJSjCGW7kli+cdgtmndPAl4xLZNc9uqP9KWlsnVDqr8yQ2RkR5ACbXe6XZ+dS09Wc9ulOmGTOwCImMi9Fho78=

To this: login.toolforge.org,185.15.56.48 ecdsa-sha2-nistp256 xxW0+dRvWgCzYOq7uBKXXo7Xze0FVezt0QikIkpeMKI= ?

Klein Muçi (talkcontribs)

That can't be right because I already tried that and I got the same message while still not being allowed to log in.

Bawolff (talkcontribs)

Generally i just delete the particular line from the config file (on next login it will ask if you want to trust, if you press y it will add an appropriate line back). Usually there are 2 lines you need to remove, one for the domain name and one for the ip address.

Klein Muçi (talkcontribs)

It worked and I'm now logged in. I deleted the old file as well.

Last question: In my known hosts, beside Toolforge, I also had this: [gerrit.wikimedia.org]:29418,[208.80.154.137]:29418 ssh-rsa AAAAB3Nza...+oVFf1CgQ==

What exactly is that and would I need to change anything in regard to it or does the Toolforge update not have any connection whatsoever with that?

Bawolff (talkcontribs)

They are separate. Gerrit is the wikimedia code review tool (which also uses ssh). If you ever used git review (or git push) on a wikimedia code base, that is where that line comes from.

Klein Muçi (talkcontribs)

I have. Again, thanks a lot for the fast and straightforward answers. My past experiences with WikiTech stuff have been frustrating and I've usually been redirected in the IRC chat channels. I saw that you were singlehandedly handling all the request here and that's to be appraised. Thank you and have a good day! :)

P858snake (talkcontribs)
Klein Muçi (talkcontribs)

@P858snake, where do I subscribe to these mailing lists?

P858snake (talkcontribs)
Klein Muçi (talkcontribs)

Wow, so many possible lists! Is the "Mailman install" a new thing? I didn't have an account for it apparently but I remember doing something more old-school for subscription in the past. I created an account and indeed I had some lists I had subscripted to already. I'm very much fond of this "new way" though. I did subscribe to it. Thank you for assisting me through this!

P858snake (talkcontribs)

@Klein Muçi We migrated from Mailman 2.X to 3.X last April/May which brought quite a few improvements.

TiagoLubiana (talkcontribs)

Thanks for this discussion! I just had the same issue. Thank you @Bawolff for the link to the SSH fingerprints.

Reply to "Toolforge warning"