"No Thumbnail" Link instead of an actual thumbnail

lyme

Joined: 2004-12-28
Posts: 13
Posted: Tue, 2004-12-28 20:35

My new install is not actually placing a thumbnail image up. Instead it posts a link that says "no thumbnail". Can someone please check out the gallery and let me know if I forgot a setting? or need to fix something. I am turning debug mode to on.

Also the naigation link is missing the "Album/main.php" before the ? Does anyone know what may be causing this?
----

Gallery URL (optional but very useful): http://www.lymetech.com/Album/main.php
Gallery version: 2
Apache version: 1.3.31
PHP version: 4.3.3
Operating System: Linux(unix)
Graphics Toolkit:
Web browser/version (if applicable): firefox 1.0

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-12-28 21:39

[Moving to Gallery 2 support forum]

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-12-28 22:25

do you have an active graphics toolkit? (imagemagick, netpbm or gd module)

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Tue, 2004-12-28 22:41

I may be crazy but I am assuming that imagemagic is bundled with the package gallery-2.0-alpha-4.zip on source forge.

so whatever version of imagemagic that is included with is what I am using.

I appologize for being a novice.

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Wed, 2004-12-29 21:01

Well...I'm working on the install for imagemagick. I think I know now what my deal was...and duh!

Anyways i still need help with why the links are not getting parsed properly. I am not generating any erros to speak of. My gallery is sitting at lymetech.com/Album/main.php. When the navigation creates the links "back to gallery" on the left hand bar is does not insert the neccesary "/Album/main.php" Where can I edit to fix this problem? See image below

[img]http://lymetech.com/images/wrong-link.jpg[/img]

Please and thank you for the help in advance!

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 16:39

Hmm. Well I'm taking it that i have to continue digging around these files to find out why its not parsing the navigation structure properly. Its not generating any errors from this.

Additionally. I have now got the tumbnail to post an image but its not resizing it properly. I am using NetPBM. Are there some additional settings aside from pointing it to the right directory that I need to modify to get it to work properly?

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 16:46

Actually is this my problem? i am looking at the installed madules. I click on the thumbnail manager buttong to install and I get this error

Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 782 (gallerystatus::error)
    * in modules/core/classes/GalleryStorage.class at line 261 (mysqldatabasestorage::addmapentry)
    * in modules/core/classes/interfaces/GalleryPluginParameterMap.inc at line 124 (gallerystorage::addmapentry)
    * in modules/core/classes/helpers/GalleryPluginHelper_medium.class at line 385 (gallerypluginparametermap::addmapentry)
    * in modules/core/classes/helpers/GalleryPluginHelper_medium.class at line 335 (gallerypluginhelper_medium::_addparameter)
    * in modules/core/classes/GalleryCoreApi.class at line 306 (gallerypluginhelper_medium::setparameter)
    * in modules/core/classes/GalleryPlugin.class at line 210 (gallerycoreapi::setpluginparameter)
    * in modules/core/classes/GalleryModule.class at line 178 (thumbnailmodule::setparameter)
    * in modules/core/AdminModules.inc at line 68 (thumbnailmodule::installorupgrade)
    * in main.php at line 170 (adminmodulescontroller::handlerequest)
    * in main.php at line 47
    * in main.php at line 40

When I installed G2 I checked everything so everything should have been installed. For some reason this one didn't.
The ffmpeg and nokia image upload also didn't install.

I could really some help here with these problems. I do apppreciate it.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-30 17:28

thumbnail mgr doesn't work in alpha-4.. use a recent nightly snapshot.
no, there aren't any other settings for netpbm that you should need.. what is "not resizing properly" ?
baschny wrote the navigation links stuff.. perhaps he can figure out why the link isn't constructed properly. it might help if you can post a link to your phpinfo (a php file with just <?php phpinfo(); ?> in it)

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 17:45

Its keeping it at the original size. Instead of resizing the image and placing the thumbnail in the thumbnail directory. It actually doesn't even place an image in the thumbnail directory at all.

my php info file....looking

Thanks!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-30 18:40

try putting your G2 in buffered debug mode in config.php and PM me a login/passwd to your G2 with admin privileges.. i don't know what you mean by "thumbnail" directory; it looks like it is building the thumbnail but it's just a copy of the full size image.

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 18:50

pm sent

thanks!

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 21:09

I'm back. OK. I did as you stated in the PM. Which was clear the db and start over. It actually worked!

Now I'm trying to fix the navigation problem in the image above. What happens, again, is that it forgets to place the 'Album/main.php' into the link it generates. I've been all over these php files and i can't seem to find out which one is making the bad call. I'm guessing it something to do with the $_relativeG2Path ? Am I wrong by thinking that? It also forgets to place in some buttons while doing administration.

Any help would be appreciated.

...or do I have to add a line in my php.ini file poiting to the g2 directory?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-30 21:25

the problem is almost certainly in GallleryUrlGenerator, but not to do with _relativeG2Path, which is empty for a standalone install. again, phpinfo might help with this.

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 21:33
 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 21:48

*edit*

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 22:13

Well. i don't mean to keep posting to my own post. Could this problem have something to do with cookies? In my php.ini file?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-30 22:14

why did you post that? we all have that file.

no, the problem is probably in GalleryUrlGenerator.class, not in cookies or php.ini

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Thu, 2004-12-30 22:17

I'm trying to make it easier to solve this problem. I'll yank it. :)

 
lyme

Joined: 2004-12-28
Posts: 13
Posted: Fri, 2004-12-31 17:42

ok. My eyes are spinning in my head. Lots of reading php. I understand the code a bit better now. Correct me if I'm wrong.

The navigation bar and some buttons call url information from WebHelper_Simple.class and GalleryUrlGenerator.class. I think the problem with not parsing the 'Album/main.php' in the links and buttons may be from the first and not the second.

Can anyone help me with this problem?

The install has come a long way and everything is working beautifully except for this. Users can not register yet because the button to register leads them to http://lymetech.com/?g2_fromNavId=xc387d42f again missing the Album/main.php in between the "/" and the "?"

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2004-12-31 19:05

you need to figure out if some $_SERVER var isn't what the GalleryUrlGenerator code is expecting, or if some string handling code is causing the url to be formed incorrectly. maybe add some print statements in there to figure out how it pieces together the urls.. and why some work and a few don't. good luck!

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Sat, 2005-01-01 08:07

Dear Expert,

I have the same problem not being able to create thumbnail. I did install NETPBM and set permission to 755. But when I run the test, it gives me FAILED messages.. Please help

Quote:
NetPBM binary test results
Binary Name Pass/Fail
giftopnm Failed
ppmtogif Failed
jpegtopnm Failed
pnmtojpeg Failed
pngtopnm Failed
pnmtopng Failed
tifftopnm Failed
pnmtotiff Failed
bmptopnm Failed
Error messages

File does not exist
ppmtobmp Failed
Error messages

File does not exist
pnmcomp Failed

 
mindless
mindless's picture

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

theunknown, put your G2 in buffered debug mode in config.php and try the test again. Look through the debug output and find where it does exec calls on the netpbm binaries and you'll see the output.. this should give you a better idea what went wrong. Are you sure the netpbm binaries are for your os?

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Sat, 2005-01-01 17:51

Hi there,

Thanks for your quick response. Unfortunately I have no idea when I look at the debug output.. Can you help me look at it? PMED the info

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-01-01 18:05

sorry, your site just times out for me.

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Sun, 2005-01-02 05:43

PM SENT

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Mon, 2005-01-03 03:56

did u receive anything from me mindless? I sent you another PM

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-03 09:33

theunknown, mindless suddenly got very very busy (his wife is having a baby as I post this) so it's unlikely that he's gonna have time to help you for .. err .. the rest of his life. :-) Ok, maybe not that long -- but for a little while. In the meantime, if you PM me the same info I'll look into it for you.

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Tue, 2005-01-04 05:35

oh thanks! Message sent to you bharat

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-04 21:58

ok, theunknown, your problem is that your config.php has a bug in it. When i try to view images I get:

Warning: Cannot modify header information - headers already sent by (output started at /xxx/gallery/config.php:136) in /xxx/gallery/modules/core/DownloadItem.inc on line 162

This means that on line 136 of your config.php you're printing out something. Make sure that your config.php has *nothing* outside of the <?php ?> block!

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Thu, 2005-01-06 06:42

I think I got it fixed... Thanks a lot ADMIN!!! .... But how did you get the NETPBM installed though? What did you do to get it fixed?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-01-06 07:52

I didn't do anything special. I put in the path to NetPBM that you suggested and hit "test" and everything passed except for the BMP binaries, but those aren't required so I saved the settings and activated the module.

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Thu, 2005-01-06 22:18

ohhhhh i did that too but didnt work.. thanks for your help mr. Admin!

Oh yeah... how do I modify the Random Image Block .. I want to have a random image block on my other page not the gallery page itself

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Wed, 2005-01-12 05:47

anyone?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-01-12 07:05

visit Site Admin / Random/Popular
there are instructions there.

 
theunknown

Joined: 2005-01-01
Posts: 15
Posted: Thu, 2005-01-13 18:17

oh thanks I think I found it!! U guys rock!!!

 
ChrisJBZero

Joined: 2005-03-06
Posts: 2
Posted: Sun, 2005-03-06 11:06

Hi,

I am also struggling to get thumbnails to be displayed using NetPBM and would appreciate some help.

This is the result of running the test setting for NetPBM

NetPBM binary test results
Binary Name Pass/Fail
giftopnm Passed
ppmtogif Passed
jpegtopnm Passed
pnmtojpeg Failed
pngtopnm Passed
pnmtopng Passed
tifftopnm Failed
pnmtotiff Failed
bmptopnm Failed
Error messages:

File does not exist
ppmtobmp Failed
Error messages:

File does not exist
pnmcomp Failed

Debug listing : http://www.mkco.org/log/errorlog1.txt
PHP details : http://www.mkco.org/test.php
Gallery: URL : http://www.mkco.org/gallery2
Gallery ver: gallery-2.0-beta-1
NetPBM: betpbm-gallery-1.4.pl2-linux-intel

Thanks

Chris

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-03-06 11:25

ChrisJBZero, there's nothing wrong with it. Hit save and activate the netpbm module. The ... failed messages just say that this operations are not supported by this netpbm package. If you require these operations, try to complete your set of operations by activating the GD and the imagemagick modules too, if you can.
Your links to Debug listing etc. didn't work for me.

 
ChrisJBZero

Joined: 2005-03-06
Posts: 2
Posted: Sun, 2005-03-06 11:34

Hi Valiant. Thanks for the very prompt feedback. I'll try to do as you suggest and let you know how I get on. The above links don't work because my website provider's whole network seems to have gone down. So I cannot gain any http/ftp access to any of my sites hosted by them. So I have to patient:(