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
Reception123 (talkcontribs)

Hi, I'm not sure but is it possible to set a message for every page in a namespace? For example for all talk pages, there is a message at the top of the page.

Mainframe98 (talkcontribs)

When editing? That would be an edit notice: Manual:Interface/Edit notice. For viewing, perhaps you could use parser functions combined with Sitenotices?

Reply to "Message (notice) for namespaces"

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.

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

Ciencia Al Poder (talkcontribs)

Be sure that session.referer_check is set to Off in php.ini, this can cause such invalid session problems.

setting a debug log may give some details.

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

"$wgEnableScaryTranscluding = true" brings down wiki

Ciciban (talkcontribs)

Dear All

Here I got the advise to use Scary Transcluding to exchange content between wikis.

After a lot of confusion I understand now, that Extension:Interwiki will not make redundant to set "$wgEnableScaryTranscluding = true" in LocalSettings.php.

However, as soon as I set the command, my wiki will deliver an error screen with the following message:

Diese Seite funktioniert nicht

localhost kann diese Anfrage momentan nicht verarbeiten.

Can you give me advise how to solve the problem or at least where to look for the cause?

Thank you in advance! (talkcontribs)

That's why it is called scary transclusion. It is incredibly inefficient, and in fact, the variable itself is a way to scare off people from using it:


It might be better to use the mediawiki API and javascript to obtain content from another wiki.

Reply to ""$wgEnableScaryTranscluding = true" brings down wiki"

There were no results matching the query.

8 (talkcontribs)

Hi , I am working on my own wiki site. I installed it using MS SQL Server as DB.

The only problem is it failed to do content full-text searching, no matter what key words I typed in (I am pretty sure some pages contains the key words), it just gave 'There were no results matching the query.' No searching results shown.

What's wrong with it? Could somebody help me?

Best Regards,


Lk richard (talkcontribs)

Plus, I use

Nginx 1.10.2 + Microsoft Sql Server 10.50.2550.0 + PHP 7.0.15-nts-Win32-VC14-x86 + MediaWiki 1.27.1

The only extra modification I made is I cut the oi_name,oi_archive_name length from 255 to 225 because of the problem

Error: 1945 [SQLSTATE 01000][Error Code 1945][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Warning! The maximum key length is 900 bytes. The index 'oi_name_archive_name' has maximum length of 1020 bytes.

I am not sure if this is the cause for that.

Thanks in advance.

Best Regards


Lk richard (talkcontribs)

Can anyone help me?

Lk richard (talkcontribs)

Hi guys,

When I check the table 'searchindex' , I found all content is messy code.

Is it the problem of failing to make full text searching? How may I fix it?

Ciencia Al Poder (talkcontribs)

SQL Server has poor support in MediaWiki, that's probably a bug. Try to bugreport it

MarkAHershberger (talkcontribs)

@Lk richard: Did you file a bug?

Lk richard (talkcontribs)

@Ciencia Al Poder Thanks very much. Have posted one.

@MarkAHershberger Yes,  :-)

AKlapper (WMF) (talkcontribs)

Sounds more like a configuration issue with charset or collation to me (see more info in the bug report)

Reply to "There were no results matching the query."
TraaBBIT (talkcontribs)


I have issue during generating miniatures on my webpages.

Could You help me with that? :)

File looks fine:

But miniature not:

Malyacko (talkcontribs)


TraaBBIT (talkcontribs)


I will look on that.

What option is the best for creating thumbnalis?






JPEG (using GD)

Reply to "Error code: 127"
Ciciban (talkcontribs)

I just installed the math extension.

If I use the math-environment, it produces errors.

An empty math-environment will be processed correctly, but as soon as it gets any content, e.g. <math>a</math>, it produces error messages like


Es ist ein Datenbankabfragefehler aufgetreten. Dies könnte auf einen Fehler in der Software hindeuten.

[c5d579b6c896fd685d557fa0] 2017-08-20 14:21:29: Fataler Ausnahmefehler des Typs „DBQueryError“

sudo -u www-data php update.php returned

MediaWiki 1.28.2 Updater

Your composer.lock file is up to date with current dependencies!

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information

Can you suggest me a solution?

Thank you in advance!

Yours, Ciciban (talk) 14:45, 20 August 2017 (UTC)

Reply to "<math>-Environment Produces Errors"

Add js var that page was edited or created

Subfader (talkcontribs)

How would I add a js var to the head that the page was edited or created via an extension?

I need to trigger the page that is loaded for the contributor after he edited or created a page.

  • Would be easy to add the age in seconds I guess, but that could be incorrect at times.
  • Add url parameter to the viewed article after edits? (talkcontribs)

You can use mw.config.get( 'wgPostEdit' ); to know if the user just edited a page. It can contain: saved, created, or restored.

Subfader (talkcontribs)

I get only null and true (MW 1.25), but that's enough for me. Thanks! (talkcontribs)

It seems prior to 1.30 the type of edit is kept in the cookie 'PostEditRevision' + wgCurRevisionId.

Reply to "Add js var that page was edited or created"

No one can edit, despite having permissions

Hsekiu (talkcontribs)

Today a bug was reported to me where when editing a page, it told them (another Sysop) that they did not have permission to edit it. I checked, and they're still a sysop. What's more is, this is effecting every single user on the wiki, including myself, and we all still have our permissions. The edit button is gone, but when viewing the source of a page, or trying to create a new one, we get "The action you have requested is limited to users in one of the groups: Users, Administrators, Bureaucrats, editor." despite belonging to those groups.

I have no idea why this is happening. I tried disabling cloudflare, but it doesn't seem to have any effect. The site is not in read only mode either, this happened out of the blue this morning.

Reception123 (talkcontribs)

Cloudflare should have nothing to do with this. Are you sure no settings in LocalSettings.php were changed before this? The only logical explanation is that a setting changed.

Hsekiu (talkcontribs)

$wgReadOnly is off/commented out, so it's not that. I have not touched anything regarding permissions in several months. The only things I've changed recently is adding the extensions Number Format, Category Test, Labeled Section Transclusion, and DynamicPageList. It all worked fine when I installed them.

Is there anything in specific I should look for in my LocalSettings.php?

AhmadF.Cheema (talkcontribs)

As a test, you should try temporarily disabling all extensions to make sure that it is not an extensions problem. An older version of Extension:Lockdown was one extension which caused similar rights issues.

Reply to "No one can edit, despite having permissions"

error "forbidden" when modify pages with geohack links

Andrea.petrucci.1975 (talkcontribs)

When i try to insert in my page many Geohack links (example: i receive error reported below

Any idea of the problem? Mediawiki thinks that someone trying a SQL injection?


MediaWiki 1.27.1
PHP 5.6.31 (fpm-fcgi)
MariaDB 10.1.26-MariaDB

page with problem:



You do not have permission to access this document.

Reply to "error "forbidden" when modify pages with geohack links"
Fleming27858 (talkcontribs)

Hello, I've downloaded the program. When it wouldn't open an image with an FPX extension, I downloaded the FPX plugin. It downloaded a zip file containing FPX.dll. I tried copying the FPX.dll into the plugins folder, but it would not paste. How do I install the plugin? I've looked all over your site for instructions, and found the page that said that the plugin should be in the Plugin folder, but I can't get it in there! Thanks. Rhonda Fleming,

Fleming27858 (talkcontribs)

My post is in reference to the program XnView!

Malyacko (talkcontribs)

Welcome to the support desk for the MediaWiki software. For questions about XnView, please ask in an XnView forum.

Reply to "Can't install plugin"