Project:Support desk

Jump to: navigation, search

About this board


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".
Language: English  español


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
2601:646:C300:2D9F:6DFF:4D46:68C3:BAD2 (talkcontribs)


Attempting to create PDF of the Data Structures WIKI book, but the process always fails. It's been doing it for days so I'm guessing it's not setting off any alarms.

Can anyone fix that process?



Reply to "pdf creation always fails"

Issues upgrading from MW 1.25.1 to 1.27.1

Star Warden (talkcontribs)

Hey, everyone. I tried upgrading from 1.25.1 to 1.27.1. The first version was downloaded manually from mediawiki, thus I cloned the second one through git, so I can use 'checkout' for upgrading to future versions. I used </nowiki>git clone -b REL1_27 temp</nowiki> to clone the new version into a folder called 'temp', then I installed composer using the instructions here. Then I copied the images, extensions and skins folders from the old mw folder to the new one using cp -r ../dml-wiki/(name of folder, i.e. images, extensions or skins)/* (same name of folder)/. Lastly, I copied localsettings.pnp, favico and the logos. Then I ran php update.php and got this error [6c3190bdbe6ec58d15994cb1] 2016-09-28 11:46:09: Fatal exception of type MWException. I ran the webupdater, too, just in case, but same thing. Then I remembered to set $wgShowExceptionDetails to true and I got these lines:

[8c06da68ab42fa4f454f93f8] /Special:RecentChanges MWException from line 108 of /srv/dml-wiki/includes/cache/localisation/LCStoreCDB.php: Unable to open CDB file for write "/srv/dml-wiki/cache/l10n_cache-en.cdb"


  1. 0 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(1014): LCStoreCDB->startWrite(string)
  1. 1 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
  1. 2 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)
  1. 3 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
  1. 4 /srv/dml-wiki/languages/Language.php(464): LocalisationCache->getItem(string, string)
  1. 5 /srv/dml-wiki/includes/search/SearchEngineConfig.php(42): Language->getNamespaces()
  1. 6 /srv/dml-wiki/includes/user/User.php(1530): SearchEngineConfig->searchableNamespaces()
  1. 7 /srv/dml-wiki/includes/user/User.php(5049): User::getDefaultOptions()
  1. 8 /srv/dml-wiki/includes/user/User.php(528): User->loadOptions()
  1. 9 /srv/dml-wiki/includes/user/User.php(444): User->saveToCache()
  1. 10 /srv/dml-wiki/includes/user/User.php(405): User->loadFromId(integer)
  1. 11 /srv/dml-wiki/includes/session/UserInfo.php(88): User->load()
  1. 12 /srv/dml-wiki/includes/session/CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId(string)
  1. 13 /srv/dml-wiki/includes/session/SessionManager.php(479): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
  1. 14 /srv/dml-wiki/includes/session/SessionManager.php(182): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
  1. 15 /srv/dml-wiki/includes/WebRequest.php(700): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
  1. 16 /srv/dml-wiki/includes/session/SessionManager.php(121): WebRequest->getSession()
  1. 17 /srv/dml-wiki/includes/Setup.php(747): MediaWiki\Session\SessionManager::getGlobalSession()
  1. 18 /srv/dml-wiki/includes/WebStart.php(137): require_once(string)
  1. 19 /srv/dml-wiki/index.php(40): require(string)
  1. 20 {main}

I have absolutely no idea how to fix them. Please advise me as to what I should do. (talkcontribs)

This might be a permission problem. Define a cache folder in Manual:$wgCacheDirectory and make sure that the webserver user is allowed to read and write files inside the cache folder!

Star Warden (talkcontribs)

I will try that. I forgot to mention that there is a phpmyadmin folder shortcut in the old mw version. The actual folder is in /usr/share/phpmyadmin. Should I make a shortcut of it in the new version, as well or does it have nothing to do with it? (talkcontribs)

This shortcut does not come from MediaWiki. It has nothing to do with it and it is not needed.

(And I would not even be sure, that it would be safe to have such a redirect there. I would leave it away.)

Star Warden (talkcontribs)

So, I used chown -R www-data:www-data to make the entire folder writable and now the wiki loaded! But, there is a very odd issue. The wiki can be navigated as long as you're not logged in. If you're logged in or if you try to log in, you'll get this error: And there's no way you can log out if you were already logged in before the issue occured, thus forcing you to browse on incognito. Also, once you attempted to log in, even on incognito, you would have to restart the browser, otherwise the issue persisted. Oddly enough, when I tried to log in, it wouldn't let me, saying the password doesn't match and it would take me to a screen where I had to change my password or that I could 'skip'. I chose skip, then the issue occured. I asked another user to do the same thing, but they didn't get the 'password doesn't match screen', but, instead, the page loaded, but they were hit by the issue. I am not sure if it's because my account has bureaucrat powers and they have a regular account. Regardless of that, the wiki cannot be navigated if you're logged in or you attempt to log in and 'succeed'. Also, setting $wgShowExceptionDetails to true didn't help either (I didn't get anything displayed). I even ran update.php and rebuildFileCache.php and still no luck. (talkcontribs)

You are getting a server error 500. Look into the server error log to get more information about what is going wrong!

Star Warden (talkcontribs)

I forgot to say that, when I ran rebuildFileCache in the shell, I got this:

Not sure if it's something that helps or even matters.

Star Warden (talkcontribs)

All right, I have no idea if I am doing something wrong, but I accessed (downloaded) the error log from /var/log/nginx/error.log and the last logged entry was four hours ago. But I got the error two hours ago. Then I ran tail /var/log/nginx/error.log and tail /var/log/nginx/error.log.1, thinking it would pull something more recent, and both show the same entry in the shell. Or, maybe, I am not accessing the right server log? In which case I don't know where to find it and google isn't very helpful, either.

Reply to "Issues upgrading from MW 1.25.1 to 1.27.1"

Session Hijacking error after Update 1.19.14

10 (talkcontribs)


after updating my Intranet-Wiki to Mediawiki 1.19.14 I receive an error on every Password Reset. This can be reproduced by all users: 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 already tried different things, but can't find a solutiong. My /tmp is writeable. I am using Mediawiki 1.19.14, PHP 5.3.10, MySQL 5.5.35 on an Ubuntu 12.04 LTS. Can anybody please help on this issue?

Thanks in Advance.

AKlapper (WMF) (talkcontribs)

Who triggers that error? MediaWiki itself? Your browser? (talkcontribs)

The error ist triggered by Mediawiki. I commented out the Diffs which came with MW 1.19.14 to includes/special/SpecialChangePassword.php and the errors dissapear.

AKlapper (WMF) (talkcontribs) lists bugzilla:62497 as the culprit. You might want to provide browser information and bring it up there.

Grunny (talkcontribs)

This was a mistake in the backport to MW 1.19.14. I already sent a patch for it to Markus to see if we can get the fix released. If you want to fix it in the mean time, open up includes/specials/SpecialChangePassword.php go to line 154 which should be:

			$loginOnChangeToken = LoginForm::getLoginToken();

And change it to:

			$loginOnChangeToken = Html::hidden( 'wpLoginOnChangeToken', LoginForm::getLoginToken() ); (talkcontribs)

This fix works, thank you very much! (talkcontribs)

The error here occurred in a MediaWiki v1.16.5 install in BlueOnyx server. The Apache error log exceeded 3.2GB was corrected by purging it with:

Zzmonty (talkcontribs)

I just tried to install 1.27, clean install, and I also got this error. What I did notice was that at one point the installer asks "End now" or "ask more questions." If I tried to install through the whole installer, I would get this error. If I stopped the installation after the "End now", I would not get this session error. It is really annoying that this problem still exists in version 1.27. (talkcontribs)

I was having the exact same problem with 1.27.1 and comparing the resulting setting files showed the difference to be in $wgMainCacheType. Logins worked when caching was disabled, and after a bit more poking around it seems to be a problem with APCu session caching not working. The following is what did it for me:

$wgMainCacheType = CACHE_ACCEL;

$wgSessionCacheType = CACHE_DB;

Malyacko (talkcontribs)

The problem does not still exist in 1.27. It's a different problem (likely due to AuthManager code changes) with the same message displayed.

Reply to "Session Hijacking error after Update 1.19.14"

Upgrading from 1.16 to 1.27 - update.php does nothing

1 (talkcontribs)


I'm upgrading wiki from 1.16 to 1.27 following Upgrade instructions.

I've done so far:

  1. unpacked mediawiki-1.27.1.tar.gz to new folder
  2. copied images from old wiki
  3. copied LocalSetting.php
  4. copied imageplus folde to extensions
  5. got to maintenance and run php update.php from ssh
  6. got this communicate: MediaWiki 1.27.1 Updater Your composer.lock file is up to date with current dependencies! Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.
  7. I've tried to set to true but got no any further logs.

What i'm doing wrong? Where can i find some logs what's going on?

Please Help :)

Reply to "Upgrading from 1.16 to 1.27 - update.php does nothing"
Tenerifeyeah (talkcontribs)

I have translated an article from Russian to French and published it with no problem. After that I have translated it to English, but when I try to publish it, I have this warning:

An error occurred while publishing the translation. Please try to publish the page again. Error: Hit AbuseFilter: Content Translation Edits

An automated filter has identified this edit as potentially unconstructive, and it has been disallowed. If this edit is constructive, please report this error.

If I understand it right, I have to wait for a month to publish it?? Why? (talkcontribs)

No, I do not see that it would say you would have to wait a month. I would guess that, if you waited one month, the message would still be the same.

Honestly, don't know, what the problem is with a Content Translation Edit. It might be (but I am only guessing) that the guys in the English Wikpedia want the article history to be there before you start translating? However, such imprts can also be done ''after'' an article has been created, so: I don't know what the problem is, but I oubt that it will go away by itself, just because of time passing.

Reply to "translation to English"

I took a picture and it ended up on this site with someone else name as the photographer? How do I go about fixing this?

2 (talkcontribs)

I took a picture and it ended up on this site with someone else name as the photographer? How do I go about fixing this? (talkcontribs)

You have not said, which image you are talking about.

However, providing wrong author information on an image might be a copyright violation.

Either you agree to this photo being used here and you ''only'' fix the author information by editing the image description page.

Or you request deletion of the image and as reason for the deletion request you say hat this in fact is your work and that you have not granted anyone the right to use this image on this site.

Reply to "I took a picture and it ended up on this site with someone else name as the photographer? How do I go about fixing this?"

The name of my institution changed, how can I change the title of may page?

Teresalanca (talkcontribs)

The name of my institution changed, how can I change the title of may page? (talkcontribs)

See Help:Moving a page!

Reply to "The name of my institution changed, how can I change the title of may page?"
Ciciban (talkcontribs)

Dear everybody,<br>May I direct your attention to my question on<br>[[Extension_talk:Html2Wiki#Html2Wiki_creates_empty_pages]]?<br>My problem is, that html2wiki runs somehow, but it delivers empty pages (wikipages with empty source code).<br>By the way, no single question on [[Extension_talk:Html2Wiki]] has been answered since the very first edit one and a halve years ago.<br>Thank you in advance.<br>Yours, Ciciban (talk) 15:31, 28 September 2016 (UTC)

Ciciban (talkcontribs)

And: How can I work with wiki syntax here? — ~~~~

Reply to "html2wiki creates empty pages"

How to get Original user name or user id of article page??

Jainuddin786 (talkcontribs)

I want to show Original User name or User ID, who create the article first time.???

Star Warden (talkcontribs)

To view the original author of an article, simply click 'history' (on monobook) or 'view history' (vector) at the top of any article (monobook)/in the left of the search bar (vector) and you should see a sorting option 'newest/oldest'. Choose 'oldest' then scroll at the very bottom of the page. The first edit that you see is the original author of the article. If no such sorting option is available (meaning there is only one page detailing the history of edits of the page), simply scroll at the very bottom. I hope I understood your question right and what I suggested helps.

Star Warden (talkcontribs)

And to give you an example, I sorted by oldest the history of this article and scrolled at very bottom of it where I can see that, on the 14th of September 2011, Jack Phoenix created the article.

Reply to "How to get Original user name or user id of article page??" (talkcontribs)

Hi there,

I just installed Wikibase in my Mediawiki and after following all the steps on the installation page (Wikibase/Installation) and adding to my LocalSettings.php those:

$wgEnableWikibaseRepo = false;
$wgEnableWikibaseClient = true;
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php"; Mediawiki shows an Exception on all content pages with this message:

MediaWiki internal error.

Original exception: [b70e77d988e23887200ed7f5] /wiki/Vorlage:Infobox_Software MWException from line 56 of /var/www/wiki/extensions/Wikibase/lib/includes/Store/Sql/SiteLinkTable.php: $wiki must be a string or false.
#0 /var/www/wiki/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(276): Wikibase\Lib\Store\SiteLinkTable->__construct(string, boolean, NULL)
#1 /var/www/wiki/extensions/Wikibase/client/includes/WikibaseClient.php(820): Wikibase\DirectSqlStore->getSiteLinkLookup()
#2 /var/www/wiki/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(66): Wikibase\Client\WikibaseClient->getLangLinkHandler()
#3 /var/www/wiki/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(87): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::newFromGlobalState()
#4 /var/www/wiki/includes/Hooks.php(195): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::onContentAlterParserOutput(WikitextContent, Title, ParserOutput)
#5 /var/www/wiki/includes/content/AbstractContent.php(501): Hooks::run(string, array)
#6 /var/www/wiki/includes/poolcounter/PoolWorkArticleView.php(139): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#7 /var/www/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#8 /var/www/wiki/includes/page/Article.php(666): PoolCounterWork->execute()
#9 /var/www/wiki/includes/actions/ViewAction.php(44): Article->view()
#10 /var/www/wiki/includes/MediaWiki.php(503): ViewAction->show()
#11 /var/www/wiki/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)
#12 /var/www/wiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#13 /var/www/wiki/includes/MediaWiki.php(519): MediaWiki->main()
#14 /var/www/wiki/index.php(43): MediaWiki->run()
#15 {main}
Reply to "Wikibase: Exception after installation"