Picture that I can't erase but which breaks the album.

fdelente

Joined: 2010-05-01
Posts: 13
Posted: Sat, 2010-05-08 09:21

Hello.

I have a picture that I uploaded to my Gallery. However, this picture doesn't show when I look at or manage the album.

In fact, since the picture didn't show, I tried to upload it several times.

Then I looked in the reordering options for the photos, my reasoning being "if it doesn't show at the end of the album, maybe it'll show at the beginning..."; I was surprised to see that the picture appeared several times in the list for reordering.

I put the picture at the beginning of the album, and then no picture at all would show! So I moved it back to the end, and the other pictures showed up again...

Now, I am stuck with this picture, uploaded several times, but that won't show, and that I can't erase (it doesn't show in the list of pictures when I click on "erase" for another photo).

I hope my description is clear; what can I do? I smell a database problem, but what to do?

But the way, the picture name is "profil_252010_916.png", is it the reason why Gallery breaks?

Thanks.

--
F. Delente

 
fdelente

Joined: 2010-05-01
Posts: 13
Posted: Sat, 2010-05-08 11:21

I think I have found the reason: my image is very big (more than 2000 by 1700), so thumbnails are not generated correctly and that stops Gallery when it displays a list of thumbnails.

When I watch the pictures 1 by 1, clicking on next I can see this description texte for this big picture, but not the thumbnail. However I can display the picture in its original size. But I still can't erase or move this picture, because its thumbnail can't be generated in the list.

Is there a way to disable thumbnails in an album?

Thanks.

--
F. Delente

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2010-05-08 13:53

Post your system information AND a link to phpinfo so we can help you more, otherwise we'll just be spinning our wheels speculating on what changes need to be made:
FAQ: What information is required when I ask for help in the forums?
FAQ: How do I create a phpinfo page?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fdelente

Joined: 2010-05-01
Posts: 13
Posted: Sat, 2010-05-08 14:08

Sorry, didn't think about looking in the FAQ.

The site itself is http://fabrice.delente.free.fr.

You can see the phpinfo page here:

http://http://fabrice.delente.free.fr/phpinfo.php

This is the server that hosts my Gallery site, it's on a free.fr (french provider) machine. As such I don't have any option on configuring the server; however I can access the SQL database through a phpmyadmin interface.

Here is the info from the "Site admin -> Maintenance -> site info" page:

Gallery version = 2.2.6 noyau 1.2.0.8
PHP version = 5.1.3RC4-dev cgi-fcgi
Serveur Web = Apache/ProXad [Aug 9 2008 02:45:12]
Base de données = mysqlt 5.0.83, lock.system=database
Boîtes à outils = Gd, Thumbnail
Accélération = none, none
Système d'exploitation = Linux php28-g5.priv.free.fr
Thème par défaut = matrix
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Lignes dans la table GalleryAccessMap = 15
Lignes dans la table GalleryAccessSubscriberMap = 493
Lignes dans la table GalleryUser = 4
Lignes dans la table GalleryItem = 491
Lignes dans la table GalleryAlbumItem = 27
Lignes dans la table GalleryCacheMap = 0

I'll read the FAQ more thoroughly first, and I'll also try to enable debug in config.php later (not much time now).

--
F. Delente

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2010-05-08 14:21

safe_mode is on, you'll need to have your host change that or find a different host. Gallery does not work in safe_mode. You did get a big warning about that when you installed it and if you didn't then you are using a version someone has modified to bypass checks for safe_mode.

safe_mode is 100% useless and the PHP developers have realized it's completely the wrong approach in every way possible to security. safe_mode has been removed from future versions and quality hosts don't use it.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fdelente

Joined: 2010-05-01
Posts: 13
Posted: Sat, 2010-05-08 14:29

Ouch, bad news, because asking for this has already been rejected... finding another host is for me not an option at the moment... I'll just be more careful with uploading big images next time then!

Thanks for your help!

--
F. Delente

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2010-05-08 14:44

I'll be slightly nicer on the topic of safe_mode so you may have a better understanding of what's going on :)

The problem most likely is that because your host is so restrictive and clueless you can't use external binaries to process images, like ImageMagick. So you are stuck with using GD. The problem with GD is that it's a HUGE resource hog and consumes memory that's been set aside for PHP. So the 32MB that's been set aside for PHP is getting entirely eaten up by processing larger images. To be on the safe side, you probably shouldn't try uploading any image larger than 1MB to 1.5MB. That will leave you with a little head room to move around in. A 2MB image could potentially consume 24MB while processing leaving you with only 8MB left and that's probably not enough. You'll need to test to find your limit.

Really, you should find a different host, these guys don't have a clue about what they are doing and are only asking for trouble in the future when their precious little non-safe_mode goes away in a future version of PHP.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here