Jump to content

Topic on Project:Support desk

[RESOLVED] Image upload problem in a new installed Mediawiki 1.21.1

9
Mrnoname1 (talkcontribs)

I'm a newbie in mediawiki and hope someone can help me with this problem i never had before with older versions. After instal all seems ok but uploading Images give a problem, i get this>>> Error creating thumbnail: It was not possible to store the thumbnail file on the target location. Also the image does't show on de page where its used. I hope for some help.

88.130.88.0 (talkcontribs)

Hi!

When you say "the image" does not show up, then you mean the thumbnail, right?

Judging from the error message, I think that directory permissions for the folder images/ are incorrect, maybe the folder is also owned by a wrong group. In most cases directory permissions 755 solve this kind of problem.

Mrnoname1 (talkcontribs)

Hi! I checked the directory permissions of the /Images and they are 755, The error when uploading an image or doc stil is "Error creating thumbnail: It was not possible to store the thumbnail file on the target location" This text apears in de file list aswell as on the wikipage where the document is used... I must be missing something i don't thought off.....

MarkAHershberger (talkcontribs)

Try changing the permissions to 777 and uploading again.

62.12.14.24 (talkcontribs)

I changed the permisions from /Images to 777, no change. Same problem

MarkAHershberger (talkcontribs)

Can you add the following to your LocalSettings.php and tell us if you see any new messages when you upload?

error_reporting( -1 );
ini_set( 'display_errors', 1 );
92.68.69.153 (talkcontribs)

No new messages while uploading, just the same as before. When placing an uploaded image on a page i getthis text instead of the image>>> "Error creating thumbnail: It was not possible to store the thumbnail file on the target location."

MarkAHershberger (talkcontribs)

What are the permissions on the /images/thumb directory and below?

Bianwenbo (talkcontribs)

I encounter the same problem as yours. And according this link - [RESOLVED] Error creating thumbnail: Unable to save thumbnail to destination I solve this problem. I hope this could help others.

Adding the follow code to LocalSettings.php :

$wgTmpDirectory = "$IP/images/temp";

Update:

  1. You should also create a new directory named 'thumb' in the ./images folder: mkdir thumb.
  2. And then check the other files(directories)'s privilege in the folder 'images': ls -lh.
  3. Finally, change the privilege of 'thumb' to the same as others: chown user_name thumb

What's more, I prefer to using 755 rather than 777 for the 'images'. Good luck!

Reply to "[RESOLVED] Image upload problem in a new installed Mediawiki 1.21.1"