Compatibility to PHP 5.5

patrickmueller

Joined: 2013-10-02
Posts: 5
Posted: Tue, 2013-10-15 07:06

Hi everyone

I have a problem uploading photos to an album.

I get the error "unable to process this photo". I tried possible solutions from http://codex.galleryproject.org/Gallery3:Troubleshooting:Uploading but it's still not working.

As I have seen, the picture I've uploaded appears in /var/albums/xxx. But it's not visible on my gallery website.

I've written with a supporter from my hoster. He said that they have updated PHP to version 5.5.

Now my question: Is Gallery 3 compatible to PHP version 5.5 or is there a new version comming out soon, that is compatible to 5.5?

Thank you for answers and your help :-)

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Tue, 2013-10-15 15:14

First, run from any host that updates something as vital as the php version without even notifying you of potential conflicts. Just my opinion, but that seems a bit reckless on their part. Major php upgrades always run the risk of compatibility issues.

Also, I haven't yet tried out php 5.5 with Gallery.

Now, to your issue, it could be a php-to-Gallery compatibility, but I'd first check the graphics toolkit. I'd also ask if the resources, memory limits, etc have been changed/reduced when the php version was updated.

If none of that applies, create a php info page.
http://codex.galleryproject.org/Gallery3:FAQ#How_do_I_create_a_phpinfo_page.3F

 
patrickmueller

Joined: 2013-10-02
Posts: 5
Posted: Thu, 2013-10-17 12:39

Hi tempg

I'm new with Gallery and actually this is not my gallery but that of a colleague. Another coleague of him set it up.

So where do I have to check the graphics toolkit? How can I do this?

As I wrote, I've tried to change the memory limits (check the link in my first post) in .htaccess, index.php as well as in php.ini, but there was no change.

I tried your hint with this php info page and it worked! But i read, that i should delete it and that it's a security risk.

So I can rule out the incompatibility to php 5.5?

Thanks for your help!

EDIT:

After I deletet the php info page as expected it didn't work anymore. When I add it again, it still doesn't work...

I realized, pictures I've uploaded are listet in the album bur theres no image.

When I hover on the square where the image would be, I see the option menu appearing.

EDIT AGAIN:

I think I missunderstood the sense of the phpinfo ... I realized that theres no influence to functionality of gallery.. :D

Well here is the link to this site:

http://www.vib.ch/gallery/phpinfo.php

I hope it's helping ;-)

 
patrickmueller

Joined: 2013-10-02
Posts: 5
Posted: Thu, 2013-10-17 13:00

Well I've clicked around and found the "graphic toolkit"-site:

Please see attachments

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2013-10-19 17:11

Lots of possibilities here, and I'm a bit short on time, but did go back to re-read your post.

Quote:
As I have seen, the picture I've uploaded appears in /var/albums/xxx. But it's not visible on my gallery website.

Gallery doesn't use that folder to show the images on your website. There is a thumbnail of the image that is created in /var/thumbs/xxx and a resize version that should be created in /var/resizes/xxx; those two versions are the ones that are supposed to be created by your graphics toolkit.

Quote:
I think I missunderstood the sense of the phpinfo

It's just so that you can see how it is configured (i.e. memory limits, etc). You should delete it once everything is working again.

Quote:
Well I've clicked around and found the "graphic toolkit"-site:

Normally, I'd say try a different toolkit, but you don't have another one available. (You could maybe ask your host to install ImageMagick so that you can give it a try.)

Try uploading a small jpg and see if that works.
If you can't upload a really small image, check the permissions on the /var/thumbs and /var/resizes folders; maybe (temporarily) change them to 777 and try again.

Is there anything in the Gallery logs (gallery folder > logs)?
If not, ask your host if there's anything in the server logs.

 
patrickmueller

Joined: 2013-10-02
Posts: 5
Posted: Mon, 2013-10-21 07:27

Hi tempg

Thank you for your answer.

I'm really depressed.. There were about 10 minutes in which it worked.

I could upload every picture that I wanted to, without having previously changed something!

But then this Error came again "Unable to process this photo".

When it worked, I deletet all bad images in this album.

Then I've tried to upload the right images but after 6 of 10 the error came again.

Quote:
Try uploading a small jpg and see if that works.
If you can't upload a really small image, check the permissions on the /var/thumbs and /var/resizes folders; maybe (temporarily) change them to 777 and try again.

Changing folder permissions doesn't change anything.

I will attach the logs. It worked at 09:00.