Can't create or show optimized image. Please help.

skuba

Joined: 2004-05-06
Posts: 103
Posted: Mon, 2014-04-07 05:10

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
)

AttachmentSize
Screen Shot 2014-04-06 at 9.50.07 PM.png342.1 KB
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-04-07 12:23

make sure imagemagick is installed and passes its tests.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Mon, 2014-04-07 16:56
Quote:
make sure imagemagick is installed and passes its tests.

Hi, as mentioned on original post, it did pass all tests:

Quote:
Nome do arquivo binário Passou/Falhou
identify
Passou
convert
Passou
composite
Passou

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-04-07 17:54

Make sur Gallery Admin -> Filesystem Permissions are set correctly.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 03:43

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.

Quote:
Date Mon 07 Apr 2014 09:05:28 PM UTC
Type Image Error
Location http://www.xxxxx.com/fotos/main.php
User Id 23484
Client 17.115.50.150
Summary Unable to build image
Referer http://www.xxxxxxx.com/fotos/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=32103
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=32103
[formUrl] => /fotos/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=32103
[authToken] => cec77b9231b4
[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] => Add Items
)

)

[itemId] => 32103
[addPlugin] => ItemAddFromBrowser
)

What else can I try?

Thanks for helping.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-04-07 21:26

If IM is failing try php's built-in GD toolkit.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Mon, 2014-04-07 21:38

I tried, but it's failing the test.

Quote:
GD version Required Pass/fail
2.1.0 (bundled) 2.0
Failed
This GD version is too old and is not supported by this module! Please upgrade your PHP installation to include the latest GD version.

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:

Quote:
Last Run Details:

Gallery URL = http://www.redacted.com/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

Thoughts?

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-04-07 21:44
 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Mon, 2014-04-07 23:05

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"

Quote:
Date Mon 07 Apr 2014 10:59:42 PM UTC
Type Image Error
Location http://www.xxxxx.com/fotos/main.php
User Id 23484
Client 17.115.50.150
Summary Unable to build image
Referer http://www.xxxx.com/fotos/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=32112
Details
Error (ERROR_UNSUPPORTED_FILE_TYPE, ERROR_TOOLKIT_FAILURE)in modules/gd/classes/GdFunctionality.class at line 216 (GalleryCoreApi::error)
in modules/gd/classes/GdFunctionality.class at line 273 (GdFunctionality::checkResource)
in modules/gd/classes/GdToolkit.class at line 471 (GdFunctionality::imageCreateFromPng)
in modules/gd/classes/GdToolkit.class at line 362 (GdToolkit::_getImageResource)
in modules/core/classes/GalleryDerivative.class at line 452 (GdToolkit::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

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-04-07 23:25

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

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Mon, 2014-04-07 23:41

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-04-07 23:52

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.

  • clear the cache in gallery admin
  • run the upgrader to setp 2(system checks) and copy us on any reported issues.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 03:49

Duh, it was getting old info cause I didn't run the system info. Here it is updated:

Quote:
Get system details; useful for copy/paste into G2 support forum.
Last Run Details:

Gallery URL = http://www.xxxxx.com/fotos/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.28 cgi-fcgi
Webserver = Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4
Database = mysqli 5.5.36-cll, lock.system=flock
Toolkits = LinkItemToolkit, Thumbnail, ArchiveUpload, ImageMagick, Gd, NetPBM
Acceleration = none, none
Operating system = Linux server.xxxxx.com 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64
Default theme = snow
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
Rows in GalleryAccessMap table = 65
Rows in GalleryAccessSubscriberMap table = 2647
Rows in GalleryUser table = 3
Rows in GalleryItem table = 2635
Rows in GalleryAlbumItem table = 111
Rows in GalleryCacheMap table = 0

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.

Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator,

and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-08 10:23

you don't want the upgrade directory to be 777. directory - 755 file in - 644

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 15:25

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.

Quote:
You tried to run the upgrade process but a valid config.php is missing.

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-08 16:04

in your gallery directory run these commands:

find . -type f -print0 | xargs -0 chmod 0644
find . -type d -print0 | xargs -0 chmod 0755

in your g2data directory run:
chmod -R 0777 *

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 17:59

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.

Quote:
root@server [/home/snow07/public_html/fotos]# find . -type f -print0 | xargs -0 chmod 0644
root@server [/home/snow07/public_html/fotos]# find . -type d -print0 | xargs -0 chmod 0755

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.

Quote:
System Checks
PHP Version
Success

FILE Directive
Success

Safe Mode
Success

exec() allowed
Success

set_time_limit() allowed
Success

Memory limit (64Mb)
Success

File uploads allowed
Success

Maximum upload size (2Mb)
Success

Maximum POST size (8Mb)
Success

Translation support
Success

Storage Directory Permissions
Success

Gallery file integrity
Warning

- Missing files (38)

- Modified files (44)
Database permissions
Success

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-08 18:10
Quote:
Maximum upload size (2Mb)
Success

Maximum POST size (8Mb)
Success

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.

Quote:
Gallery file integrity
Warning

- Missing files (38)

- Modified files (44)

troubling indeed. especially the missing files.
grab a new copy of gallery and upload them.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 18:37
Quote:
Quote:
Maximum upload size (2Mb)
Success
Maximum POST size (8Mb)
Success

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.

I just changed max upload size to 4M on the PHP configurator. Max post size I imagine is a gallery setting?

Quote:
Gallery file integrity
Warning
- Missing files (38)

- Modified files (44)

troubling indeed. especially the missing files.
grab a new copy of gallery and upload them.

-s

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-08 18:39

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

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 20:21
Quote:
post_max_size is a php setting. here is mine:
upload_max_filesize 128M
post_max_size 128M

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.

Quote:
What was the GD class error?

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.

Quote:
if (preg_match('/^>?2\.1/', $gdVersion)) {

.

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

Quote:
Error (ERROR_UNSUPPORTED_FILE_TYPE, ERROR_TOOLKIT_FAILURE)in modules/gd/classes/GdFunctionality.class at line 216 (GalleryCoreApi::error)
in modules/gd/classes/GdFunctionality.class at line 273 (GdFunctionality::checkResource)
in modules/gd/classes/GdToolkit.class at line 471 (GdFunctionality::imageCreateFromPng)
in modules/gd/classes/GdToolkit.class at line 362 (GdToolkit::_getImageResource)
in modules/core/classes/GalleryDerivative.class at line 452 (GdToolkit::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

I get it with ImageMagik

Quote:
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

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-08 20:32

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

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Tue, 2014-04-08 21:01
Quote:
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?

1 - I have tested with JPG and PNG...here is the error with JPG

Quote:
Error (ERROR_UNSUPPORTED_FILE_TYPE, ERROR_TOOLKIT_FAILURE)in modules/gd/classes/GdFunctionality.class at line 216 (GalleryCoreApi::error)
in modules/gd/classes/GdFunctionality.class at line 273 (GdFunctionality::checkResource)
in modules/gd/classes/GdToolkit.class at line 471 (GdFunctionality::imageCreateFromPng)
in modules/gd/classes/GdToolkit.class at line 362 (GdToolkit::_getImageResource)
in modules/core/classes/GalleryDerivative.class at line 452 (GdToolkit::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

By the way, Gallery says the upload was successful even when I have these issues:

Quote:
Upload Complete
Successfully added 1 file.
Added plicia.jpg

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

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Wed, 2014-04-09 00:22

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:

Quote:
Error (ERROR_UNKNOWN) : Could not get/convert/extract overlay in modules/netpbm/classes/NetPbmToolkit.class at line 267 (GalleryCoreApi::error)
in modules/core/classes/GalleryDerivative.class at line 452 (NetPbmToolkit::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/GalleryTheme.class at line 1737 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in themes/classic/theme.inc at line 141 (GalleryTheme::loadCommonTemplateData)
in modules/core/classes/GalleryTheme.class at line 938 (ClassicTheme::showPhotoPage)
in modules/core/classes/GalleryView.class at line 301 (GalleryTheme::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88

What else can I try?

Much appreciated.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2014-04-09 15:34

link to phpInfo?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
skuba

Joined: 2004-05-06
Posts: 103
Posted: Wed, 2014-04-09 15:46

Here you go:

http://65.181.113.121/info.php

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2014-04-09 16:04

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