My info:
Quote:
Gallery URL = http://www.redactedcom/fotos/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.5 apache2handler
Webserver = Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5
Database = mysqli 5.0.95-community-log, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, SquareThumb, ArchiveUpload, ImageMagick, NetPBM, Gd
Acceleration = none, none
Operating system = Linux snowbrasil.fbyneserv.com 2.6.32-042stab057.1 #1 SMP Fri Jun 22 02:17:07 MSD 2012 x86_64
Default theme = snow
gettext = enabled
Locale = pt_BR
Browser = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Rows in GalleryAccessMap table = 17
Rows in GalleryAccessSubscriberMap table = 2149
Rows in GalleryUser table = 3
Rows in GalleryItem table = 2137
Rows in GalleryAlbumItem table = 90
Rows in GalleryCacheMap table = 0
Host company recently moved my site to different server. It was just a big dump and I couldn't do anything about it. Since them I am having issues with Gallery.
My Gallery doesn't show the optimized picture for the most recent album created as well as new I try to create.
For my old albums it will show the thumbnail but when clicked won't show the optimized image although it's in the albums folder. The files are there, is there a way to re-link them?
And for the new albums I create after the server migration it won't show the optimized image but will offer link to full size image download (see attachment). I think it's not creating the image either because when I go inside the folder it's empty. Curious thing is that all new album folders are being created with permission 700 while all others are 777.
I really appreciate your help. Have spent so many hours on this.
Event log error (ImageMagick is installed and passed all tests, but can't create the file. I think has to do with folder permission. MY host company doesn't know what to do since this is a 3rd party product.
Quote:
Event Details
Data Seg 07 Abr 2014 04:47:05 UTC
Tipo Image Error
Location http://www.redacted.com/fotos/main.php
User Id 23484
Client 24.5.79.122
Resumo Unable to build image
Referer http://www.redacted.com/fotos/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=32087
Details
Error (ERROR_TOOLKIT_FAILURE)in modules/imagemagick/classes/ImageMagickToolkit.class at line 638 (GalleryCoreApi::error)
in modules/imagemagick/classes/ImageMagickToolkit.class at line 363 (ImageMagickToolkit::_transformImage)
in modules/core/classes/GalleryDerivative.class at line 452 (ImageMagickToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274 (GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line 153 (GalleryDerivative::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 844 (GalleryDerivativeImage::rebuildCache)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 822 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/CreateThumbnailOption.inc at line 66 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/ItemAdd.inc at line 350 (CreateThumbnailOption::handleRequestAfterAdd)
in modules/core/ItemAdd.inc at line 166 (ItemAddController::postprocessItems)
in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
in modules/core/classes/GalleryTemplateAdapter.class at line 1089
in /home/snow07/g2data-old/smarty/templates_c/%%4026596137/snow/%%77^773^7731C556%%theme.tpl.php at line 69 (GalleryTemplateAdapter::trailer)
in lib/smarty/Smarty.class.php at line 1255
in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
in main.php at line 506 (GalleryTemplate::display)
in main.php at line 104
in main.php at line 88
Request variables: Array
(
[return] => /fotos/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=32087
[formUrl] => /fotos/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=32087
[authToken] => 6da86ecb7ca3
[controller] => core.ItemAdd
[form] => Array
(
[formName] => ItemAddFromBrowser
[caption] => Array
(
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
[12] =>
[13] =>
[14] =>
[15] =>
[16] =>
[17] =>
[18] =>
[19] =>
[20] =>
)
[set] => Array
(
[title] => filename
[summary] => on
[description] => on
)
[CreateThumbnailOption] => Array
(
[createThumbnail] => on
)
[action] => Array
(
[addFromBrowser] => Adicionar ítens
)
)
[itemId] => 32087
[addPlugin] => ItemAddFromBrowser
)
Posts: 8339
make sure imagemagick is installed and passes its tests.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Hi, as mentioned on original post, it did pass all tests:
Thanks
Posts: 8339
Make sur Gallery Admin -> Filesystem Permissions are set correctly.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Hi, I found the settings and changed to 777 for folder and 666 for file. Still the same issue, ImageMagick can't create image.
But I see the file in the albums folder. Is that file not the optimized one? I see it's a small file size, so I assume it's optimized.
Again log says unable to build image. But thumbnail is being built, seems like optimized file is in the folder.
What else can I try?
Thanks for helping.
Posts: 8339
If IM is failing try php's built-in GD toolkit.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
I tried, but it's failing the test.
Not sure why if my PHP is 5.3..28.
But what's weird, is that Gallery I think thinks I am still on the old server with old PHP. This is from the Gallery system info:
Thoughts?
Thanks
Posts: 8339
http://galleryproject.org/node/111912#comment-406870
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Cool, it passes the test now. Thanks. But why does system info keeps seeing my old server settings? Shouldn't it be looking at the local server PHP and reporting it? Is it a system info cache issue?
As far as the original issue I had, I moved GD to priority toolkit. Still same error "couldn't build image"
Created the thumbnail but no optimized image when click on thumbnail. Folder is 777 and image 666. Image is in the folder and it's optimized.
Anything I need to check inside the tables? To see if the thumnail is referencing the correct image? Although, something tells me if Gallery "couldn't" build the image, it didn't update the DB with that thumb>image connection.
Thanks
Posts: 8339
Did you check all settings in config.php?
FAQ: How can I move my Gallery installation from one server to another?
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
I didn't have control of the server migration. The host company team just moved it all over. But I did upgrade to latest G2 version after and everything passed.
Checked config.php now:
$gallery->setConfig - is correct
hostname, database name, username, password, all correct
prefix is correct
$storeConfig['type'] = 'mysqli';
but the storage type on the DB is InnoDB. Should I change the parameter above? to what?
Thanks
Posts: 8339
You mentioned gallery referencing your old setup. that is not cached, so the only place it could come from is config.
So to remove any questions.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Duh, it was getting old info cause I didn't run the system info. Here it is updated:
I just cleaned the cache but can't run the upgrader or installer, getting system error. Very strange because I can run Gallery (with the issue of this post) but it runs.
I assume you want me to access the upgrade folder. I see the files there via FTP. I even changed permissions to 777 to see if that was the issue.
It's also weird because I have ran the installed and upgrader a couple days ago.
Thanks
Posts: 8339
you don't want the upgrade directory to be 777. directory - 755 file in - 644
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Hi, sure, that was just me testing. I thought that opening it up maybe would work. I have now changed as you suggested and the upgrader started running except that it doesn't find config.php.
The file is right there under gallery folder. The file is the same I upgraded a couple of days ago. But anyway I have tried some other backup versions I have. Tried changing permissions. Nothing works.
But worst, now Gallery is not working just gives an "Error" or blank page. It was working fine until I tried to run the upgrader yesterday. This is getting worse.
Thanks so much for sticking with me. What should I try next?
Thanks
Posts: 8339
in your gallery directory run these commands:
in your g2data directory run:
chmod -R 0777 *
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
g2data was already 777, but I ran it again recursive all files and dirs.
I had the host company run the command as I am having trouble using SSH right now.
I do see via FTP that all dirs are now 755 and all files are 644 under gallery folder.
I was able to run upgrader now. Thanks for this.
These are the system check results. The only issues seem to be related to theme Matrix, except for a GD class error.
Thanks
Posts: 8339
these 2 suck and are the minimum default set by php.
Most good hosts make these much larger.
Although you may also have control of them as well.
troubling indeed. especially the missing files.
grab a new copy of gallery and upload them.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
I just changed max upload size to 4M on the PHP configurator. Max post size I imagine is a gallery setting?
Even thou it's all Matrix theme related and it's not even the theme I use?
So, upload all files and run the installer again or the upgrader? When I run the installer a couple days ago those files missing were there and running installer did not fix them.
I just re-uploaded the theme/matrix/ folder, and it made no difference. As far as the /locale/ items missing that is not part of the default theme packet. So I moved the locales files from my custom theme folder and it's not giving out any more missing files, just the modified ones, which should have no impact on the original issue reported here.
And the issue with GD class was that hack you recommended I do to pass the version test.
Thanks
Posts: 8339
post_max_size is a php setting. here is mine:
upload_max_filesize 128M
post_max_size 128M
if the missing and modified files are from matrix, I would now worry about it.
What was the GD class error?
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Great, I found it on advanced settings now. Changed to 16M. I don't see why I would need more, never upload images that big. And the ones I have been using for testing are under 1M.
Not an error per se, it's a warnings for modified file. It's the changed you recommended so it would pass the version test.
.
So all this is done. The issue with Gallery is the same, I can upload an image, creates a thumbnail, I also see the optimized image on FTP, but image page won't display the optimized image.
I am attaching again the flow as a reminder of the issue.
The error on event log is that "unable to build image"
I get it with GD
I get it with ImageMagik
They both pass the tests.
SO pretty much, I have a picture page, example:
http://www.redacted.com/fotos/v/abcde/equip+brasile+no+lift.JPG.html
that won't show the image
but there is a link to "download original format" and it does link to the image
http://www.redacted.com/fotos/v/abcde/equip+brasile+no+lift.JPG
I wonder, what's missing? Somewhere one thing is not referencing the other.
Thanks
Posts: 8339
GD is claiming unsupported filetype.
IM cannot write to the filesystem. - Filesystem permissions issue.
AND why would you link to a site that you don't own as an example?
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
1 - I have tested with JPG and PNG...here is the error with JPG
By the way, Gallery says the upload was successful even when I have these issues:
2 - Where else could I check the permissions? G2data is all set to 777. Gallery was all set to 755 and 644 like you suggested.
3 - Redacted means that I am blocking the real site name. For 2 reasons. One I don't want to risk getting penalized by Google for posting my URLs on forums, but second because you would be seeing the old site. The new site is running under an IP address and I access it using Gas Mask which lets me change the localhost data so I can access new site with domain of old site.
I could provide all the information to you on private message, my FTP credentials, IP of new server, etc...
Thanks
Posts: 103
Hi, just to add one more piece of information to the above. This time I ran NetBPM. Same thing happened. File uploads successfully according to Gallery. Thumbnail is created successfully. I see the optimized original image on the album folder. But when clicking through thumbnail to the image page, image is not there, just get the crashed image icon, and there is a text link to access the image on original file format, which works.
My guess is that ir's creating thumb and optimized original size, but not the resized image. Cause that's the one breaking.
Here is the error from event log:
What else can I try?
Much appreciated.
Posts: 8339
link to phpInfo?
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 103
Here you go:
http://65.181.113.121/info.php
Thanks
Posts: 8339
unfortunately everything looks fine in your php settings. The only other thing is directory permissions in g2data where gallery does its work.
-s
________________________________
All New jQuery Minislideshow for G2/G3