[SOLVED] Images not showing up after gallery2 migration (thumbs are fine)
justinco
Joined: 2014-03-03
Posts: 8 |
Posted: Mon, 2014-03-03 08:24 |
Hello, I just migrated my gallery2 installation, that has been running fine on my home server (LAMP) for over 10 years, to a new hosted service. Everything went well except some images are not showing up in my more recent albums. I can see the thumbnails just fine, but there are no re-sized large images. In some of my older albums it will show one of the various re-sized images but not all of them (say I had original size, 800x600, and 1024x768 resolutions). The only differences from my own server and the hosted service is the hosted service only has ImageMagick. My old server has that and NetPbm, Gd, and Dcraw. So, in my new hosted gallery2 settings I just have ImageMagick installed and activated. I thought maybe ImageMagick could not re-size some of my newer photos or something on the hosted service. However, to test, I went to my old server which is still running locally, and disabled all but ImageMagick and all the images continued to work fine. I have tried just about everything I could think of. Deleted caches multiple times, re-ran the upgrade tool, tried various rewrite settings, no luck. Examples of images not showing up, but thumbs working: Example of images showing up, but not for all image sizes (full size says 92x92): It seems like images that have really large resolutions are not getting processed. Almost all of my more recent photos were taken with a DSLR in high res/quality, and it seems like those ones are not working. My older albums that were taken with a different camera all work fine. Could this be a image toolkit issue, or maybe php.ini? The error from the event log was like this one (I don't have access to mine 'cause I'm running thumbnail rebuild/resize): Quote:
Error (ERROR_TOOLKIT_FAILURE)in modules/imagemagick/classes/ImageMagickToolkit.class at line 409
|
|
Posts: 8339
this is where IM is trying to identify the type/dimensions of media it is working on and is failing.
You could try more verbose error messages
FAQ: How to set/use Gallery in debug mode?
But first I would make sure file permissions are set correctly in g2data
chmod -R 0777 /path/to/g2data/
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 8
I will see if I can get the perms changed, I can't see where I can recursively change permissions in cPanel. I have gone and manually checked image permissions however. Everything is 644 for the image files and 755 for the directories. Working images or broken images, all have same perms.
Also, here is an actual full error message for my problem:
I'm working on getting the debug output as well.
Posts: 8339
Looking like a permission issue.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 8
Had hosting provider change perms, chmod -R 0777 /path/to/my/g2data_folder. Still have the problem.
Posts: 8
Also had hosting provider install Netpbm. I changed the settings for Netpbm to be priority and still have the problem. Different error but same issue.
Also, if it was a permission problem, how come I can click the "download photo in original format" and that works?
Posts: 8339
Line 638 is where gallery is trying to do the actual work on the image in the data.gallery.tmp directory. If the permissions are not correct on this directory, gallery won't be able to work there.
Does your IM toolkit pass its tests?
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 8
Yes, it passes. See attached. I will confirm the permissions myself when I get a chance. I suppose the hosting provider could have gotten it wrong.
Posts: 8
So I checked the permissions, everything was 777 except for the g2data/tmp/ directory. I changed that and still no luck. Debugging is enabled but I see nothing that indicates a problem myself yet.
Posts: 8
As a test, I re-added the first picture in this album, through gallery.
http://repo.jackmoves.com/v/justin/bmw_330/
The newly uploaded picture works just fine. It is the first picture in the album. I am doing some re-upload tests of some images to see what happens.
Posts: 8
After a bunch of testing and trying different things, I think I finally found the problem.
My watermarks (in plugins_data folder) got corrupted somehow in the migration and were somehow causing the images to not render properly. I replaced them with good ones and things are better, I am seeing good resized images now for the most part. Although there are still some images being resized at 92x92 for some reason.
I'm going to put it in maintenance mode and re-upload all my original album images directly this time (as opposed to zipped and unzipped like I did for the migration).
Figure out tomorrow what to do with the remaining images having problems.