"unable to process this file" message for certain images

jlctom

Joined: 2010-06-04
Posts: 4
Posted: Fri, 2010-06-04 16:12

Hi,
I've recently upgraded to Gallery 3 after my version of 2 went very strange! In general 3 is great and it's SO much easier to use but I am having an issue with certain images and getting the"unable to process this file" message. This is nothing to do with file size, I've uploaded much larger files successfully or file type as they are the same as other uploaded files.
I'd be very grateful for any help, I've attached the log and the a file I get the error with, I'm a bit of a novice so please keep advice simple.

Many thaks,

Tom

AttachmentSize
2010-06-04.log_.php_.txt6.2 KB
1.jpg769.32 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-06-05 04:35

Image seems to work fine for me:
http://www.langleycom.com/gallery3/index.php/1_12
post a php info link:
FAQ: How do I create a phpinfo page?
What image toolkit are you using? If using GD try another.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jlctom

Joined: 2010-06-04
Posts: 4
Posted: Sat, 2010-06-05 22:28

Many thanks for your swift response. I've created the phpinfo file - do I have to do anything with it other than upload it?

I've also tried changing image toolkits as I am currently using GD but the other options are greyed out (says: ImageMagick requires the exec function). I found a link to another thread with and you'd advised this was a hosting issue so I contacted my host who said the following:

"It sounds like you need to enable the exec() function to use ImageMagick. In order to do this, create a file called php.ini in the directory the image functions are called from with the following content:

disable_functions = none"

Which folder does that need to go in on my server? I tried the gallery directory and it didn't.

Sorry if this makes no sense I have very little understanding of how this all works. Thanks for both your help and patience!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-06-06 02:44

Ask your host to disable the exec function for you. I have never had to jump though hoops like this with my host(s).

If you host has this disabled by default then I suspect they have other restrictions that might prevent a smooth g3 operation. Have you added items via another method?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jlctom

Joined: 2010-06-04
Posts: 4
Posted: Sun, 2010-06-06 14:04

Hi Dave,

I spoke to my hosts - here's there reply:

"As Adam says all that you need to do is place a custom php.ini file with:

disable_functions =

With PHP on our system, we enable our users to control PHP directives themselves by using a custom php.ini which means that we don't have to make server wide changes. If you still are unable to use the exec function after placing the php.ini in the correct place, let us know where we can see the error and where you have installed gallery and where you have placed the php.ini and we'll investigate."

So where exactly is the correct place - I'm still not sure I'm putting the file in the right place.

Also I've only tried uploading using the "add photo" tab what other options are there?

Many thanks,

Tom

 
billjones
billjones's picture

Joined: 2009-09-01
Posts: 128
Posted: Sun, 2010-06-06 17:01

I had trouble with imagemagic as well, couldn't find it and asked the host to forward the path to me and then all worked fine although I too get the unable to process image on anything over 1.2 megs.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-06-06 17:26
jlctom wrote:
If you still are unable to use the exec function after placing the php.ini in the correct place, let us know where we can see the error and where you have installed gallery and where you have placed the php.ini and we'll investigate."

Tom,
There is hundreds & thousands of host out there and I don't have a clue how each one is set up.
I would suggest you talk to your host to see if they can help. I don't know where you have gallery installed so can't offer much more help that "ask you host". Sorry but I have never had to do this and don't know the specifics of your host where they would.

Quote:
what other options are there?

http://codex.gallery2.org/Gallery3:Modules:serveradd

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jlctom

Joined: 2010-06-04
Posts: 4
Posted: Sun, 2010-06-06 21:26

Dave

Ahh sorry, I'd misunderstood - when they said " in the directory the image functions are called from" I assumed this was in relation to the gallery install, not images in general - like I said, novice! I've got the hosts on it now - they're moving the site to another server as they don't understand why I'm getting issues either and, like you, think its a permissions problem. Thanks for all your help - I'll be back!

Billjones - filesize isn't the issue for me, i've uploaded photos way bigger than these which work fine, it's really odd.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-06-06 23:19
Quote:
when they said " in the directory the image functions are called from" I assumed this was in relation to the gallery install, not images in general

I would not understand that either. I have not had to jump though hoops like this to get a simple image toolkit to function. Lets hope that your host can sort you out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wideaware
wideaware's picture

Joined: 2006-06-21
Posts: 16
Posted: Wed, 2010-06-16 09:39

Don't know if this is relevant, but I had this problem and solved it in a strange way. The root of my site has a wordpress install and gallery is in a folder. Setting an exception to the caching plugin for the gallery folder fixed this for me. Doesn't really make sense, but it worked.

Vidyut

Growing up with Nisarga

 
qqwwong

Joined: 2011-05-13
Posts: 1
Posted: Fri, 2011-05-13 05:28

I had similar situation with gallery and WordPress on the same site. I also hit the same problem of unable to process image. Could you please let me know how to set excaption to the caching plugin?