Project:Support desk/Sections/Images

__NEWSECTIONLINK__

= Image Support =

Error on uploading PNGs

 * MediaWiki: 1.11.1
 * PHP: 5.2.6 (cgi)
 * MySQL: 5.0.81-community
 * URL: MedRevise.co.uk

Whenever anyone tries to upload a PNG, we get this error: "The file is corrupt or has an incorrect extension. Please check the file and upload again."

Any ideas?

—MedRevise 17:19, 9 December 2009 (UTC) Still waiting for a hand... MedRevise

Anyone? MedRevise 22:58, 12 January 2010 (UTC)

Image pages don't display
I can upload pictures to my wiki, and they display properly when an article on my wiki links to them, but when I click on the image to go to the image's page, I get the following message:
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.11
 * MySQL version: 5.1.41
 * URL: it's a private wiki, so I don't think that would be helpful

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "wfGetImageTags". MySQL returned error "1146: Table 'DataBase.imagetags' doesn't exist (localhost)".

How I fix this problem? —Cheeselouise 07:45, 29 December 2009 (UTC)

(RESOLVED) Wrong edit tab links at image pages from shared images ($wgForeignFileRepos)

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.4-2ubuntu5.7 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.4

I set up a wiki family with a commons wiki to share images between wikis. Everything works fine - the images are shown on any other wiki (e.g. newswiki) and when you click the image you get a hint that the image is from a shared repository.

Now when you click the sections edit links you are redirected to the original commons wiki image page (as it should be): Correct - (edit section link): http://commons.mywiki.de/w/index.php?title=File:Test.jpg&action=edit&section=1

BUT when you use the edit/create tab at the top of the page you won't be redirected to the commons wiki but stay in the newswiki and cannot edit the original image description (but create a new description page in the newswiki, which is completely wrong):

Error - (edit tab link): http://newswiki.mywiki.de/w/index.php?title=Datei:Test.jpg&action=edit

So why are the page tab links not rendered correctly, while the section edit links are? Is there any help?

Here is my setup: if( $wgDBname != 'commons' ) { $wgForeignFileRepos[] = array( 		'class' => 'ForeignDBRepo',		'name' => 'shared',		'directory' => '',		'url' => 'http://commons.mywiki.de/w/images',		'hashLevels' => 2,		'thumbScriptUrl' => false,		'transformVia404' => false,		'dbType' => 'mysql',		'dbServer' => 'localhost',		'dbUser' => 'wikiuser',		'dbPassword' => '***',		'dbName' => 'commons',		'dbFlags' => ($wgDebugDumpSql ? DBO_DEBUG : 0) | DBO_DEFAULT, // i.e. '16'		'tablePrefix' => '',		'hasSharedCache' => true,		'descBaseUrl' => 'http://commons.mywiki.de/wiki/Image:',		'scriptDirUrl' => 'http://commons.mywiki.de/w',		'fetchDescription' => true,		'wiki' => 'commons',	); $wgDefaultUserOptions['watchcreations'] = 1; }
 * 1) New commons settings

Thank you in advance,

—Svantje 17:12, 6 January 2010 (UTC)
 * This is the expected behaviour, for example on Wikipedia: w:File:Yuan chinese gun.jpg. Users of local wikis are supposed to be able to create and edit their local description pages for files from shared repos. For example, to categorise images. Because those sections you mentioned are from commons, their edit links correctly point to the right wiki. Max Semenik 17:33, 6 January 2010 (UTC)
 * Thank you Max. It seems, that the behaviour is different for the german wikipedia: de:File:Ziege.jpg. The philosophy seems to be, that all image descriptions belong to the commons page. But categorising is a good point. Anyway, do you have a hint how to change the tab links to immitate the de-wikipedia behaviour? --Svantje 11:14, 7 January 2010 (UTC)
 * They use a JS hack, see de:MediaWiki:Common.js, starting from "Lokaler Bilddiskussionsseitenlink eines Commonsbildes verweist nach Commons". Max Semenik 12:41, 7 January 2010 (UTC)
 * You're great. Thank you!--Svantje 15:48, 7 January 2010 (UTC)

Images from Wikimedia Commons sometimes show, sometimes not
This error apparently comes and goes like the wind. Even at the very same time some images show and some images don't. I cannot see any logical pattern in this. Can somebody help? —87.104.58.186 08:28, 13 January 2010 (UTC)
 * MediaWiki version: 1.15.1
 * PHP version:
 * MySQL version:
 * URL: http://wikilinksworld.info

Problems showing images on my new wiki
Pictures from Wikimedia Commons sometimes show, sometimes not. It is completely unpredictable. Very unsatisfacory indeed. Can somebody help? —87.104.58.186 08:49, 13 January 2010 (UTC)
 * MediaWiki version: 1.15.1
 * PHP version:
 * MySQL version:
 * URL: http://wikilinksworld.info


 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL: http://wikilinksworld.info

Some of the images (from Wikimedia Commons) show, some don't. The pattern seems to be completely illogical and unpredictable. Am I really the only one to whom this has happened. What can the reason be. And how (if at all) can it be solved?

—87.54.18.7 11:04, 13 January 2010 (UTC)

Wikimedia Commons Image doesn't show in my wiki

 * MediaWiki version: 1.16 Alpha
 * PHP version: 5.2.12
 * MySQL version: 5.1.41-community
 * URL: http://115.20.149.56/Wiki

I changed source on this way in localsettings.php. but It's doesn't show image files from it.

—Badbread 14:28, 15 January 2010 (UTC)

Memory error

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.3
 * MySQL version: 5.0.45
 * URL: Private

An uploaded image (2.16 MB) connot be displayed. It causes an Error

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 19736 bytes) in C:\Web-Server-apache\xampplite\htdocs\RE-WO-WIKIENTW\includes\media\Bitmap.php on line 172

sometimes in Line 173! Since im not an expert, I haven't got a clue what I'm supposed to do. Or what that means anyway.

Please help! —93.122.64.71 15:24, 20 January 2010 (UTC)


 * You will need to raise PHP's memory limit. The memory limit is set in php.ini (as memory_limit) and possibly overridden in LocalSettings.php with ini_set('memory_limit', '20M'); Platonides 15:31, 20 January 2010 (UTC)

Pictures won't show after migration

 * MediaWiki version: 1.13.0
 * PHP version: 5
 * MySQL version: ?
 * URL: http://www.mycrazytaxi.com/Saipan/mediawiki-1.13.0/index.php?title=Hauptseite

Hello, I have a functioning wiki (http://www.uss-saipan.de/mediawiki-1.13.0/index.php5/Hauptseite). I wanted to migrate to another server, so I set up a database there, installed the same wiki-version and imported the text-data from the old one. Went well, everything is there. But not the pictures. In the old wiki I have them on the same server and only wrote "http://...." and the picture showed without problems. Now I have the wiki on another server and the pics on the old one, and it won't show anything, even if its the complete link. I tried to put one of the pictures up to the new server, same result. I set it directly in the images folder of the wiki - same. I used every possible combination with [[ and without, complete and not complete URL. No picture. Don't understand this, because it worked in the old wiki (and still works). I will migrate with my whole site to the new server, but until now, it seems, this does not solve the problem. Please help, sat for hours on this now.... thanks

—134.100.71.6 09:32, 27 January 2010 (UTC)