Project:Support desk/Sections/Images

__NEWSECTIONLINK__

= Image Support =

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.

Problems with uploading images

 * MediaWiki version: 1.9.3
 * PHP version: 5.2.6
 * MySQL version: 5.0.67
 * URL:

Hi. I experience problems with uploading images via standard Wiki interface. Attempting to upload ANY image file I recieve system error message "emptyfile" (The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.)

Files I'm trying to upload are OK, that's for sure.

Any suggestions what the problem is ?

—95.79.19.195 13:45, 12 September 2009 (UTC)

Images no longer appear
MediaWiki 	1.15.1

PHP 	       5.2.9 (apache2handler)

MySQL 	       5.0.81-community

URL: http://www.evolution-rpg.com/wiki/index.php/Main_Page

I just finished upgrading my wiki to version 1.15.1. I've noticed that any images that are linked from off site, no longer appear by posting the url to the image. Does 1.15.1 allow the use of off-site images using just their url or is there another way image links should be formatted?

—71.32.70.23 20:53, 14 September 2009 (UTC)

(RESOLVED) JPEG thumnailing errors (using GD)

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.0 (apache2handler)
 * MySQL version: 5.1.39-log
 * URL: (internal)
 * OS: Red Hat RHEL4

Quite a few people seem to encounter this error message within a grey box:
 * Error creating thumbnail: Incomplete GD library configuration: missing function imagecreatefromjpeg

I had that issue, but after some hours, resolved it. Some PHP 4.x and 5.x versions of PHP have a bug where the libjpeg is detected but not enabled during the ./configure step; this is fairly prevalent on Red Hat/RHEL/CentOS systems. The fix for this (if you don't want to use ImageMagick) is to recompile PHP. First, find out (from phpinfo) what the existing ./configure switches were, and add --with-jpeg-dir before --with-gd. make clean ./configure --with-various-switches --with-jpeg-dir --with-gd --with-more-switches make make test #switch to root make install Afterwards, restart the webserver (for Apache on Red Hat: service apache stop then service apache start ). To test, simply view the File:... page again (no need to upload again). For more information see the comments on PHP: imagecreatefromjpeg (function synopsis)

—202.53.35.32 00:28, 9 October 2009 (UTC)

(Resolved) Image uploading/viewing causes internal server error/execution timeout with files bigger than 5kb

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (cgi-fcgi)
 * MySQL version: 5.0.67-userstats-log
 * URL: locked down

Basically everyone is unable to upload any large files to the wiki. I've checked all the php configurations for max post size/upload limit and they're all at 8M or higher and viewing the phpinfo confirms this (as does the limit shown on the mediawiki upload form). If i attempt to upload something with a size of about 5-10kb it works absolutely fine. However if I try to upload something that is 900kb, the upload form eventually times out with an Internal Server Error (enabling display_errors etc. in the LocalSettings.php has given no details thus far). The error shown in the server error log is:

[Sun Oct 11 04:38:48 2009] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php, referer: http://wiki.xxx.com/index.php?title=Special:Upload

This is due to php running as a cgi binary instead of a php module. Usually a premature end of script headers indicates that no output was sent from php which means php encountered a max execution timeout. I've tried raising this timeout to 60 seconds from 30 but got the same problem.

Curiously, checking the http://wiki.xxx.com/index.php?title=Special:ListFiles shows the file DID upload correctly and I can view the file in it's physical path on the FTP. But if I then try to view this image on the wiki I get the same timeout/php error I described above. Again, just to remind you - files of 5-10kb work fine with no problems.

My last observation is that after the timeout has occurred, two processes are left hanging when viewing "top" via SSH. The processes are "convert" and "ulimit4.sh" which I have to manually kill.

I hope this helps you guys figure it out, thanks.

Edit - Interestingly enough, if I allow the page to start hanging (before the internal server error) and then kill the convert and ulimit4.sh processes then the page loads fine, but gives the error "Error creating thumbnail:" in the thumbnail box.

—Ephialtes 11:45, 11 October 2009 (UTC)


 * Fixed it by setting $wgUseImageMagick = false; in LocalSettings.php to force it to use PHP GD instead. I tried this earlier but it was setting it true lower in the file, my bad! —Ephialtes 14:19, 11 October 2009 (UTC)