Project:Support desk

From MediaWiki.org
Jump to: navigation, search
vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask: IRC, mailing 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 discussion".
Start a new discussion

Contents

Thread titleRepliesLast modified
Hyperlinks pop-up info121:13, 24 May 2015
Cache problem017:49, 24 May 2015
Lost user name114:17, 24 May 2015
Skin and load.php error in Chrome and others211:16, 24 May 2015
[SOLVED] 'Could not create directory "mwstore://local-backend/local-public".' on file upload711:04, 24 May 2015
Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality1310:33, 24 May 2015
OAuth consumer request002:42, 24 May 2015
Gitblit replication of gerrit has stopped.000:42, 24 May 2015
[NOT REALLY SOLVED] link color: "light red link" of article does not change314:30, 23 May 2015
Please help me guys SMW error when I'm editing the page i see this error 110:06, 23 May 2015
German Mediawiki 1.24.2 default namespace in recent changes005:37, 23 May 2015
No matter what I do, I can't get Infoboxes to work on my wiki.205:32, 23 May 2015
Remove the discussion tab from the wiki.123:28, 22 May 2015
[Solved] Disable Cookies for Guests217:20, 22 May 2015
Can't solve this error in Parser.php1115:57, 22 May 2015
Exception from line 1871 of /w/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'npose_n.png.'815:47, 22 May 2015
hey guys i just installed mediawiki but when added SMW extension it wont start and show lots of errors109:46, 22 May 2015
Remove "cont." from subcategoies003:23, 22 May 2015
[RESOLVED] media wiki1.17.0 install gets stuck at create tables121:23, 21 May 2015
only the page "Specialpages:Categories" is just white/blank117:22, 21 May 2015
First page
First page
Previous page
Previous page
Last page
Last page

Hyperlinks pop-up info

Hello there, I'm an avid wikipedia user and I've recently experienced a certain difficulty to nagivate around a specific topic (new to me), because of the abundance of jargon and terms that other otherwise covered on other wikipedia pages, all leading to a copious number of tabs to understand a page of molecular biology (for example).

What I was thinking is: would it be possible to develop a feature on wikipedia pages where positing the mouse on the in-text link, would automatically (or under request) show a basic explanation of the term without the need to open a new page for the specific link?!

I was just wondering and I'm not even sure if this is the right place where to post this, any suggestion???

94.204.110.14221:01, 24 May 2015

Maybe Hovercards would be what you are looking for?

Clump (talk)21:13, 24 May 2015
 

Cache problem

Hi I get this error

Warning: Could not find APC, XCache or WinCache.​


Object caching is not enabled.​


in mw-config/

my webhost recently install xCache and my website still doesent detect it is installed.

please could I have some help to fix object caching not enabled why does that happen and how can my webhost fix the problem.

Paladox2017 (talk)17:49, 24 May 2015

Lost user name

How do I find my user name if I have forgotten it? I have saved defaults but my computer wiped them out

70.27.95.18013:37, 24 May 2015

If you provided your e mail address, you can use the wiki page Special:PasswordReset to make MediaWiki send you an e-mail. If your account had special user rights, you can also look up the according names on the wiki page Special:ListUsers in your wiki.

88.130.122.21514:17, 24 May 2015
 

Skin and load.php error in Chrome and others

  • MediaWiki 1.24.2
  • PHP 5.4.39 (cgi-fcgi)
  • MySQL 5.5.42-cll

Hi, I installed a new clean Wiki 1.24.2 in my VPS host, and now I have a problem with skins and load.php in Google Chrome.

I tried all of solutions I find on this board and other sites, like some code in .htaccess (this fix the problem in Firefox) and LocalSettings minimal changes and stuff (cache, localhost URL, etc.).

But in Google Chrome, Opera and other similar browsers -included mobile version- nothing work.

The specific error is:

Refused to execute script from '/w/load.php?debug=false&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150521T163633Z' because its MIME type ('(null)') is not executable, and strict MIME type checking is enabled.

and...

index.php?title=Especial:Entrar:14 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "/w/load.php?debug=false&lang=es&modules=mediawiki.leg….button%2Ccheckbox%2Cinput%7Cskins.vector.styles&only=styles&skin=vector&*".

So, all the CSS and Vector skin is gone.

  • RewriteEngine On
  • RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
  • RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
  • RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
  • RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
  • RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
  • RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
  • RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
  • RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
  • RewriteCond %{QUERY_STRING} only=styles
  • RewriteRule ^load.php - [QSA,E=content_type:text/css]
  • RewriteCond %{QUERY_STRING} only=scripts
  • RewriteRule ^load.php - [QSA,E=content_type:application/javascript]
  • RewriteCond %{REQUEST_URI} !^/(redirect|load|texvc|index).php
  • RewriteRule ^(api|load)\.php - [L]

This is my htaccess, this fix (I guess) the problem only in Firefox and sometimes I can see everything perfectly in other browsers until -after a couple of clicks- error happen again. I think it's an important, check it as soon as possible because affects the entirety wiki and cause inconvenience to visitors.

Thanks for your cooperation.

PediarS (talk)00:02, 24 May 2015

More info here, I have to edit URL links because I could not publish.

Error screenshot: imgur[.]com/1jJiUDs.png

.htaccess screenshot: imgur[.]com/fGtfCoF.png

My wiki: pediars[.]com

PediarS (talk)00:08, 24 May 2015

You shouldn't need to set a content-type for load.php URLs, MediaWiki should send the correct content-type.

The URL scheme of the wiki is that it's published at /w and it has rewrite rules for short URLs at /wiki. But your .htaccess has rules on lines 14, 17, 19 and 21 that matches the start of the URL (because they have the "^" character) but no /w is present. From my understanding, from line 12 to the end shouldn't be necessary.

Ciencia Al Poder (talk)11:16, 24 May 2015
 
 

[SOLVED] 'Could not create directory "mwstore://local-backend/local-public".' on file upload

So I've been having trouble with file uploads on my newly made wiki recently.

Whenever I upload a file, I get the error: Could not create directory "mwstore://local-backend/local-public".

Let me give you some background on the situation.

When I first made the wiki, I would get: Exception from line 1871 of /wiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'blah.png'

I searched and eventually found that to fix this you add the following to LocalSettings.php:

$wgFileBackends[] = array(
        'name'        => 'local-backend',
        'class'       => 'FSFileBackend',
        'lockManager' => 'nullLockManager',
        'containerPaths' => array(
                'local-public'  => "{$wgUploadDirectory}",
                'local-thumb'   => "{$wgUploadDirectory}/thumb",
                'local-deleted' => $wgDeletedDirectory,
                'local-temp'    => "{$wgUploadDirectory}/temp",
        ),
        'fileMode'    => 0644,
);
 
$wgLocalFileRepo = array (
        'class'             => 'LocalRepo',
        'name'              => 'local',
                'directory'         => $wgUploadDirectory,
        'scriptDirUrl'      => $wgScriptPath,
        'scriptExtension'   => $wgScriptExtension,
        'url'               => $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath,
        'hashLevels'        => $wgHashedUploadDirectory ? 2 : 0,
        'thumbScriptUrl'    => $wgThumbnailScriptPath,
        'transformVia404'   => !$wgGenerateThumbnailOnParse,
                'deletedDir'        => $wgDeletedDirectory,
                'deletedHashLevels' => 3,
        'backend'           => 'local-backend',
);

This now produces the error Could not create directory "mwstore://local-backend/local-public".. I have already tried a lot of things found in other posts. I have tried chmodding and chownning the /images directory, but that does not work. What other fixes are there for this?

Spydar007 (Talk)18:15, 22 May 2015
Edited by another user.
Last edit: 10:00, 23 May 2015

[dupe post]

Spydar007 (Talk)18:15, 22 May 2015
 

You should comment out those added lines and enable the debug log to see what location in your server is local-backend/local-public, in case you mispelled something in the configuration files, and also see what steps are being performed and when it fails.

Problems are usually permissions, upload directory under a symlink, or SELinux not allowing the creation of some directories.

Ciencia Al Poder (talk)10:05, 23 May 2015

Doing so gives the following (in a very messed up way in terms of displaying it):

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582] in /home/spydar007/wiki/includes/debug/MWDebug.php on line 302

Warning: fopen(/images/lockdir/564h27zv7wopab0cnx8ockvv2hi50ds.lock): failed to open stream: No such file or directory in /home/spydar007/wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Internal error
[7954ecee] /wiki/Special:Upload Exception from line 1871 of /home/spydar007/wiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'blah.PNG.'

Backtrace:

#0 /home/spydar007/wiki/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
#1 /home/spydar007/wiki/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
#2 /home/spydar007/wiki/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
#3 /home/spydar007/wiki/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload()
#4 /home/spydar007/wiki/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
#5 /home/spydar007/wiki/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
#6 /home/spydar007/wiki/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
#7 /home/spydar007/wiki/includes/MediaWiki.php(584): MediaWiki->performRequest()
#8 /home/spydar007/wiki/includes/MediaWiki.php(435): MediaWiki->main()
#9 /home/spydar007/wiki/index.php(46): MediaWiki->run()
#10 {main}

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/spydar007/wiki/includes/debug/MWDebug.php:302) in /home/spydar007/wiki/includes/WebResponse.php on line 37
Spydar007 (Talk)11:43, 23 May 2015

Basically it seems like there is only one error to be solved, that is this one:

Warning: failed to mkdir "/images/lockdir" mode 0777 [Called from wfMkdirParents in /home/spydar007/wiki/includes/GlobalFunctions.php at line 2582]

The other errors are only consequences of this one.

Can you investigate, why it is not possible to create the folder /images/lockdir? Does the webserver not have permission to write into the images/ folder?

88.130.96.1012:41, 23 May 2015

As I already said, I have tried chownning and chmodding /images to various users and permissions. I have tried again, and this still doesn't work. I also tried manually making lockdir, but the same error is produced.

Spydar007 (Talk)13:44, 23 May 2015

I'd say your $wgUploadDirectory is wrong. Shouldn't it be /home/spydar007/wiki/images instead of /images?

Ciencia Al Poder (talk)10:28, 24 May 2015
 
 
 
 
 

Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality

Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality

User listed in sysop and Bureaucrats MediaWiki Output receives Permission error when clicking on restricted links.

/index.php/Special:ConfirmAccounts
Permission error You do not have permission to <action-confirmaccount>, for the following reason: The action you have requested is limited to users in the group: Bureaucrats.

/index.php/Special:UserLogin/signup
Permission error You do not have permission to create this user account, for the following reason: The action you have requested is limited to users in the group: Administrators.

/index.php?title=Special:ListUsers&group=bureaucrat
Displays user.

/index.php?title=Special:ListUsers&group=sysop
Displays user.

/index.php/Main_Page

Product Version MediaWiki 1.23.5 PHP 5.3.17 (apache2handler) MySQL 5.6.20-log

Thank you

Tcaton-nm (talk)21:54, 20 November 2014

Hi!

Two things: On Special:ConfirmAccounts, does it really contain the text <action-confirmaccount> at that place? This points to a missing language label. Anyway, since the special page itself is there, the extension obviously is installed in some way.

If I remember correctly, the usernames on Special:ListUsers are not cached, but displayed "live". Anyway, have a look at the database table user_group. Are there rows for the according user? User_id in ug_user and the name of the group written as a word in ug_group?

88.130.125.3323:03, 20 November 2014

I used links off: /index.php/Special:ListGroupRights under Groups: Bureaucrats & Administrators to test my Permissions.


These all gave me Permission Error:

index.php/Special:Maintenance

index.php/Special:UserCredentials

index.php/Special:ConfirmAccounts

index.php/Special:UserLogin/signup


Once again these URLs do display my username:

index.php?title=Special:ListUsers&group=sysop

index.php?title=Special:ListUsers&group=bureaucrat




My USERID is listed twice: from user:user_id in user_groups:ug_user.

Confusingly all user_groups:ug_groups are displayed as BLOB.

Thanks for helping!!!

Tcaton-nm (talk)00:04, 21 November 2014

I think you should be able to actually read the contents of the fields, if you do a SELECT query and add the CONVERT() function to it like this:

CONVERT(ug_group USING utf8)
88.130.80.15213:37, 21 November 2014

Thanks that is a very helpful function.

Tcaton-nm (talk)20:01, 10 December 2014
 
 

Yes labels in <> on all the error pages:

<action-maintenance>
<action-lookupcredentials>
<action-confirmaccount>

I will research: "missing language label".

Working on CONVERT function - THANKS!!!

Tcaton-nm (talk)16:18, 21 November 2014
 
 

It appears I have an answer.
In MediaWiki 1.18.1 logging into EDir created user names using the EDir convention: Uppercase Uppercase lowercase rest of username.....
Logging into Upgrade MediaWiki 1.23.5 forced Username to: Uppercase lowercase rest of username....
Simply editing all usernames in DB to be Uppercase first character only fixed it.

Tcaton-nm (talk)20:16, 21 November 2014

Alright, the problem then was not that the (old) usernames did no longer have the right permissions, but that you in fact got logged in with a different username and this user had a different ID in the user table and so did not get the permissions assigned. Sounds to me like something was changed in the (external?) login mechanism you are using.

88.130.80.15223:36, 21 November 2014

I believe MediaWiki 1.23.5 forces all my logins:
USERNAME
USername
username

To:
Username

All 4 succeed logging into my Edir account: USername.
Forces Username displayed to: Username,
Browser saves same password to 4 usernames:
USERNAME
USername
username
Username

Still can't Merge accounts: USername to Username.

Only way to fix is delete all USernames from database and leave orphaned records!

Tcaton-nm (talk)18:01, 24 November 2014

Renamed in Database: USername to U1ername.
Merged: U1ername to Username, with success.

Can anyone tell me if this will either break anything or leave orphaned records?

Thanks.

Tcaton-nm (talk)18:11, 24 November 2014

I expect that the UserMerge extension works with the user ID, not with the user name. That means: It should work, but what you do is not what is supposed to be done. I would double check, if usernames are displaying correctly after that, e.g. in the page histories.

As for your usernames: MediaWiki username must start with a capital letter. That means that your user "username" is invalid. You should not have users with first letter in lowercase. As for the other variations, I think they might be OK. There is a maintenance script, which can check users for validity. You might want to run it to see...

Anyway, I think that the problem originates in the way you are doing the login/registration of user accounts for MediaWiki. MediaWiki should not change any user name. So "USername" and "Username" are two different accounts, but whether you supply the one or the other should not cause problems.

88.130.94.7000:10, 25 November 2014
 
 
 
 
 

OAuth consumer request

Hello. I just created an OAuth consumer request, but I accidentally provided the wrong callback URL. I don't see any way to delete a request or modify this part of the request. What can I do?

Magog the Ogre (talk)02:42, 24 May 2015

Gitblit replication of gerrit has stopped.

Hi please see https://phabricator.wikimedia.org/T99990 about gitblit replication of gerrit not working. Please fix it.

86.135.252.20100:42, 24 May 2015

[NOT REALLY SOLVED] link color: "light red link" of article does not change

  • MediaWiki 1.24.2
  • PHP 5.3.28-nmm2 (apache2handler)
  • MySQL 5.5.43-nmm1-log

Hello, I created two articles but the link color is still: "light red link" (link to a page that does not exist, but you have visited). I logged in as admin, as normal user, restarted Firefox... But the link is still "light red" and context menu says "site does not exist". By clicking the link it direct to the site. That's not the problem. What could be the reason? Wikisite is behind htaccess. Thank you.

EDIT: Problem disappeared.

Metathom (talk)23:37, 20 May 2015

Another of the "job queue not working as expected" problems. Seems like in current releases this is happening increasingly often; it especially often can be perceived in wikis, which have a very low number of page hits.

88.130.78.9723:33, 21 May 2015

I've also seen lots of threads like this one lately and I'll probably create a ticket for investigation. Manual:Job queue#HTML cache invalidation advertises that By default, jobs are added when more than 500 pages need to be invalidated, but this doesn't seem to be true, since they're supposed to create a new page that's linked from a couple of places at most.

Still, even disabling the automatic run of the job queue, I was unable to reproduce the issue.

Ciencia Al Poder (talk)09:50, 22 May 2015

Actually, I was able to reproduce this if $wgJobRunRate is set to 0. In fact, it's possible that this also happens for $wgJobRunRate values less than 1 (the default is 1), or if there are more pending jobs, in which case it may take a while until older jobs are cleared.

I've updated the documentation, because the wording suggested that only pages with more than 500 links will use the job queue and otherwise the update would be done on the same request, but that's not true.

Ciencia Al Poder (talk)12:47, 23 May 2015
 
 
 

Please help me guys SMW error when I'm editing the page i see this error

When I installed semantic media wiki there's always this error when I'm editing the page :

Database error A database query error has occurred. This may indicate a bug in the software.

But without Semantic media wiki it's working perfectly ! Any help will be helpful

Lola9009 (talk)09:40, 23 May 2015

German Mediawiki 1.24.2 default namespace in recent changes

I would like to set up a general default namespace in recent changes. Right now it is set to "all". Any ideas?

[[User:Bmrberlin| Bernd M.]] (talk)05:37, 23 May 2015

No matter what I do, I can't get Infoboxes to work on my wiki.

I use a Macbook Pro and downloaded the Bitnami MediaWiki Stack 1.24.2-1. It seems that everything I've read about getting templates to work on a wiki are instructions for people using MediaWiki in a different way. Are there specific instructions for people like me, who are using the Bitnami MediaWiki Stack? Please, if anyone can help me in getting infoboxes to work on my wiki, I would really appreciate it! And if possible, please be detailed in the instructions as well, as a lot of MediaWiki instructions tend to confuse me a bit.

RoriTudor (talk)10:15, 21 May 2015

Well, in order for anyone to help you should provide some details so we know what does not work actually means - it can vary from "the entire wiki does not work" to "the infobox is not correctly aligned". A screenshot (you can upload it to http://snag.gy/) about how does it look could help, and also steps of what have you done so far.

Ciencia Al Poder (talk)09:32, 22 May 2015
 

Hi Rori,

Did you install the Parser Functions? Without them no infobox will work.

[[User:Bmrberlin| Bernd M.]] (talk)05:29, 23 May 2015
 

Remove the discussion tab from the wiki.

I want to remove the discussion/talk tab from my wiki so bots don't find it ruining my domain authority.

98.102.180.21418:50, 22 May 2015

There are these few lines of CSS code, which you put on the wiki page MediaWiki:Common.css and they will no longer be displayed. I don't know them out of my head right now; basically I would google that. Is it really that this information is not findable?

88.130.96.1023:28, 22 May 2015
 

[Solved] Disable Cookies for Guests

Hi!

how can I disable Cookies for guests? Mediawiki should use Cookies only for logged in users.

  • Reading→No Cookies
  • Successful Login→Set Cookie

I think $wgDisableCookieCheck is too much. It will disable all logins, true?

Mediawiki-Version: 1.24.2

93.134.207.702:50, 22 May 2015

MediaWiki, on server-side, doesn't send cookies to anons by default, unless they hit the login button, which stores a cookie to record the login token and to check if cookies are enabled. Could you please describe the cookies you're getting?

Ciencia Al Poder (talk)09:37, 22 May 2015

Oh, that's true. Wikipedia always create some Cookies, thought it's normal in Mediawiki. :) I always looked the Cookies after logged out from my page or visited the Login and found a Sessioncookie. :( Thanks!

93.134.104.22017:20, 22 May 2015
 
 

Can't solve this error in Parser.php

Hi friends.

MediaWiki 1.24.2 PHP 5.6.8 (apache2handler) MySQL 5.6.24

I have a local Wiki at my company which I'm the head of the project. We're very close to get the project done, but some categories have a lot of articles and content. I really don't know why this is happening (I googled a lot before I come here). The error I get in some categories is:

Fatal error: Call to a member function getMaxIncludeSize() on null in C:\xampp\htdocs\wiki-hdti\includes\parser\Parser.php on line 3266

I already tried to set the $wgMaxArticleSize to various values, changed the max POST size in php.ini too, I really don't know what to do more and this the only one issue that are affecting the project.

Please, I ask humbly, if someone could help me It'll be great!

Thanks until now!

200.142.207.24413:30, 20 May 2015

Cross-post on Stackoverflow:

http://stackoverflow.com/questions/30351810/cant-solve-this-error-in-parser-php-of-mediawiki

This is the function call, which is failing in your case:

 public function replaceVariables( $text, $frame = false, $argsOnly = false ) {
​    # Is there any text? Also, Prevent too big inclusions!
​    if ( strlen( $text ) < 1 || strlen( $text ) > $this->mOptions->getMaxIncludeSize() ) { # line 3266
​      return $text;
​ }
88.130.107.9015:24, 20 May 2015

Hi friend.

Yes, it was me on StackOverFlow.

I THINK I got it fixed with $wgMaxArticleSize and removing pages categories which had the error and creating it again. But, I don't know if this fix is the correct or may it come back again.

If someone had something like this and would like to share the experience, it'd help.

Thanks!

200.142.207.24417:00, 20 May 2015

Happened again. Maybe all pages will need to remove and create again.

200.142.207.24418:19, 20 May 2015

How do you get pages with more than 2048 kilobytes? (the default for $wgMaxArticleSize)

You should probably split them into separate articles.

Ciencia Al Poder (talk)19:47, 20 May 2015

Hi,

I'm at another computer right now.

Actually it was a mistake, I think my pages don't have more then 2048kb. I was looking better and I think this problem could be from Comments extension or from header and footer extension.

It's very strange, because it happened again right after an user inserting a new comment in an article.

200.169.48.922:14, 20 May 2015
 
 
 
 
 

Exception from line 1871 of /w/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'npose_n.png.'

/Special:Upload Exception from line 1871 of /w/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'npose_n.png.'

^I get that error when attempting to upload ANY file. Nothing I do is able to prevent this from happening.

1. What's a lock? 2. Why would this even happen? 3. What can I do to fix it?

It's very, very weird.

184.155.109.18319:05, 18 October 2014

MediaWiki tries to acquire an exclusive (or shared) lock to a file, which means, that MediaWiki wants to prevent any access to a given file, until the actions of MW are finished. Read more about file locking.

To fix this problem, we must find out, what the problem is :) Is your webserver allowed to read/write the directory, where your images will be saved?

Florianschmidtwelzow (talk)21:48, 18 October 2014

This error happens when a file should get locked for an update, but it can't be locked. A lock is used to prevent other changes to the file/the associated database row. The code, which now is failing got introduced to fix https://bugzilla.wikimedia.org/show_bug.cgi?id=54736.

Questions are:

  • Which version of MediaWiki are you using?
  • You say that you get this error for every file. Does it then always contain the filename 'npose_n.png.' or does the filename change?
  • Am I right thinking that the filename (in your example 'npose_n.png.') misses the first few letters?
88.130.92.10922:09, 18 October 2014

[2640d8bf] /index.php?title=%C3%96zel:Y%C3%BCkle Exception from line 1871 of /usr/share/nginx/html/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Yazanadam.jpg.'

Backtrace:

  1. 0 /usr/share/nginx/html/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
  2. 1 /usr/share/nginx/html/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
  3. 2 /usr/share/nginx/html/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
  4. 3 /usr/share/nginx/html/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload()
  5. 4 /usr/share/nginx/html/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
  6. 5 /usr/share/nginx/html/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
  7. 6 /usr/share/nginx/html/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
  8. 7 /usr/share/nginx/html/includes/MediaWiki.php(584): MediaWiki->performRequest()
  9. 8 /usr/share/nginx/html/includes/MediaWiki.php(435): MediaWiki->main()
  10. 9 /usr/share/nginx/html/index.php(46): MediaWiki->run()
  11. 10 {main}

Version: MediaWiki 1.24.0

İncelemeelemani (talk)23:35, 5 December 2014
 

This error is for every file, wiki 1.24. Permissions 777 for all already ...

87.229.231.23414:06, 14 April 2015

I first changed the permission on the wiki folder itself to allow "others" read and write permissions, this didn't propagate to the subfolders, so I changed permissions for others on all the subfolders (and made sure to propagate the change - Ubuntu makes it easy). After that I was able to upload files without any problems.

89.242.167.21216:28, 6 May 2015

Note that giving write permissions to 'others' (which the last 7 means) is dangerous. You should make sure that everything is no more than 775. If that doesn't work, then most likely the owner or group of some of the files is incorrect.

TheDJ (Not WMF) (talkcontribs)08:20, 7 May 2015
 
 
 
 
 

hey guys i just installed mediawiki but when added SMW extension it wont start and show lots of errors

Warning: Class 'SMW\Store' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 59

Warning: Class 'SMW\MediaWiki\Jobs\UpdateJob' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 60

Warning: Class 'SMW\MediaWiki\Jobs\RefreshJob' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 61

Warning: Class 'SMW\SemanticData' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 62

Warning: Class 'SMW\DIWikiPage' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 63

Warning: Class 'SMW\DIProperty' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 64

Warning: Class 'SMW\Serializers\QueryResultSerializer' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 65

Warning: Class 'SMW\DataValueFactory' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 66

Warning: Class 'SMW\DataItemException' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 67

Warning: Class 'SMW\SQLStore\TableDefinition' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 68

Warning: Class 'SMW\DIConcept' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 69

Warning: Class 'SMW\TableResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 70

Warning: Class 'SMW\FileExportPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 73

Warning: Class 'SMW\ResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 74

Warning: Class 'SMW\AggregatablePrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 75

Warning: Class 'SMW\CategoryResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 76

Warning: Class 'SMW\DsvResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 77

Warning: Class 'SMW\EmbeddedResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 78

Warning: Class 'SMW\RdfResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 79

Warning: Class 'SMW\ListResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 80

Warning: Class 'SMW\QueryResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 81

Warning: Class 'SMW\RawResultPrinter' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 82

Warning: Class 'SMW\SPARQLStore\SPARQLStore' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 85

Warning: Class 'SMW\SPARQLStore\Connector\FourstoreHttpRepositoryConnector' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 86

Warning: Class 'SMW\SPARQLStore\Connector\VirtuosoHttpRepositoryConnector' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 87

Warning: Class 'SMW\SPARQLStore\Connector\GenericHttpRepositoryConnector' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 88

Warning: Class 'SMWSQLStore3' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 91

Warning: Class 'SMW\Query\Language\Description' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 92

Warning: Class 'SMW\Query\Language\ThingDescription' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 93

Warning: Class 'SMW\Query\Language\ClassDescription' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 94

Warning: Class 'SMW\Query\Language\ConceptDescription' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 95

Warning: Class 'SMW\Query\Language\NamespaceDescription' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 96

Warning: Class 'SMW\Query\Language\ValueDescription' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 97

Warning: Class 'SMW\Query\Language\Conjunction' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 98

Warning: Class 'SMW\Query\Language\Disjunction' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 99

Warning: Class 'SMW\Query\Language\SomeProperty' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 100

Warning: Class 'SMW\Query\PrintRequest' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 101

Warning: Class 'SMW\MediaWiki\Search\Search' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 102

Warning: Class 'SMW\SQLStore\ListLookup' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 106

Warning: Class 'SMW\SQLStore\ListLookup' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 107

Warning: Class 'SMW\Exporter\Element\ExpElement' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 109

Warning: Class 'SMW\Exporter\Element\ExpResource' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 110

Warning: Class 'SMW\Exporter\Element\ExpNsResource' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 111

Warning: Class 'SMW\Exporter\Element\ExpLiteral' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 112

Warning: Class 'SMW\DataValues\ImportValue' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 113

Warning: Class 'SMW\SQLStore\QueryEngine\QueryEngine' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 114

Fatal error: Class 'SMW\ApplicationFactory' not found in /var/www/sayakbaev/data/www/kasa.kg/wiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 151

Sokas (talk)06:51, 22 May 2015

See this thread. Apparently they recommend using composer.

Ciencia Al Poder (talk)09:46, 22 May 2015
 

Remove "cont." from subcategoies

By default it looks like MediaWiki is grouping my subcategories alphabetically and placing them in separate columns once there are more than 3 within one letter: diyautowiki[dot]com/wiki/Category:Audi

How can I get these to all stay in one column?

Thanks for your help.

50.170.57.2403:23, 22 May 2015

[RESOLVED] media wiki1.17.0 install gets stuck at create tables

Edited by another user.
Last edit: 21:00, 21 May 2015

Environment details:-

       * MediaWiki 1.17.0
       * PHP 5.3.5
       * Database MySQL 5.5

URL used:-http://localhost/orwfmt/mw-config/index.php?page=Install

When i click continue to install media wiki, it's getting stuck at create tables. Also all the tables are not getting created. Please find below screenshot.

202.67.5.25010:39, 14 September 2011

(This topic is from 2011 and only pops up here, because it just recently got edited. Setting it to resolved.)

88.130.78.9721:23, 21 May 2015
 

only the page "Specialpages:Categories" is just white/blank

hello everyone

for some reason only the page "Specialpages:Categories" is just white/blank

and i cant seem to figure out why

help please

thanks in advance

Asafm14567 (talk)15:59, 21 May 2015

A blank page usually points to a PHP error; see the infos on blank page on how you get more information about, which error is happening in your case!

88.130.78.9717:22, 21 May 2015
 
First page
First page
Previous page
Previous page
Last page
Last page