Project:Support desk/Sections/Images

__NEWSECTIONLINK__

= Image Support =

Corrupt files after uploading error

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67-standard-log
 * URL: http://www.masa.asn.au/masawiki/index.php/Main_Page

A week ago I attempted to upload a new copy of two images. At the time some error came up about the temp directory and I thought that I would come back to it later and work out what was going on. Well, I have come back to it and forgot to record what the error was. So I have been trying to recreate it, but can't. That is fine, however, those two files that failed do not display when you go to their page and on the page they are displayed on, it fails to load as well. Any suggestions on what I should be looking at to find out what is going on? Or even better, do you have an idea on what is going on? — Dr DBW |  talk  01:50, 8 July 2009 (UTC)

How do I go about fixing this? I can't get to the image pages, since they are blank, nothing comes up, so I can't upload a new image. This going to require some work on the DB directly? -- Dr DBW |  talk  23:05, 12 July 2009 (UTC)


 * Where can you get support for MediaWiki now? This place is dead. -- Dr DBW  |  talk  00:23, 23 July 2009 (UTC)
 * The mailing list, maybe; see Communication. I doubt that IRC gets much round-the-clock attention, either. It's tough when its just a volunteer group, since only the people who want to help out at the support desk will help out. And there's not many people like that. :( I would, personally, if I knew more about MediaWiki's inner functionality. --Drilnoth 02:32, 24 July 2009 (UTC)


 * Thanks. Yes, realise that and totally understand (being part of a similar volunteer type of group myself).  Just that around 2 or so years ago there seemed to have been a larger proportion of problems got some response to help out.  Now appears that now it is very few.  I chip is when I can, but that is few and far between. -- Dr DBW  |  talk  04:19, 24 July 2009 (UTC)

I have found out that it may be due to a memory error, finally have found something in the error logs: PHP Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 5402880 bytes) in /chroot/home/masaasna/masa.asn.au/html/masawiki/includes/media/Bitmap.php on line 192 Now not 100% sure that is the issue or not. If it is, then the solution is to increase php's memory_limit setting in the php.ini file to something like 32M or 64M. Time to go and look at the DB and see what is in there, then check against what is on the server. My feeling is that it is due to a file not existing, or something like that. -- Dr DBW |  talk  04:22, 24 July 2009 (UTC)


 * More details on if the memory thing is an issue or not, Manual:Errors_and_Symptoms. Yet to try this out myself. -- Dr DBW  |  talk  02:59, 14 August 2009 (UTC)

The page errors (they fail to display at al) occur when trying to display the page for the image files, pages that they are displayed in and categories they are a part of.

I have found the entries in the DB for the files, but doesn't really help since there is nothing in there about the actual location of the file on the server. Where is that information saved? Found the image table, you can see it here -> Manual:Image table -- Dr DBW |  talk  04:49, 24 July 2009 (UTC)

OK, well I have tracked down the location of the actual file on the server. Good way to do this is using the linux  command. And the file is fine, it loads without any issues directly off the server. So that rules out it being a corrupted file. Seems now that it is something do with how the file is represented in the DB. -- Dr DBW |  talk  05:24, 24 July 2009 (UTC)


 * More information. The subdirectory structure for where images are saved on the server is based on the MD5 for the file.  Example I was given is    so that file will be located in the b/bc subdirectory. -- Dr DBW  |  talk  02:52, 30 July 2009 (UTC)

Attempted to upload a new file over the old one, using the same file name and once you hit "upload file" end up with a blank page, so seems the same error occurs.-- Dr DBW |  talk  03:31, 30 July 2009 (UTC)

SVG thumbs

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.8 (apache2handler)
 * MySQL version: 5.1.30-community
 * URL: Intranet

Hi! I have a wiki in a easyphp instasllation and I've got a problem. I installed svg extensions and so on but it just shows me a default image on thumbs (\skins\common\images\icons\fileicon-svg.png). What can I do?

Umdiaqualquer 16:22, 15 August 2009 (UTC)

Images Not Rendered, Except in Preview

 * MediaWiki version: 1.14.0
 * PHP version:  5.1.6
 * MySQL version: 5.0.45
 * URL: (intranet)

I have been unable to directly view any of image files (either static images or ones generated by the Math/Latex plugin) in my MediaWiki. The strange thing is that the problem is NOT the obvious issues of uploading or access to the image files. I know this for a fact, because the images files appear normally if I preview the page from the edit page. This rules out a large number of problems. Thus the files exist, they are where they should be, the rendering tool (ImageMagick) is working properly and there are no major permission problems.

It would help alot if I understood the differences between rendering in the standard pages and from the preview page. But the fact the preview is rendered correctly implies some strange file access problem.

Some additional background -> There is nothing unusual in the Apache logs. I tried to turn on PHP logging, but I'm not sure if this worked, as the log file I specified was never created. Other logs don't show any issues.

By the way, I'm using the following version of ImageMagick. ImageMagick 6.2.8

Any help would be greatly appreciated.....

—75.144.165.2 19:50, 17 August 2009 (UTC)

How do you delete an old uploaded image file?

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

How do you delete unused image files?

—66.193.199.65 18:14, 21 August 2009 (UTC)

Jpeg File Resolution 5000*5000 Pixel Bugs.Thanks
When I Upload Jpeg File Resolution 5000*5000 Pixel. The 'Special:Newimages' Can't Be Load (Blank Page), How Can I Solve ? Thanks.
 * MediaWiki version: 1.11.1
 * PHP version: 5.1.33
 * MySQL version: 5.29
 * URL: Intranet

Please Help, Hope Help.