Project:Support desk

Jump to: navigation, search

About this board

Edit description
vde   Welcome to's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL (talkcontribs)

Upgraded PHP to current, installed new wiki, and when trying to pull it up I get an error:

"MediaWiki 1.29 internal error

Installing some external dependencies (e.g. via composer) is required.

External dependencies

MediaWiki now also has some external dependencies that need to be installed via composer or from a separate git repo. Please see for help on installing the required components."

I've installed Composer, run 'composer --dump-autoload' to create the \vendor\autoload.php file. When running 'composer update --no-dev' I get the same error every time:


Class 'Wikimedia\Timestamp\TimestampException' not found

Any thoughts?

2003:72:6D1E:1400:B197:E34:89A1:B6C3 (talkcontribs)

According to Topic:Tun121xrbndcqdet, user Grantkinkead knows the solution of your problem, but he has not yet shared it. Asking him might help you further...

Reply to "MW 1.29, dependencies, and composer"

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

4 (talkcontribs)

I have just set up MediaWiki (1.29.0) on an AS400 IBM i machine. Though I can navigate the site, as well as create/edit pages, I cannot log in or create a new account. Every attempt to do so gives me "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."

I have tried adding "session_save_path("tmp");" to LocalSettings.php, as well as play with values of $wgMainCacheType and $wgSessionCacheType with no luck. Currently, my shared memory settings in LocalSettings.php have only these two lines:

$wgMainCacheType = CACHE_ACCEL;

$wgMemCachedServers = [];

How can I fix this? I believe my CSRF token is not being correctly cached in my session, but I'm not sure how to correct it.

I am using MariaDB as a database, Apache for the server, and PHP 5.5.37.

Ciencia Al Poder (talkcontribs)

If you have $wgMainCacheType = CACHE_ACCEL; you should provide a persistent data storage in $wgSessionCacheType (talkcontribs)

I have $wgSessionCacheType = CACHE_DB;

I've been able to look into my objectcache table, and found that MWSession is being stored correctly, (as in it's the same value as <my-wiki>_session in the response header's cookie). Is there another location where that value is written/read? I figure since I know it's being cached, but my comparison is still failing, that the fault is probably in getting/setting whatever value the cached token checks against, right?

Also, for what it's worth, I've since tried installing MediaWiki using version 1.27.3, but I'm still facing the same problem. (talkcontribs)

Another update: I've been fiddling with the source code to see if I can narrow down where my problem is occurring. This is what I'e found:

AuthManagerSpecialPage::trySubmit() is where the token mismatch is caught. $requestTokenValue and $sessionToken are not the same

setting $secret in Token::__construct to some constant allows me to sidestep the "hijacking" error, but in it's place is the error "Cookies may be disabled. Ensure you have cookies enabled start again" (my cookies are enabled), as well as the warning "You are already logged in as <username>. Use the form below to log in as another user" ("log in" changes to "sign out", but navigating away from the page at all signs me out). Supplying an incorrect password or username yields the appropriate error there, so WikiMedia is correctly able to check my credentials.

Obviously, making $secret a constant wasn't going to solve my problem, but hopefully faking it through the first error can shed some more light on what's actually going wrong.

Reply to "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."

Built-in Search Not Returning Page Text Results

1 (talkcontribs)

MediaWiki: 1.27

PHP: 7.1.1

Database: MSSQL 2008R2

I'm setting up an internal wiki. It currently only has the default main page and test page with text. The built in search only returns results for queries that mach exact page titles. For example, the main page will only show up in the results if "main page" is the search. Nothing is returned if you try to search for specific words that exist on the page. I tried removing the rows in the searchIndex table and running rebuildTextIndex.php. I also tried rebuildAll.php. The rebuildTextIndex script ran fine, but rebuildAll crashed when rebuilding links. The entries in the searchIndex table appear as Chinese characters. I'm not sure if this is just because the results from rebuildTextIndex aren't human readable and happen to fall in that section of characters, or if the script is actually returning incorrect values.

Reply to "Built-in Search Not Returning Page Text Results"

My mediawiki server times out on edit?

Wollington (talkcontribs)

Hey all! I'll preface this with saying that I'm by no means an advanced user of mediawiki, let alone Linux. I'm more of just a casual user than anything.

So I have a MW server installed on a raspberry pi and the last few days it's been having an issue with making edits to pages. The pages load fine for viewing, but the editing is what has an issue. I tried looking around and trying to install a php profiler to see what was causing the issue, but for some reason pecl isn't a command on my machine. I've also tried disabling all my extensions and trying to make an edit, but it still times out on me, so I don't think it's the extensions. I kinda feel like it's having an issue with writing to the database, but again, I'm more of an armchair admin than someone who knows what they're doing.

Any help would be greatly appreciated!

Malyacko (talkcontribs)

See - basic version information also welcome.

Ciencia Al Poder (talkcontribs)

See also Topic:Tuzbboot0de7nuzk

Wollington (talkcontribs)


Ended up being an issue with a dynamic IP, of all the stupid simple things that could've gone wrong. Set each instance of the old IP in LocalSettings to the new one, everything is working fine now.

Remember kids, check your IP.

TraaBBIT (talkcontribs)


On my page

I get error on some refs:

Błąd rozszerzenia cite: Nieprawidłowy znacznik <ref>; nazwę „Rtwoiaf_the_westerlands:_house_lannister_under_the_dragons.7B.7B.7B3.7D.7D.7D” zdefiniowano więcej niż raz z różną zawartością Błąd rozszerzenia cite: Nieprawidłowy znacznik <ref>

Ciencia Al Poder (talkcontribs)

The message is self-explanatory. You have {{Ref|TWOIAF| The Westerlands: House Lannister Under the Dragons}} with case variants (upper/lower)

TraaBBIT (talkcontribs)

So what should I do?

AhmadF.Cheema (talkcontribs)

If I understand the issue correctly, the first reference in the article's section "Jason Lannister (syn Gerolda)" is the problem. There is a case mismatch for the reference.

In the other four places for the reference, the name is {{Ref|TWOIAF| The Westerlands: House Lannister Under the Dragons}} while at this place, it is {{Ref|TWOIAF| The Westerlands: House Lannister under the Dragons}}. That is, with a lower case under. Change it to uppercase.

TraaBBIT (talkcontribs)

That it is. Thank You.

TraaBBIT (talkcontribs)

I have one more question.

Can I have in one article two refs looking similar?


ref|TWOIAF| Targaryenowie na Tronie: Maekar I

ref|twoiaf| Targaryenowie Na Tronie: Daeron II

Ciencia Al Poder (talkcontribs)

The "name" parameter of the ref must be unique on the page, or if it's not, they should have the same content. Having 2 different refs is okay as long as you don't use the same "name"

Reply to "Issue with refs"

How many teeth has the chain of distribution of the fiat lancia ZLA 840000*01057711

2 (talkcontribs)

How many teeth has the chain of distribution of the fiat lancia ZLA 840000*01057711

AhmadF.Cheema (talkcontribs)

This support forum is for queries related MediaWiki software and your question is unrelated to it.

Reply to "How many teeth has the chain of distribution of the fiat lancia ZLA 840000*01057711"
Summary by AhmadF.Cheema

Styling rules mistake

TraaBBIT (talkcontribs)


I updated my MV to 1.27 version and I got issue with my template.

Could You help me with that?

Malyacko (talkcontribs)

Please exactly describe the "issue with your template".

This comment was hidden by Malyacko (history)
TraaBBIT (talkcontribs)

That is my template using for genealogy.

That should looks that:

But looks that:

Ciencia Al Poder (talkcontribs)

In the output HTML of the table I see <table cellspacing="0" cellpadding="0" border=""0"style="font:"

In Szablon:Familytree/start I see:

--><table cellspacing="0" cellpadding="0" border="0"style="{{{style|}}}"></includeonly><noinclude>

the missing space between border and style may be causing this.

TraaBBIT (talkcontribs)

I fixed that but issue is still there.

AhmadF.Cheema (talkcontribs)

Clear the cache of the browser, the issue appears to have been resolved from my end.

TraaBBIT (talkcontribs)


I forgot about that.

Now all looks fine. (talkcontribs)

How can we create user group for a media wiki page. User must be able to view only the relevant page to his or her rights.

Osnard (talkcontribs)

Please refer to Manual:User rights. If you need to set permissions on namespace level consider using Extension:Lockdown.

Reply to "Creating User Group"
Ciciban (talkcontribs)

Dear all,

Is there a way to share text content between wikis, similar to sharing files via wikimedia commons?

Thank you in advance for your answers.

Yours, Ciciban (talk) 13:37, 16 August 2017 (UTC)

AhmadF.Cheema (talkcontribs)

See Manual:$wgEnableScaryTranscluding.

As far as I know, this will transclude the entire page and therefore cannot be used to transclude particular sections of an article.

Ciciban (talkcontribs)

Thank you,

$wgEnableScaryTranscluding = true; produced errors, but proceeding from your advise, I found out, that Extension:Interwiki does the job.

Still, there is a problem:

My wiki is set up German. The target wiki is set up Englisch. So a statement like {{raw:target:Sometemplate}} linkst to page Vorlage:Sometemplate in the target wiki in place of Template:Sometemplate

Is there a way to fix this other than setting up my wiki in English?

Thank you in advance for your answers.

Yours, Ciciban (talk) 20:05, 17 August 2017 (UTC)

Ciencia Al Poder (talkcontribs)

I haven't tested it but this may do the trick (forcing to specify the namespace in the target language):


Ciciban (talkcontribs)

Thanks for your answer. When I made a try according to your suggestion, I got a red link to Vorlage:target:Template:Sometemplate :(

Ciciban (talkcontribs)

P.s.: It seems that my wiki does not process double colons at all!

{{target::Some normal page}} does not produce a blue link to Some normal page in the target wiki, but a red link to Vorlage:taget::Some normal page.

Yours, Ciciban (talk) 12:38, 18 August 2017 (UTC)

Reply to "Sharing content between wikis"
Ciciban (talkcontribs)

Traditionally, in Wikipedia e.g. [[nl:Ellemelle]] produced a link on the left, indicating that that was the Dutch version of the article. How can I set up this feature in my mediawiki installation? Extension:Interwiki, for instance, allows for setting up this kind of relation, but afaik it does so within the artcle, not in the left column, outside of the article.

I hope I could express my point.

Thank you in advance for your help.

yours, Ciciban (talk) 20:14, 17 August 2017 (UTC)

Ciencia Al Poder (talkcontribs)

You don't need an extension. See Manual:Interwiki. be sure you're using language codes (de, en, es, it...) and not any custom code as iw_prefix, otherwise they can't be interpreted as an interlanguage link.

Ciciban (talkcontribs)

Thank you for your answer.

I placed an incomplete question, so I got an incomplete answer.

We are planning two wikis, describing different versions of a standard, and if there are features that both wikis share, then we would like to place an interwiki link.

With your hint I got it solved quite straightforward by adding entries to Names.php like

'2' => 'Version 2.x', # Version 2 of our standard

Reply to "Classic language links"