[SOLVED] Blank images after upload

speckle

Joined: 2004-12-09
Posts: 36
Posted: Fri, 2005-03-04 14:58

Mindless, if you're around...
When I upload images (that seem to appear in the file system) the refreshed page is blank. When I go back to the album (or whichever page) that displays thumbnails or full images - they are blank. There are no images visible on my site.
Could this be related to a memory restriction of 8mb - the current (and seemingly unchangable) policy of Globat.com?
----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-03-04 15:47

full size images should be visible. if just resized / thumbnail versions are not there, then possible there are issues with creating these resized versions. but the full sized images are just the images you added to an album.

after adding an image to the album, can you find the image in the g2data directory?

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Fri, 2005-03-04 18:14

the pictures are there in g2data. it's strange. you can have a look if you like:
unphotogallery.org/main.php - no images visible. i think it may well be related to the crap service provider, globat. but then again, i'm not sure. it's the strangest thing...

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-04 19:34

valiant, I checked the site and it is thumbs/resizes that are blank.. full size shows fine.
speckle, do "view image" in your browser on a thumb/resize.. then turn on immediate debug mode in config.php and reload the image in your browser..

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Mon, 2005-03-07 08:48

even after i specify view image on the browser i still can't see any image.

i took a look in g2data and the photos are there, but their corresponding thumbnails are not in the thumbnails folder. i guess this is due to an incomplete install? (if so, it's strange since all products seem to be well installed)

on the site i set debug to true.

also, i cannot delete images. whenever i try to, the page tries to refresh and sticks on a blank page. when i refresh, it remains blank.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-07 16:39
Quote:
speckle , do "view image" in your browser on a thumb/resize.. then turn on immediate debug mode in config.php and reload the image in your browser..

it's not clear to me that you did this. try again, and look for any error messages in the debug output.

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Mon, 2005-03-07 17:01

i tried what you said but the problems persist:

1. cannot see thumbnails or full size images (thumbnails are not in the thumbnail folder but originals are in g2data)
2. deleting an album or image leaves a blank page, even on refresh. on immediate debug, the delete operation ends at :

GdToolkit::performOperation

no errors seem to be listed.

i've left the site on immediate debug. you can take a look (unphotogallery.org/main.php)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-07 17:22

yes, immediate debug mode always breaks all image downloads.. we use it only in cases like this where we can't get buffered debug output.
anyway, seems like your Gd doesn't work too well.. php totally bails out trying to build thumbnails, resizes... as you mentioned, debug output just ends when Gd tries to perform an operation.
maybe try imagemagick or netpbm.. otherwise rebuild php/gd or debug why it is unable to perform Gd operations. good luck..

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Tue, 2005-03-08 10:30

Gd, NetPBM and ImageMagic modules are all successfully installed. i tried with all 3 image toolkits and none allow me to see the thumbnail.

The good news, however, is that now I can see the full size image... whereas before i could not. (i think this was a permissions problem on the g2data album folder).

problem summary:

no thumbnail generated.
when in 640x427 mode nothing shows
when in 768x512 mode, the full size image appears

(there are no error messages were shown in any debug mode. the checkbox is marked for generating them automatically on upload, but it doesnt work - and there is nothing inside the thumbnail folder.)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-08 15:41

did you adjust toolkit priority in site admin? if not it's probably still trying to use Gd for everything (toolkit you activated first has highest priority by default)

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Mon, 2005-03-14 10:29

yes i did, but still no joy.

 
jamzyamz
jamzyamz's picture

Joined: 2004-01-12
Posts: 154
Posted: Mon, 2005-03-14 12:02

same problem for me with thumbnails. I am using square thumbs, and imagemajic. When I disable square thumbs mod, thumbs show fine.

 
asdf

Joined: 2005-03-11
Posts: 8
Posted: Mon, 2005-03-14 13:42

I was expiriencing the same problem (only full sized images visible after upload). Temporary solution that works for me is uninstalling Gd graphic toolkit (using PHP version 4.3.4 with Gd 2.0.15 compiled as a module) and disabling the Square Thumbnail module...

Where exactly in site admin can I see/set the graphic toolkit priorities?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-14 14:00
Quote:
Where exactly in site admin can I see/set the graphic toolkit priorities?

site admin, menu on the left side:
Admin Options

* Gallery
o General
o Modules
o Users
o Groups
o Members
o Registration
o User Albums
* Graphics Toolkits
o Ffmpeg
o ImageMagick
o NetPBM
o Toolkit Priority

IMO, we could refine the toolkit priority to specify a priority for each operation/formats. but there's no hurry for something like that.

 
asdf

Joined: 2005-03-11
Posts: 8
Posted: Mon, 2005-03-14 15:46

Thanks for your answer, valiant. It seems, that the "Toolkit Priority" menu item is visible only when multiple graphic toolkits installed (not my case - I have only Ffmpeg, ImageMagick and NetPBM). Sorry for my stupid question.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-14 16:06

if imagemagick and netpbm are both active then you should see toolkit priority.

 
asdf

Joined: 2005-03-11
Posts: 8
Posted: Mon, 2005-03-14 19:18

Somehow ImageMagick did not appear in the priority table. I assume it was because of my wild, unsupported upgrade Alpha3->Beta1. To correct this it was neccessary to uninstal and install ImageMagic, now it's all right (but did not solve the problem with blank images).

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-14 21:34

to get back to speckle who started this topic.. now that you have imagemagick or netpbm as top toolkit, retry the immediate debug test i described before and see what error message you get now (look for "Executing" in the debug output).

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Mon, 2005-03-21 15:48

I did that and there is no "executing"in the verbose. In addition, there are no error messages.

FYI:
Gallery URL: http://www.unphotogallery.org/main.php
Gallery version: 2.0-beta-1
Web Server: Apache/1.3.29 (Unix)
PHP version: 4.3.6
Database: mySql, version 4.0.13
Operating system: FreeBSD

There are no images saved in the g2_ThumbNails table.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-21 17:17

you didn't mention the behavior has changed... (not "blank images after upload" anymore, is it?)
it appears nothing is able to determine the image size.. viewing fullsize of your image does not show the dimensions, so it thinks it is 0x0..
g2_Thumbnails is for thumbnail manager, actual thumbnails are in g2_DerivativeImage

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-21 17:20

oh, that's because you started a new topic for fullsize-thumbs problem.. i'm marking this one solved.

 
speckle

Joined: 2004-12-09
Posts: 36
Posted: Mon, 2005-03-21 18:16

ok