Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

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".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文

How to sync content between two Mediawiki installations?

3
79.110.95.2 (talkcontribs)

Is there a reliable way to sync (copy and merge) the content of two different Mediawiki installations?

I have an internal installation where we work on most the time, but some external contractors won't get access to the internal installation, so we are thinking about getting them their own installation and mirror parts of the content to that installation. Problem is, doing this manually will be a pain, so I'm looking for a way to automate this procedure.

Sync should be in both directions, as both parties can create and update content.

I hoped there would be an extension for that, but couldn't find one yet.

213.47.13.4 (talkcontribs)
Reply to "How to sync content between two Mediawiki installations?"

merging a wikimedia account, and a donor account

1
Yvonus (talkcontribs)

Good afternoon.

I've been donating from time to time to Wikimedia Foundation, thus giving one email address, with which I'm contacted for further donations.

I thought it meant I did have a plain Wikipedia account, which does not seem the case.

Is there a point of linking both, simply to avoid double-time "please donate" notifications ?

Thanks

Reply to "merging a wikimedia account, and a donor account"
38.104.169.18 (talkcontribs)

Currently in a process of moving our mediawiki site to sharepoint, What will be the best way to do this ?

Reply to "move mediawiki site to sharepoint"

Internal error after updating to MW 1.33

1
Summary by Hessentotal

Fixed.

Hessentotal (talkcontribs)

Patroller Extension not work at all.

4
Adrianevs (talkcontribs)

Hello Everyone, I just install Patroller Extension but the special page do not work.

Error:

[d44cb3b3a9530efc09215f79] /index.php/Special:Patroller Wikimedia\Rdbms\DBUnexpectedError from line 2385 of /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/libs/rdbms/database/Database.php: Invalid non-numeric limit passed to limitResult()

Backtrace:

#0 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/libs/rdbms/database/Database.php(1321): Wikimedia\Rdbms\Database->limitResult(string, string, boolean)

#1 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/libs/rdbms/database/Database.php(1267): Wikimedia\Rdbms\Database->selectSQLText(array, string, array, string, array, array)

#2 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/extensions/Patroller/SpecialPatroller.php(253): Wikimedia\Rdbms\Database->select(array, string, array, string, array, array)

#3 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/extensions/Patroller/SpecialPatroller.php(97): SpecialPatroller->fetchChange(User)

#4 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/specialpage/SpecialPage.php(522): SpecialPatroller->execute(NULL)

#5 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

#6 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)

#7 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/MediaWiki.php(862): MediaWiki->performRequest()

#8 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/MediaWiki.php(523): MediaWiki->main()

#9 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/index.php(43): MediaWiki->run()

#10 {main}

24.217.122.132 (talkcontribs)

Will this ever be fixed?

Postprefix (talkcontribs)

I am also having this problem.

AKlapper (WMF) (talkcontribs)
Reply to "Patroller Extension not work at all."
Johnywhy (talkcontribs)

Extension:Patroller gives error, on browsing to Special:Patroller .

Reported here and here.

MW v1.30

[WsAfET-@jcqxiKxPT0bRjQAAAUk] /index.php/Special:Patroller Wikimedia\Rdbms\DBUnexpectedError from line 2479 of /home/my_username/public_html/includes/libs/rdbms/database/Database.php: Invalid non-numeric limit passed to limitResult()
Backtrace:

#0 /home/my_username/public_html/includes/libs/rdbms/database/Database.php(1395): Wikimedia\Rdbms\Database->limitResult(string, string, boolean)
#1 /home/my_username/public_html/includes/libs/rdbms/database/Database.php(1341): Wikimedia\Rdbms\Database->selectSQLText(array, string, string, string, array, array)
#2 /home/my_username/public_html/extensions/Patroller/SpecialPatroller.php(246): Wikimedia\Rdbms\Database->select(array, string, array, string, array, array)
#3 /home/my_username/public_html/extensions/Patroller/SpecialPatroller.php(97): SpecialPatroller->fetchChange(User)
#4 /home/my_username/public_html/includes/specialpage/SpecialPage.php(522): SpecialPatroller->execute(NULL)
#5 /home/my_username/public_html/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
#6 /home/my_username/public_html/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#7 /home/my_username/public_html/includes/MediaWiki.php(851): MediaWiki->performRequest()
#8 /home/my_username/public_html/includes/MediaWiki.php(523): MediaWiki->main()
#9 /home/my_username/public_html/index.php(43): MediaWiki->run()
#10 {main}

PS, i noticed my username appears in this error message, visible in this error message (obscured above). Might that be a security vulnerability?

thx

This post was hidden by AhmadF.Cheema (history)
Reezanahamed (talkcontribs)

Same problem, I do have same error, Try using Extension:PageTriage. I think it is better than Patroller

Bawolff (talkcontribs)

>PS, i noticed my username appears in this error message, visible in this error message (obscured above). Might that be a security vulnerability?

That's why we generally reccomend people don't enable detailed error reports on production wikis (That said, its not really a vulnerability per se)

Johnywhy (talkcontribs)

not a production site yet :)

it's my ftp username, so that seems a bit unsafe.

AKlapper (WMF) (talkcontribs)
Reply to "Bug? Patroller Error"
2804:431:D700:E92C:8484:87D8:BB78:DB41 (talkcontribs)

Eu instalei centralauth.Mas fala:erro no banco de dados.Isto pode indicar um bug no software.o que será?

Aí está o que está acontecendo:


[6bf0f30d98c341e127caafc0] /w/index.php/Especial:Privil%C3%A9gios_globais_de_grupo Wikimedia\Rdbms\DBQueryError from line 1587 of C:\wamp\wiki\w\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT distinct ggp_group FROM global_group_permissions

Function: CentralAuthUser::availableGlobalGroups

Error: 26 file is not a database

Backtrace:

#0 C:\wamp\wiki\w\includes\libs\rdbms\database\Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 C:\wamp\wiki\w\includes\libs\rdbms\database\Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 C:\wamp\wiki\w\includes\libs\rdbms\database\Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)

#3 C:\wamp\wiki\w\includes\libs\rdbms\database\DBConnRef.php(53): Wikimedia\Rdbms\Database->select(string, string, array, string)

#4 C:\wamp\wiki\w\includes\libs\rdbms\database\DBConnRef.php(297): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#5 C:\wamp\wiki\w\extensions\CentralAuth\includes\CentralAuthUser.php(2898): Wikimedia\Rdbms\DBConnRef->select(string, string, array, string)

#6 C:\wamp\wiki\w\extensions\CentralAuth\includes\specials\SpecialGlobalGroupPermissions.php(78): CentralAuthUser::availableGlobalGroups()

#7 C:\wamp\wiki\w\extensions\CentralAuth\includes\specials\SpecialGlobalGroupPermissions.php(71): SpecialGlobalGroupPermissions->buildMainView()

#8 C:\wamp\wiki\w\includes\specialpage\SpecialPage.php(569): SpecialGlobalGroupPermissions->execute(NULL)

#9 C:\wamp\wiki\w\includes\specialpage\SpecialPageFactory.php(558): SpecialPage->run(NULL)

#10 C:\wamp\wiki\w\includes\MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#11 C:\wamp\wiki\w\includes\MediaWiki.php(865): MediaWiki->performRequest()

#12 C:\wamp\wiki\w\includes\MediaWiki.php(515): MediaWiki->main()

#13 C:\wamp\wiki\w\index.php(42): MediaWiki->run()

#14 {main}


~~~~

Reply to "Error"
Tmhoskins (talkcontribs)

[24dbcafdfdd1b46c128f4a7a] /NRTwiki/Main_Page Wikimedia\Rdbms\DBQueryError from line 1587 of /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = '1' LIMIT 1

Function: User::loadFromDatabase

Error: 1146 Table 'wikidb.actor' doesn't exist (localhost)

Backtrace:

#0 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)

#3 /var/www/html/SNRTwiki/includes/libs/rdbms/database/Database.php(1875): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#4 /var/www/html/SNRTwiki/includes/user/User.php(1442): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)

#5 /var/www/html/SNRTwiki/includes/user/User.php(531): User->loadFromDatabase(integer)

#6 /var/www/html/SNRTwiki/includes/libs/objectcache/WANObjectCache.php(1253): User->{closure}(boolean, integer, array, NULL)

#7 /var/www/html/SNRTwiki/includes/libs/objectcache/WANObjectCache.php(1414): WANObjectCache->{closure}(boolean, integer, array, NULL)

#8 /var/www/html/SNRTwiki/includes/libs/objectcache/WANObjectCache.php(1258): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array, NULL)

#9 /var/www/html/SNRTwiki/includes/user/User.php(555): WANObjectCache->getWithSetCallback(string, integer, Closure, array)

#10 /var/www/html/SNRTwiki/includes/user/User.php(474): User->loadFromCache()

#11 /var/www/html/SNRTwiki/includes/user/User.php(411): User->loadFromId(integer)

#12 /var/www/html/SNRTwiki/includes/session/UserInfo.php(89): User->load()

#13 /var/www/html/SNRTwiki/includes/session/CookieSessionProvider.php(122): MediaWiki\Session\UserInfo::newFromId(string)

#14 /var/www/html/SNRTwiki/includes/session/SessionManager.php(466): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)

#15 /var/www/html/SNRTwiki/includes/session/SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)

#16 /var/www/html/SNRTwiki/includes/WebRequest.php(748): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#17 /var/www/html/SNRTwiki/includes/session/SessionManager.php(130): WebRequest->getSession()

#18 /var/www/html/SNRTwiki/includes/Setup.php(816): MediaWiki\Session\SessionManager::getGlobalSession()

#19 /var/www/html/SNRTwiki/includes/WebStart.php(77): require_once(string)

#20 /var/www/html/SNRTwiki/index.php(39): require(string)

#21 {main}

I am trying to dump the database from an older version 1.26 into my new version 1.33. This is the error I get when I try to access the web interface of the new version 1.33. Sounds like I need a different LDAP authentication extension, but that still doesn't solve the database issue, which is why i am getting this error. Seems like dumping the DB from 1.26 into 1.33 isn't one to one?

Reply to "Database issue after upgrade"
Tofiq Kərimli (talkcontribs)

Commons files do not appear on my wiki . Previously displayed, but after upgrading the Server Commons Files are not displayed. What can i do? Thank you in advance.

Reply to "Image from Commons not displaying"

"Error creating thumbnail: Error code: 2"

16
129.65.56.96 (talkcontribs)

G'day,

I recently moved my MediaWiki from one server to another. Everything seems to work well except thumbnail generation: I receive "Error creating thumbnail: Error code: 2"

I have reviewed and tried the various documented online solutions without success. My LocalSettings.php is

$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

I can confirm that ImageMagick is installed (version 6.7.7-10) and the convert command path works when I try it from the Mediawiki directory prompt. . MediaWiki is looking into the right place for images (full images upload and display fine). I temporarily changed permissions to 777 on /images and on /images/temp just to see if that solved a problem. It didn't. I tried specifying

$wgMaxShellMemory = 512 000; 
$wgMaxShellFileSize = unlimited;

But that didn't solve the problem. I tried specifying the /images/temp directory with $wgTmpDirectory = "$IP/images/temp"; but that didn't solve the problem either. For kicks I tried using /etc/alternatives/convert but that didn't work either. I logged out of the wiki after each change and 'hard' refreshed my browser just to make sure that I was looking at the new settings effects. My MediaWiki is in /var/www/html/wikiname. It is version 1.23.2.

Convinced that imagemagick isn't being called or exiting properly I followed the links and got:

me@star:/usr/bin$ ls -l /usr/bin/convert
lrwxrwxrwx 1 root root 25 Nov  3 17:39 /usr/bin/convert -> /etc/alternatives/convert
me@star:/usr/bin$ ls -l /etc/alternatives/convert
lrwxrwxrwx 1 root root 20 Nov  3 17:39 /etc/alternatives/convert -> /usr/bin/convert.im6
me@star:/usr/bin$ ls -l /usr/bin/convert.im6
-rwxr-xr-x 1 root root 6320 Mar  6  2014 /usr/bin/convert.im6
me@star:/usr/bin$ dpkg -S /usr/bin/convert.im6
imagemagick: /usr/bin/convert.im6

I tried changing the LocalSettings command path to /usr/bin/convert/im6 but it didn't help. I'm out of troubleshooting ideas. Any suggestions?

Ciencia Al Poder (talkcontribs)

You say you have this:

$wgMaxShellMemory = 512 000; 
$wgMaxShellFileSize = unlimited;

But Manual:$wgMaxShellFileSize doesn't mention "unlimited" as a valid value, and also I think "512 000" is not a valid number in PHP. It should generate a parse error. Could you please verify that?

129.65.56.96 (talkcontribs)

G'day, I was following (http://www.mediawiki.org/wiki/Manual_talk:Image_administration) suggestion and similar posts elsewhere reporting that this solved their similar problem even when no memory limitation was expected. I did not receive a parser error in MediWiki responses, looking in ~/apache2/error I don't see one, but I also commented out this trial after it did not resolve the problem.

This, that and the other (talkcontribs)

The fact that you didn't get a parser error with that invalid code suggests that your LocalSettings.php file is being ignored altogether...

129.65.56.96 (talkcontribs)

Thanks, but not true. Chances are good that I'm not looking in the right place for a parser error that doesn't report in the MediaWiki. LocalSettings.php is the effective configuration file because if I set #wgEnableUploads = false; then my MediaWiki doesn't allow uploads. I've sequentially tried these fixes, but either it's a 'more than one variable problem' or something else is causing an abnormal exit from ImageMagick. From the active LocalSettings.php

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
#$wgSVGConverterPath = "/usr/bin";
#$wgImageMagickTempDir = "IP$/images/temp";
#$wgMaxShellMemory = 300000;
#$wgMaxShellFileSize = 300000;
#$wgMaxShellTime = 220;
#$wgTmpDirectory = "/var/www/html/wikiname/images/temp";
#$wgUseImageReseize = true;
#$wgGenerateThumbnailOnParse = true;
##$wgSVGConverterPath = "/usr/bin";
#$wgTmpDirectory = "$IP/images/temp";
129.65.56.96 (talkcontribs)

I should have mentioned:

  • MediaWiki 1.23.2
  • PHP 5.5.9-1ubuntu4.5 (apache2handler)
  • MySQL 5.5.40-0ubuntu0.14.04.1
This, that and the other (talkcontribs)

From reading the MW source code (includes/media/Bitmap.php, line 180 or thereabouts, if you're interested), it seems that your invocation of ImageMagick is returning the error code "2".

You could try enabling the debug log: Manual:How_to_debug#Setting_up_a_debug_log_file

The log will contain lines like "transformImageMagick: running ImageMagick: " followed by the exact command line being issued by MediaWiki. You should try running this command manually (at a shell on your server) and see what happens.

In the debug log you may also see lines containing "thumbnail failed on", which may point you closer to the source of the problem.

129.65.56.96 (talkcontribs)

Thank you, that was a helpful suggestion. I made the log file and this is the relevant portion of the log:

File::transform: Doing stat for mwstore://local-backend/local-thumb/9/93/How_Did_you_Hear_About_2014.png/120px-How_Did_you_Hear_About_2014.png FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/9/93/How_Did_you_Hear_About_2014.png/120px-How_Did_you_Hear_About_2014.png does not exist. BitmapHandler::doTransform: creating 120x68 thumbnail at /tmp/transform_79944211ec2f-1.png using scaler im BitmapHandler::doTransform: called wfMkdirParents(/tmp) BitmapHandler::transformImageMagick: running ImageMagick: '/usr/bin/convert' '-quality' '95' '-background' 'white' '/var/www/html/wikiname/images/9/93/How_Did_you_Hear_About_2014.png' '-thumbnail' '120x68!' '-set' 'comment' 'File source: http://intentionallyremoved/wikiname//index.php/File:How_Did_you_Hear_About_2014.png' '-depth' '8' '-rotate' '-0' '/tmp/transform_79944211ec2f-1.png' wfShellExec: /bin/bash '/var/www/html/wikiname/includes/limit.sh' 'OMP_NUM_THREADS='\''1'\'' '\''/usr/bin/convert'\'' '\''-quality'\'' '\''95'\'' '\''-background'\'' '\''white'\'' '\''/var/www/html/wikiname/images/9/93/How_Did_you_Hear_About_2014.png'\'' '\''-thumbnail'\'' '\''120x68!'\'' '\''-set'\'' '\''comment'\'' '\''File source: http:// intentionallyremoved /wikiname//index.php/File:How_Did_you_Hear_About_2014.png'\'' '\''-depth'\'' '\''8'\'' '\''-rotate'\'' '\''-0'\'' '\''/tmp/transform_79944211ec2f-1.png'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'[thumbnail] thumbnail failed on star: error 2 "" from "'/usr/bin/convert' '-quality' '95' '-background' 'white' '/var/www/html/wikiname/images/9/93/How_Did_you_Hear_About_2014.png' '-thumbnail' '120x68!' '-set' 'comment' 'File source: http:// intentionallyremoved /wikiname//index.php/File:How_Did_you_Hear_About_2014.png' '-depth' '8' '-rotate' '-0' '/tmp/transform_79944211ec2f-1.png'" [thumbnail] Removing bad 0-byte thumbnail "/tmp/transform_79944211ec2f-1.png". unlink() succeeded User::getBlockedStatus: checking... ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?aisha1base36=2d68fauliovh2w1k57br39hr2tsvmj7&aiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&list=allimages&format=json&action=query&redirects=true&uselang=en LoadBalancer::reuseConnection: this connection was not opened as a foreign connection [runJobs] Running 1 job(s) via '/wikiname//index.php?title=Special%3ARunJobs&tasks=jobs&maxjobs=1&sigexpiry=1416866196&signature=e8ce801451b14a3d680b953c8d298293fdffbfeb'

I then tried to run the command as you suggested:

me@place:/var/www/html/wikiname/images$ /usr/bin/convert -quality 95 /var/www/html/wikiname/images/9/93/How_Did_you_Hear_About_2014.png -thumbnail 120x68! /var/www/html/wikiname/images/9/93/bpthumb.png convert: unable to open image `/var/www/html/wikiname/images/9/93/bpthumb.png': Permission denied @ error/blob.c/OpenBlob/2638. convert: WriteBlob Failed `/var/www/html/wikiname/images/9/93/bpthumb.png' @ error/png.c/MagickPNGErrorHandler/1728. me@place:/var/www/html/wikiname/images$

Helpful! So I then changed the permsions of ~/images and all subdirectories so that then MediaWiki user www-data has drwxr-xr-x I was then able to execute the code without an error and thumbnail file was correctly built as I can see when I downloaded it via ftp, but the MediaWiki still give me the same error code 2 and doesn't' produce thumbnails for the images (in say new files special page). I simplified the MediaWiki command to:

/usr/bin/convert -quality 95 -background white /var/www/html/wikiname/images/9/93/How_Did_you_Hear_About_2014.png -thumbnail 120x68! -depth 8 -rotate -0 /var/www/html/wikiname/images/9/93/transform_bp4.png

And I got:

convert: unable to open image `/var/www/html/wikiname/images/9/93/transform_bp4.png': Permission denied @ error/blob.c/OpenBlob/2638. convert: WriteBlob Failed `/var/www/html/wikiname/images/9/93/transform_bp4.png' @ error/png.c/MagickPNGErrorHandler/1728.

So I suspect a permissions error, but I get the same error even when I set the ~/images/9 and ~/9/93 to drwxrwxr-x

This, that and the other (talkcontribs)

Note that the original ImageMagick command seems to be trying to write to your /tmp directory. Try checking the permissions on that directory! Or try running the original ImageMagick command exactly, complete with the output filename in /tmp, and see what messages you get.

129.65.56.96 (talkcontribs)

Thanks. the /tmp directory is drwxrwxrwt. I think it should be open. By setting permissions to 777 I was able to execute the imagemagick line manually. I'm beginning to suspect that the problem is ownership or group membership or something? Most of my directions in ~/wikiname are like

drwxr-xr-x 8 me UNIVERSITY\domain^users 4096 Nov 11 16:17 extensions

but images is

drwxr-xr-x 22 me www-data 4096 Nov 11 16:17 images

because I changed ownership as advised here (http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads). All the subdirectories under images are

drwxr-xr-x 16 me www-data 4096 Nov 24 12:54 9

Is this a problematic permissions configuration maybe?

This, that and the other (talkcontribs)

Unfortunately I know very little about Unix permissions, being a Windows person myself. At least in Windows you get a nice user interface to manage permissions! On Linux-based boxes it seems very confusing.

My only suggestion would be to carefully check what user the server or PHP processes are running under, and make sure they have the correct permissions. Or if you try setting the relevant directories' permissions to 777 (temporarily of course), and everything then works, it is evidently a problem of certain users not having the right permissions on the right directories. Keep checking the MediaWiki debug log for information.

Ciencia Al Poder (talkcontribs)

Confusing? unix permissions are very simple ;)

Try what TTO suggested (777 permissions), and if that also fails, the problem might be that you have some sort of security program blocking "unexpected" file creations. The most common problem is SELinux. Try disabling it.

Ciencia Al Poder (talkcontribs)

Note that every line starting with a "#" character in LocalSettings.php is ignored, since it's a PHP comment.

Note that $wgImageMagickTempDir = "IP$/images/temp"; should be $wgImageMagickTempDir = "$IP/images/temp"; instead. And the value of $wgSVGConverterPath doesn't make sense. Still, all of those configuration variables are commented out, so they aren't being used in your installation.

129.65.56.96 (talkcontribs)

Yes, thank you. I understand the commenting syntax. I was just illustrating my history of trying one fix at a time.

Sergezolotukhin (talkcontribs)

In my case, I had bash error '\r': command not found when running includes/limit.sh (this script is using for running convert). So it's easy to fix it with removing trailing \r character that causes this error:

sed -i 's/\r$//' includes/limit.sh

.digamma (talkcontribs)

Just upgraded to 1.33.0 and this (sed command on my includes/shell/limit.sh) ^^^ fixed it for me.


Reply to ""Error creating thumbnail: Error code: 2""