[SOLVED] Problem with adding new albums/pictures to existing Gallery3

mond

Joined: 2014-08-19
Posts: 2
Posted: Tue, 2014-08-19 13:04

Hi

I've been using Gallery3 3.0.2 for some time and it has always behaved flawlessly, however, I haven't added any new albums or pictures for some time. During this time the server, running Ubuntu 12.04 LTS has had various updates. Currently it is running PHP 5.3.10, MySQL 5.5.38 and all the system requirements shown on the Gallery Web site are present and set as required.

Existing albums function as they always have, no problems there, but I can no longer add albums or pictures to the system. Or rather, I can add albums and pictures but the thumbnails do not display in the gallery, nor does the album cover picture. I can access the pictures directly from a link, or by clicking on them in a file browser, I can also run them as a slide-show in Gallery3, but the thumbnails have not been correctly generated, when I access them directly they display a broken folder icon, as displayed in the gallery.

When I upload pictures as Admin I get an error message for each one, to the effect that the picture could not be uploaded.

I ran all the relevant maintenance tools, to no avail. I've upgraded to Gallery3 3.0.9 but the same thing happens, I ran the relevant maintenance tools again but still no joy. Rebuild images shows a warning triangle which doesn't clear when it's run, even though the logs show it as having run successfully.

Permissions for var are user: www-data group: www-data rwx rwx r-x the albums seem to be user: www-data group: www-data rwx r-x r-x

If anyone knows what's caused this problem or can you point me in the right direction I'd be most grateful.

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Tue, 2014-08-19 20:29

As a starting point, try changing the graphics library you are using for G3. You also say you receive error messages - perhaps you could post a few chunks out of your G3 log file.

 
mond

Joined: 2014-08-19
Posts: 2
Posted: Wed, 2014-08-20 10:41
spags wrote:
As a starting point, try changing the graphics library you are using for G3. You also say you receive error messages - perhaps you could post a few chunks out of your G3 log file.

Many thanks for your reply spags. The graphics library was updated when I upgraded to 3.0.9 but the problem persisted, the gallery continued to function as it did before, displaying old albums and pictures but not creating new thumbnails for newly uploaded pictures.

On reviewing the Rebuild Images log the error seemed to involve GD2. GD was installed but a little trawling of PHP.net revealed an addition to GD which can be made, on Debian based systems, with the following command line entry:

apt-get install libgd2-xpm-dev*

This, plus a restart of Apache, fixed the problem.

Server updates seem to have disabled GD by removing libgd2-xpm-dev, as far as I can make out.

For completeness; if GD has not been compiled at all it can be added, without the need to recompile PHP, on Debian based systems, with the line:

apt-get install php5-gd

(The above commands run as root or with sudo privileges)