Thumbnails showing as broken images...I only have 3 images loaded! http://www.xtremejesus.com/gallery/

Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 18:22

I have only uploaded 3 images and all of the thumnails are showing as broken images. What could be the problem?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 18:43
Quote:
What could be the problem?

FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 18:56

The gallery is integrated into the forum which is www.xtremejesus.com/forum/index.php and you can click on the gallery link.

Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.2.5 cgi
Webserver = Apache/1.3.41 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database = mysqlt 5.0.51a-community, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd, ImageMagick
Acceleration = none, none
Operating system = Linux gator71.hostgator.com 2.6.27 #3 SMP Fri Oct 10 22:41:46 CDT 2008 i686
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
Rows in GalleryAccessMap table = 21
Rows in GalleryAccessSubscriberMap table = 6
Rows in GalleryUser table = 37
Rows in GalleryItem table = 5
Rows in GalleryAlbumItem table = 2
Rows in GalleryCacheMap table = 0

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 19:03

Uninstall the GD toolkit and see if that works.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 19:13

Didn't work. My large files 3mg are apparently the ones giving me trouble. I tried a smaller 500k file and it worked fine.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 19:34

Please post a link to phpinfo, this link explains how to do that:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 20:08
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 20:56

hmmmm, I'm not seeing anything that that would give a clue as to why a large file isn't importing. Is GD still disabled?

Ah, wait. Disable EXIF, the EXIF plugin can create problems with larger files, I'd also disable an uninstall any plugins you're not using. If you don't import RAW images, remove Dcraw, if you don't import mp3s, unisntall Getid3, if you don't import movies, uninstall Ffmpeg, etc
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 21:19

I have done all of that. Deleted the pictures and uploaded a new one, still no thumbnail. Please keep trying...

I guess I could downsize the pictures before uploading, but the average user wouldn't be doing that.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 21:31

Let's dig into this a little further then.

Put Gallery into debug mode: FAQ: How to set/use Gallery in debug mode?

Create a user account for me and a temporary album where that user has All Access

PM me (write to author) the login details along with a link to one of the large photos you're having problems with.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 21:57

Ok I have done that stuff and I am assuming it is working because I am getting all kinds of crazy suff.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 22:36

All right! If I crop the thumbnail to make the thumbnail from a smaller portion of the image (Edit Photo > Crop Thumbnail) Then it works. But not for the full size image. I get an error message like this:

Quote:
Regular Output: Error Output: Insufficient memory (case 4) Status: 1 (expected 0) unlink(/path/to/public_html/gallery/g2data/tmp/imgk_zhbSVt) chdir(/path/to/public_html/Forum) realpath(/path/to/public_html/gallery/modules/core/classes/../../../) realpath(/path/to/public_html/gallery/) Error (ERROR_TOOLKIT_FAILURE)in modules/imagemagick/classes/ImageMagickToolkit.class at line 620 (GalleryCoreApi::error) in modules/imagemagick/classes/ImageMagickToolkit.class

Your available memory to PHP is 40MB, so that shouldn't be the problem. I'd probably take that to your host and ask them about that. An error message might also be popping up in an error log, I doubt it, but it would be worth a look.

Basically, something is running out of memory processing the larger files. You could set the size limit module down smaller so it will resize the photos to be smaller for processing if people upload larger files, but I think you may still run into problems until you get this resolved.

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

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Thu, 2008-10-16 22:44

Ok I'll let you know what they say...can i take it back out of debug mode?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 22:59

Oh, yeah, take it out of debug mode. I'm done looking at it until you need more help.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
kroogar

Joined: 2007-08-16
Posts: 7
Posted: Fri, 2008-10-17 04:41
Xtreme_Preacher wrote:
Didn't work. My large files 3mg are apparently the ones giving me trouble. I tried a smaller 500k file and it worked fine.

I have the exact same problem: small files (<1Mb) are working fine, larger files (>3Mb) are not. And I'm also using Hostgator as my hosting provider - just as Xtreme_Preacher.

HG offers three different image galleries: Gallery2, 4Images and Coppermine. I have tried all three solutions, creating an album/category and uploading the same picture in all three. Only Coppermine is able to produce a thumbnail.

HG support obviously tells me to take my issue here as they do not (understandably) offer support for Gallery2. But it would be nice to get some help here as to what to tell the nice ppl at HG support... :-)

Thanks in advance :-)

./kroogar

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 11717
Posted: Fri, 2008-10-17 05:02

Not sure if you have tried the FAQ or not:
FAQ: Why can't I upload big files (over a megabyte or two)?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
kroogar

Joined: 2007-08-16
Posts: 7
Posted: Fri, 2008-10-17 05:29
floridave wrote:
Not sure if you have tried the FAQ or not:
FAQ: Why can't I upload big files (over a megabyte or two)?

I have tried the .htaccess method, the php.ini method and the ini_set method without any luck.

In Hostgators knowledge base I can find the following information:

======
PHP has been configured to use the following settings on our shared and reseller servers:

safe mode = off
memory_limit = 64M MAXIMUM
max_execution_time = 30 MAXIMUM
post_max_size = 64M MAXIMUM
upload_max_filesize = 64M MAXIMUM
enable_dl = Off

The above settings cannot be changed on a shared and reseller acount. We have found that a majority of the php scripts will work within these limits and the ones that require more are best suited for a dedicated server. These limits are set to prevent extremely high resource usage in shared environments.

We also set the following:

register_globals = On
magic_quotes_gpc = On

These two settings can be changed using a custom php.ini file located in the same folder as the script that requires the settings.
=====

But still I'm not able to get a thumbnail for a 3.3Mb file created. The "normal" resized image is created just fine which puzzles me as creating a thumbnail should be the same as just resizing the image - or am I wrong?

The square thumbnail plugin is enabled - does this have any effect?

./kroogar

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-10-17 07:45
Quote:
But it would be nice to get some help here as to what to tell the nice ppl at HG support...

Don't oversell their servers ;)

Quote:
PHP has been configured to use the following settings on our shared and reseller servers:

safe mode = off
memory_limit = 64M MAXIMUM

Try increasing your memory limit to the maximum, as I've seen from above and other hostgator/bluehost customers, that is obviously not the default setting.

As you mentioned Square Thumbs, I would try disabling that and see if that helps.

I would also try disabling ImageMagick and using GD, then disabling GD and using NetPBM to see what works best. Coppermine only has GD and ImageMagick available to it as far as I can tell. So those should work with Gallery just fine. But maybe the extra step the square thumb module takes doesn't agree with HG's servers. I ran across a post here or somewhere else that mentioned creating thumbnails on larger files in ImageMagick was memory intensive. I don't know if that's true or if I'm even remembering the right thing though.

I'd also try the suggestion I made above about the size limit module and have it cut the images down to a smaller size first.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
kroogar

Joined: 2007-08-16
Posts: 7
Posted: Fri, 2008-10-17 10:43
nivekiam wrote:
Try increasing your memory limit to the maximum, as I've seen from above and other hostgator/bluehost customers, that is obviously not the default setting.

As far as I can see I cannot change my memory settings at all... not thru .htaccess and not thru php.ini

nivekiam wrote:
As you mentioned Square Thumbs, I would try disabling that and see if that helps.
I would also try disabling ImageMagick and using GD, then disabling GD and using NetPBM to see what works best.

First of all: Hostgator Support haven't got a clue what NetBPM is :-)

I have now tried disabling Square Thumbs, ImageMagick and NetBPM (everything but GD). I have also reduced the quality of the thumbs in GD to 50.

This actually works - sort of... When uploading a single photo and clicking the "Add items" button I end up with a blank page.

The thumbnail is, however, created but not assigned as highlight for the album. Recreating the thumbnails for the entire gallery ends strangely with 280 of 288 processed. No errors, no continue link...

./kroogar

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-10-17 15:37
Quote:
I have now tried disabling Square Thumbs, ImageMagick and NetBPM (everything but GD). I have also reduced the quality of the thumbs in GD to 50.

Let's try the following 3 things:

1
O.k. Now try disabling GD and enabling ImageMagick only and see if that works. I wouldn't try reducing the quality because I don't think that's going to help a ton in processing. Well I guess it could if the original image is getting modified and blown away, but in most instances that's not the case unless you are using the Size Limit plugin and telling it to modify the size and not keep the original sized versions.

2
Can you also put gallery into Debug Mode, rebuild the thumbnails as you did. Then copy and paste the debug output on the page where the thumbnails just stop rebuilding into a text file, zip that text file and attach it to another post.

3
Please post your system info and a link to phpinfo. Probably not going to see much of anything different but I want to make sure we're covering all the bases.
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xtreme_Preacher
Xtreme_Preacher's picture

Joined: 2008-10-16
Posts: 20
Posted: Fri, 2008-10-17 17:46

After going back and this morning with support at Host Gator,they finally came back with this response:

Quote:
Hello,
Unfortunately this is a limitation is just due to the size of the file. I was able to recreate the issue, but unfortunately the only thing that I can recommend is that you instead try to resize the images to be smaller on your local computer so that it does not take as much memory on the server to resize it. I do apologize about the inconvenience.

I really don't think this is an issue with Gallery2.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-10-17 18:02
Quote:
I really don't think this is an issue with Gallery2.

I'd take a look at using the Size Limit module to reduce the size of the file. You already have this installed, I'd just set it's limits lower. I think that image you were using was a ~2MB file and the file size limit you set was 3000KB. But I think if you set the Size Limit module to resize the largest size to be 1024 (tall or wide) or maybe a bit bigger might fix this "problem". It still creates the intermediate sized versions and if you edit the photo to create a thumbnail from a smaller portion of image, but not creating a thumb from the full image.

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

Login or register to post comments
kroogar

Joined: 2007-08-16
Posts: 7
Posted: Fri, 2008-10-17 21:40
nivekiam wrote:
1
O.k. Now try disabling GD and enabling ImageMagick only and see if that works. I wouldn't try reducing the quality because I don't think that's going to help a ton in processing.

This alone seem to have fixed my problem - at least when I upload a single file. I have yet to batch add a large number of files from the server.

When batch adding files I take it the memory usage will not at any time be larger than the memory usage for the single largest file right?

Will get back when I have tried to batch add files.

./kroogar

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-10-17 21:48
Quote:
When batch adding files I take it the memory usage will not at any time be larger than the memory usage for the single largest file right?

I'm not sure. I've only ever added about 40 images at most at a time and my memory usage for PHP, IIRC, has never gone above 18MB.

Granted I resize and rotate (if needed) my images before uploading and I'm the only person who adds images to my Gallery installs.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
Xushka
Xushka's picture

Joined: 2008-10-18
Posts: 9
Posted: Sat, 2008-10-18 09:48

I have the same problems after the hostgator's upgrade. I've just sent another ticket to support but I no longer hope for any solution (my experience with hostgator is getting bunch of jargon messages blaming everyone around but never itself). Now I'm researching new hosts. Is it easy to transfer databases, galleries between hosts?

Login or register to post comments
kroogar

Joined: 2007-08-16
Posts: 7
Posted: Sat, 2008-10-18 11:09
nivekiam wrote:
Granted I resize and rotate (if needed) my images before uploading and I'm the only person who adds images to my Gallery installs.

I rotate as well but I would like to have the original sized images in my gallery as well... but I'm willing to reconsider :-)

Do you use some form of batch resizing?

./kroogar

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 11717
Posted: Sat, 2008-10-18 14:28
Xushka wrote:
Is it easy to transfer databases, galleries between hosts?

FAQ: How can I move my gallery installation from one server to another?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Sat, 2008-10-18 17:46
Quote:
Do you use some form of batch resizing?

I use Irfanview to batch resize images. There is also a preference in Irfanview to auto-rotate an image based on EXIF info (go to Properties > JPG/PCD/GIF > select Auto-rotate). The nice thing about this feature is once turned on, if you save an image that was rotated it is saved with the correct orientation.

Irfanview's interface isn't the greatest and most of the shortcut keys are far from "standard", but it's a nice powerful little tool.

If I had the disk space and I didn't care about sharing resources on a shared server or I had a dedicated server or didn't care how much bandwidth I used, I too would like to host original sized images, if not for anything but a backup. I resize mine down to 1024 (or smaller depending on the intended audience) so they fit on most monitors. But 1600 would fill that tiny gap of other people with bigger monitors who also like screen real estate vs size of text because they have bad eyes. ;)

I also slide the quality down to somewhere between 75-95 (depending on pics and audience) to reduce file size further. Again if space wasn't a concern and I didn't care how long it took someone to download images I wouldn't go through that. But full res jpgs are between 4-6MBs from my camera (Rebel XTi) and that's "only" 10MP if you count or care about mega pixels, which I don't. If I take RAW (13MB-18MB files) and convert to a 16bit TIF, then they just go up from there becoming ~60MB files. I could host a whopping 50 files (less with jpgs for viewing and resized versions) on my host if I went the TIF file route. But with resizing my images down to between 800 and 1024 and reducing the quality a little bit (most of my "fullsize" images are between 100-150KB) I'm able to host somewhere around 20,000 at my current host with current hosting plan with their current space allowances. Importing smaller images also allows for faster imports, I'm currently able to rebuild thumbs and resized versions for my entire gallery without problems, though I don't know if I'll still be able to do that after I have 20,000 photos there, but that's down the road.

But again it all depends on the purpose you're trying to serve. The bulk of the images I post are intended for viewing on our website (not my personal site below but another one), not really intended for printing, you can, just not high res. Those who wanted high res images already paid for and and got them on CD.

You have to think about your audience, if most people are just going to view the images, there is absolutely no need for posting the original sized images. The resolution on a monitor is 72dpi. I can have an image that looks great, taking up a good portion of my screen, but when printed at 300+dpi it's a little thumbnail, or I can have an image that looks great on 8.5x11 paper but you can only see a portion of that image on the screen in a browser.

As for a backup, I backup to a spare hard drive, then backup to DVD.

I see I went of on a tangent as usual when I'm geeking out. If you want to continue the discussion I slide into, start a new thread in General Chit-Chat: http://gallery.menalto.com/forum/53
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
kroogar

Joined: 2007-08-16
Posts: 7
Posted: Sat, 2008-10-18 20:15

Thanks for your extensive reply nivekiam :-)

I have just batch added 170 files to an album on my Hostgator gallery. It all went fine with just ImageMagick enabled and set to a jpeg quality of 65.

Thanks for all the help guys - thumbs up.

./kroogar

Login or register to post comments
Xushka
Xushka's picture

Joined: 2008-10-18
Posts: 9
Posted: Sat, 2008-10-18 23:37
kroogar wrote:
I have just batch added 170 files to an album on my Hostgator gallery. It all went fine with just ImageMagick enabled and set to a jpeg quality of 65.

It doesn't work on my Gallery :-(

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Sat, 2008-10-18 23:56

Xushka, please start a new topic. We have no information about your setup and your problem could be different.

Fill out the support template when you start a new topic too.
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments