[SOLVED] New image uploads don't generate thumbnails

ddeg10

Joined: 2003-02-10
Posts: 72
Posted: Sat, 2011-08-13 16:47

When using the G3 built in uploader i uploaded multiple images and while the full size images are present, no thumbnail/resize images are generated. I tried troubleshooting this by uploading images in different areas of my gallery, and I was able to upload an image in the gallery3 main root album and it did generate a thumbnail just fine. But when uploading images inside of any other albums, thumbnails do not show up after the upload.

I find it very odd that the thumbnails will generate in the root gallery album but not in other albums - is this some sort of issue with the permissions?

I have tried both GD and Imagemagick with the same result. My php memory limit is also set at 64M.

Here is my phpinfo just in case:
http://199.167.200.101/~ddeg10/gallery3/phpinfo.php

 
ddeg10

Joined: 2003-02-10
Posts: 72
Posted: Sun, 2011-08-14 11:52

I checked my error logs and found the following:

Quote:
[14-Aug-2011 07:33:23] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

I found 500 lines in my error log with this same exact error.

I am on a VPS so I have shell access and I can edit the php settings manually - Can anyone shed some light on this? Thank you.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2011-08-14 15:00

You don't need the PHP ImageMagick extension installed, Gallery isn't using it. If you're running Debian or Ubuntu, you should just have to apt-get install imagemagick and be done with it.
____________________________________________
Like Gallery? Like the support? Donate now!

 
ddeg10

Joined: 2003-02-10
Posts: 72
Posted: Sun, 2011-08-14 20:51
nivekiam wrote:
You don't need the PHP ImageMagick extension installed, Gallery isn't using it. If you're running Debian or Ubuntu, you should just have to apt-get install imagemagick and be done with it.
____________________________________________
Like Gallery? Like the support? Donate now!

I notified the host of my error log and they reinstalled imagemagick. Now my error logs are clean. However, my problem still exists. Any new image I upload you can see the full size image but you can't see any resizes or thumbnails. What can I do to fix this? I've been working on trying to get this gallery up for days - I've never run into so many problems.

 
ddeg10

Joined: 2003-02-10
Posts: 72
Posted: Sun, 2011-08-14 21:05

Fixed the problem. My thumbs and resizes directory permissions were both set to 755, including all of the subdirectories. I changed everything to 777 and it all works now.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2011-08-15 16:53
Quote:
My thumbs and resizes directory permissions were both set to 755, including all of the subdirectories.

Which should've been fine as long as the user that Apache or PHP run as is the owner of those directories. Sounds like your host made changes on you or they have some funky "security" setup that restricts the web server user from being able to create files in directories that it owns....
____________________________________________
Like Gallery? Like the support? Donate now!