Where're the Images?

Permalink Browser Info Environment
Hey, all!

Just bought this addon as it's perfect for my client's products page. Due to database errors with unzipping addons, I've had to manually unzip this into my /packages/ directory. Anyhow, now it's here and when I configure the block, I get a few options but never see any photos.

I configure it a certain way, apply the block and while in edit mode, get a 'content disabled in edit mode' box (which is fine in and of itself, I suppose?) however when I exit edit mode, I get nothing. No grey box, no images...nothing at all.

Any clue what I'm doing wrong, here?

(Attaching my Gallerific block config options)

1 Attachment

Type: Discussion
Status: New
viriesque
View Replies:
jb1 replied on at Permalink Reply
jb1
Thanks for purchasing the add-on. This block is used on hundreds of websites and this is the first time I've heard of some specifically like this. It sounds like if you've had db errors with other tasks, the root of the problem could lie elsewhere.

There could be a few possible causes, here's a couple things to check:
1. File permissions. Make sure you have permissions in the file manager to view those files/file set.
2. PHP errors. Check the error log in the root folder of your site.
3. Other add-ons. Check if other image based add-ons work.
4. Server config. Your server could be missing required components for processing images. This would have been displayed when the site was first installed.

Hope this helps.

JB
viriesque replied on at Permalink Reply
viriesque
There could be a few possible causes, here's a couple things to check:
1. File permissions. Make sure you have permissions in the file manager to view those files/file set.

Check. (there are pictures in the sets, as well)

2. PHP errors. Check the error log in the root folder of your site.

I may not be looking in the right place. No PHP error log can be found.

3. Other add-ons. Check if other image based add-ons work.

Another image gallery does indeed work.http://www.concrete5.org/marketplace/addons/simple-image-gallery/...

4. Server config. Your server could be missing required components for processing images. This would have been displayed when the site was first installed.

I contacted my server admins and they said everything seems to be in working order for what needs to happen.

...I'm just sort of grasping at straws, at this point. Gallerific is exactly what I need in order to deliver my client what they're looking for...Simple Image Gallery does work, so it must be an issue with Gallerific, right?

Perhaps dragging it into my /packages/ directory didn't install it correctly?
jb1 replied on at Permalink Reply
jb1
yes, the other possible causes:
1. Not all files being uploaded correctly.
2. A file permissions issue (depending on your server config, but most typical setups should have file permissions set to 644.) If you uploaded the files via FTP they should be ok. If you used cPanel's file manager, that could be the cause of the problem.

If there are still any issues, just send me the URL where you have used the block and I'll take a look.

JB
viriesque replied on at Permalink Reply
viriesque
Well, I reset the permissions yesterday...I'll try removing the files and re-uploading them. We'll see if that does anything for it.
jb1 replied on at Permalink Reply
jb1
PS. I didn't mention it, but it goes without saying - the file set should have images in it. I'm guessing you would have checked that. But with mentioning anyway.
tone72 replied on at Permalink Reply
tone72
I am having the same issue with my images not displaying after exiting edit mode. It appears to be something to do with the file size of the images. Is there a maximum file size setting for an individual gallery?
jb1 replied on at Permalink Reply
jb1
Hi Toni-Maree, I just received an email notification about your message here, but it seems to different (very strange). Did you resolve the issue with the remote images?

JB
tone72 replied on at Permalink Reply
tone72
Hi jb. Unfortunately, I have not resolved this issue as yet. I have tried several things to date. The gallery works if I upload 5 x 500KB images to a set, but will not work if I add any more images. The gallery also works if I upload 4 x 1.5MB to a set, but will not work if I add any more images. What does this sound like the issue is to you? Thanks for any assistance you can provide.
jb1 replied on at Permalink Reply
jb1
It sounds like a server-related issue. This is the first time anyone has experience this type of issue.

The first time a gallerific gallery is viewed the server will create thumbnails for each photo. These are then cached for use next time to make loading time faster.

You can see an example on our site which has over 40 images in the gallery and it load relatively quickly:
http://c5extras.com/add-ons/gallerific/gallerific-example-large/...

So a couple things to check:
1) Is your hosting account running out of disk quota?
2) Is there a small PHP timeout setting which is preventing this from working
3) Is there a small PHP memory setting which is preventing this from working

If you have access to any other hosting accounts on a different server, I would suggest you try using Gallerific on there to confirm that it is a server-related issue. You may also need to chat to your hosting company about it.

Hope this helps.

JB
tone72 replied on at Permalink Reply
tone72
Hi JB. Thank you so much for your reply. It was very helpful. The site is running on an internal webserver so plenty of disk space and I have access to change any webserver settings. I changed the max_execution_time = 120 and the gallery now displays, but the page with the gallery is very slow to load. I haven't changed these settings before in the php.ini so I'm not sure exactly what else I can change to get it working faster. Currently I have max_input_time = 60 (default) and memory_limit = 128 (default). Can you suggest any other settings in PHP or Apache that I can modify to make page load time faster. Is there an optimal image size for this gallery. The client wants the files to be high quality (around 1.5MB each) - is this too large for the gallery to function properly? Thanks again. TM
tone72 replied on at Permalink Reply
tone72
Also, the gallery is only showing images in landscape mode. This means that photos that are uploaded that are in portrait mode are cut off (not good as some heads are being cut-off). What do I modify to permit images to display in both landscape and portrait mode? Thanks!
jb1 replied on at Permalink Reply
jb1
Ok, good to hear you're making progress.
There are a couple block templates which offer different sizing and cropping options. In edit mode, just click the block and choose "custom templates".

The first time the gallery is loaded it will generate the thumbnails which can take a bit of time. But once they're cached on the server, it should be very fast. Sometimes the caching doesn't "stick" for some reason, so you can force the regeneration/caching process by doing the following:
1) Open the helpers/imageresizer.php file in a text editor
2) Comment out lines 132 and 135 by placing 2 forward slashes at the start (it is the start and end of an "if" statement).
3) Upload this file to your server and reload the page with Gallerific on it. This will force the regeneration of the thumbnails.
4) Remove the comments and upload the imageresizer.php file again to your server.
5) Reload the page and you should find it loading nice and quick.

I hope this helps. Please let me know how you go with that.

JB
tone72 replied on at Permalink Reply
tone72
Hi JB. Thank you so much for the customer service you are giving. It is excellent! I spoke to the client and suggested that 1.5MB per image was an excessive file size to expect the page to load in a reasonable time. They agreed and I have now reduced the file size and dimensions of all images. This has helped greatly and the gallery is now loading faster (although it still takes to the count of 9-10 to load the page). I did what you suggested to ensure that the thumbnails were cached properly as well. I have a new issue now in that I am now using the custom template no_crop_500x600 to prevent images in portrait mode from being chopped off. However, the images still have the bottom chopped off and they display to the left-hand side of the display area (not centred). What settings can I add or modify to centre the portrait images in the display area horizontally? Landscape images are displayed centred vertically already. Thanks again JB.
tone72 replied on at Permalink Reply
tone72
Hi JB. I sorted out my issue with the horizontal alignment of portrait mode images by changing div.slideshowg to text-align: center. I also sorted out how the bottom of portrait mode images was being cut-off by changing to outputThumbnail2 in the view.php. Just one more thing I think the client should be happy. The thumbnail image that is automatically generated 'cuts' the photo from all sides. Is it possible to set it so portrait photos are cut from the top and sides so no heads are cut-off even in the thumbnails? Hope this makes sense! Thanks a million times over.
jb1 replied on at Permalink Reply
jb1
Yes, that makes sense. It's a bit tricker said than done unfortunately.
All the heavy lifting for the cropping and resizing is done in the helper file imageresizer.php. I haven't played around with this, but the line of code you want to try tweaking is: 100

$res = @imageCopyResampled($thumb, $image, 0, 0, ($x_mid-($width/2)), ($y_mid-($height/2)), $width, $height, $width, $height);


The "$x_mid-($width/2)" and "$y_mid-($height/2)" basically centre the image. I don't know the correct value off the top of my head, but if you want to crop the top (vertically), try changing the 2nd part to "0". Have a play with that and see what happens.

As for the loading time, you could try editing line 130 on the imagereizer.php file. Instead of "-jbgallerific" try changing that to "-jbg". It is possible that the file name generated is too long for your server, so it's not being cached correctly. Shortening the filename may help. If it does cache correctly, loading time should be only 3-5 seconds for a "larger" set of images (on a fast server).

If you're happy with the support provided, I'd greatly appreciate a positive review in the marketplace:
http://www.concrete5.org/marketplace/addons/gallerific/reviews/...

JB
tone72 replied on at Permalink Reply
tone72
Hi JB. Thanks so much for that information. It worked exactly as I required. By replacing the ($y_mid-($height/2)) with 0 the portrait mode thumbnails are now cut from the top down and no heads missing. The gallery is working as the client requires. Your assistance has been invaluable and much appreciated. TM
jb1 replied on at Permalink Reply
jb1
Fantastic, that's great to hear, well done.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.