Gallery upgrade and highlights problem

Dyason

Joined: 2004-04-20
Posts: 3
Posted: Tue, 2004-04-20 13:58

Upgraded to gallery 1.4.3 today running on apache 2. Seemed to go fairly smoothly and looks good but the highlights seem to be playing up. Is this a known bug? How can I fix it please?

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.dyason.com/gallery
Gallery version: 1.4.3
Apache version: 2.0.49
PHP version (don't just say PHP 4, please): 4.3.6
Graphics Toolkit: netpbm
Operating system: slackware linux 9.1
Web browser/version (if applicable): opera 7.23

 
jonMEGA

Joined: 2002-10-22
Posts: 71
Posted: Tue, 2004-04-20 16:43

I'm having the same problem.....

Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.jonmega.com/gallery
Gallery version: 1.4.3
Apache version: 1.3.29
PHP version (don't just say PHP 4, please): 4.3.4
Graphics Toolkit: netpbm
Operating system: redhat ES 3.0
Web browser/version (if applicable): IE 6 , firefox 0.8

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 18:11

Seems like mod_rewrite is playing with you guys. You can fix it by editing config.php manually.

Change

$gallery->app->feature["rewrite"] = 1;

into

$gallery->app->feature["rewrite"] = 0;

and see if that helps.

 
jonMEGA

Joined: 2002-10-22
Posts: 71
Posted: Tue, 2004-04-20 18:33

That doesnt fix it.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 18:46

jonMEGA, Seems like (some of) your highlight images are missing. What happens if you try specifying a new one? (login and select highlight picture in the dropdown under the picture you want highlighted)

 
Dyason

Joined: 2004-04-20
Posts: 3
Posted: Tue, 2004-04-20 20:06

Well I set rewrite to 0. Then I tried setting up highlights again. Still no luck. I also tried this when it was set at 1. Any idea what the window that pops up says as it disappears before I can read anything.

 
nolana

Joined: 2002-08-22
Posts: 13
Posted: Tue, 2004-04-20 20:09

I have the same issue, and also the uploading not working, related maybe ?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 20:33

Dyason, test account? Running any pop-up killers?

 
Dyason

Joined: 2004-04-20
Posts: 3
Posted: Tue, 2004-04-20 21:07

Managed to fix it because my friend was trying to upload and got a cannot generate thumbnail error. Turns out the netpbm library wasn't working properly after I enabled debug mode to see it. I just fixed that and I can generate highlights again now. I suggest trying to upload to your gallery and check that works, troubleshooting any problems. Then you might find the highlight problem fixed as I did.

Thanks for all the suggestions and help!!!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 21:24

Dyason, oh, cool. :) I was sure that NetPBM was working, since it seemed uploading worked. Glad you figured it out!!

 
jonMEGA

Joined: 2002-10-22
Posts: 71
Posted: Tue, 2004-04-20 21:41
Dyason wrote:
Managed to fix it because my friend was trying to upload and got a cannot generate thumbnail error. Turns out the netpbm library wasn't working properly after I enabled debug mode to see it. I just fixed that and I can generate highlights again now. I suggest trying to upload to your gallery and check that works, troubleshooting any problems. Then you might find the highlight problem fixed as I did.

Thanks for all the suggestions and help!!!

How did you enable debug mode? I'm getting the Upload error: Upload failed: "Unable to make thumbnail (0)'.

Safe Mode is off. http://www.jonmega.com/phpinfo.php

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 21:42
 
jonMEGA

Joined: 2002-10-22
Posts: 71
Posted: Tue, 2004-04-20 21:55

I think i got it to work.... I didnt have the path to netpbm typed correctly. Highlighted photos and uploading works fine now.

Thanks!!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 22:07

and in a funny unrelated event, every error seems unrelated to the issue first reported to be the culprit...

:)

Glad you guys figured it out!

 
nolana

Joined: 2002-08-22
Posts: 13
Posted: Tue, 2004-04-20 22:45
Dyason wrote:
Managed to fix it because my friend was trying to upload and got a cannot generate thumbnail error. Turns out the netpbm library wasn't working properly after I enabled debug mode to see it. I just fixed that and I can generate highlights again now. I suggest trying to upload to your gallery and check that works, troubleshooting any problems. Then you might find the highlight problem fixed as I did.

Thanks for all the suggestions and help!!!

ok, so what exactly was wrong with the netpbm stuff ???

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 22:49

nolana, enable debug mode (described earlier in the thread) and post the results. I'm sure we can figure out what is going on.

 
nolana

Joined: 2002-08-22
Posts: 13
Posted: Tue, 2004-04-20 22:51

Processing status...

- Adding aaf.jpg
Resizing/compressing original image
No resizing required
File /home/lashero/public_html/albums/Cats/aab.jpg type 2.

Executing:

'/usr/bin/jpegtopnm' '/home/lashero/public_html/albums/Cats/aab.jpg' | '/usr/bin/pnmscale' -xysize 150 150 | '/usr/bin/ppmtojpeg' --quality=95 > '/home/lashero/public_html/albums/Cats/aab.thumb.jpg'

Warning: exec(): Bad shell command [('/usr/bin/jpegtopnm' '/home/lashero/public_html/albums/Cats/aab.jpg' | '/usr/bin/pnmscale' -xysize 150 150 | '/usr/bin/ppmtojpeg' --quality=95 > '/home/lashero/public_html/albums/Cats/aab.thumb.jpg') 2>/home/lashero/www/tmp/dbgtNxzKa] in /home/lashero/public_html/gallery/platform/fs_unix.php on line 34

Results:
none

Error messages::

Status: -1 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ No email sent as no valid email addresses were found

And I get this when trying to highlight

Executing:

'/usr/bin/jpegtopnm' '/home/lashero/public_html/albums/NPCATS/aad.jpg' | '/usr/bin/pnmscale' -xysize 150 150 | '/usr/bin/ppmtojpeg' --quality=95 > '/home/lashero/public_html/albums/NPCATS/aad.highlight.jpg'

Warning: exec(): Bad shell command [('/usr/bin/jpegtopnm' '/home/lashero/public_html/albums/NPCATS/aad.jpg' | '/usr/bin/pnmscale' -xysize 150 150 | '/usr/bin/ppmtojpeg' --quality=95 > '/home/lashero/public_html/albums/NPCATS/aad.highlight.jpg') 2>/home/lashero/www/tmp/dbgKKIji1] in /home/lashero/public_html/gallery/platform/fs_unix.php on line 34

Results:
none

Error messages::

Status: -1 (expected 0)No email sent as no valid email addresses were found
Not closing this window because debug mode is on

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-20 22:56

nolana, you have to contact your host (didn't I say this in some other thread earlier? - http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=15852#71269) about that. I have no idea how they have done that, since it's that exec() is disabled in PHP - but in some other way.

 
nolana

Joined: 2002-08-22
Posts: 13
Posted: Tue, 2004-04-20 22:57

yes I have done that already, that is why I was asking what the other user had done to get it working without host intervention since mine maybe the same.

 
nolana

Joined: 2002-08-22
Posts: 13
Posted: Tue, 2004-04-20 23:00

Hosting company reports that server isn't running in "safe mode" which makes sense since this was working before the upgrade.

 
dinosm

Joined: 2003-07-23
Posts: 11
Posted: Wed, 2004-04-21 22:56

I have a similar problem.
In some albums, I cannot set a highlight photo or album, while in all the rest I can! The problem is, there is no highlight option in the drop-down menus on these albums! An album affected is this one:
www.filarakia.net/dino/gallery/UniLife
I recently upgraded to 1.4.2, and Gallery says all my albums have been upgraded.

Gallery URL (optional but very useful): www.filarakia.net/dino/gallery
Gallery version: 1.4.3
Apache version: 1.3.29 (Unix)
PHP version (don't just say PHP 4, please): 4.3.4
Graphics Toolkit: ImageMagick
OS: Linux kernel 2.4.20-28.9smp

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-04-21 23:00

dinosm, you seem to have a highlight there? Or is it that you cant select a new one?

 
dinosm

Joined: 2003-07-23
Posts: 11
Posted: Wed, 2004-04-21 23:13

The albums have kept the highlights set from before the upgrade, but now I can't change those highlights, because there is no 'Highlight' option in the drop-down menu in the sub-albums.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-04-21 23:15

dinosm, could you PM me a test account?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-04-22 07:25

i can see "highlight album" in the dropdown underneath those subalbums, also "highlight image" in the dropdown under the pictures. I can't see what the problem is?

 
tomcat76
tomcat76's picture

Joined: 2003-04-22
Posts: 133
Posted: Thu, 2004-04-22 08:06

Hi All, sorry for sounding a bit thick but knew to all this, what exactly did you do to cure this problem?

I installed a new version of gallery (rather than over the top of my exisiting one) and copied over the necessary bits...
jhead, albums, temp, .htaccess, config.php also the new netpbm files and the same problem as you have, the highlights... don't highlight.
I also changed the paths to point to the new gallery which was named gallery2 and have run the configuration program.
Uploads work ok both manually and with the new gallery remote.

I don't undertstand all this below but helps those out that do...

Netcraft reports:
Apache/1.3.29 (Unix) mod_gzip/1.3.19.1a PHP/4.1.2 mod_perl/1.24 on Linux.

This domain is a full Apache Virtual Host running on Linux

Regards Steve

 
dinosm

Joined: 2003-07-23
Posts: 11
Posted: Thu, 2004-04-22 12:17

h0bbel:
I cannot see the highlight option on any of those sub-albums! :o
Here's a screenshot to prove this oddity :D

 
dinosm

Joined: 2003-07-23
Posts: 11
Posted: Thu, 2004-04-22 12:24

I found an equally odd way to fix it.

I went inside the sub-album and changed its highlight to another photo, and back to the original again.
Now, I CAN see the highlight option in that menu in the above screenshot... but STILL NOT in the album 'Open Days @ Manchester'...!

I suspect I can do the same to the latter album to fix it as well, but I'll leave it for the moment, so you can see it yourself if you want.

Why do I always get the weirdest software bugs happening to me?!? :lol: :-? :lol:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-04-22 21:48

Uhm, thats weird. Very, Very weird. Glad you found a workaround though!

 
skeddy

Joined: 2004-04-23
Posts: 5
Posted: Fri, 2004-04-23 08:21

I'm still having a few problems.
I've upgraded to 1.4.3 and also downgraded my NETPBM to 1.1 as per a suggestion in another thread. When I got to my gallery at http://skeddy.net/gallery the album is loaded fine, but there is no image on the front. The rest of the images behind work fine.

I tried to select a new image to highlight and I got the following error:

Results:
none

Error messages::
jpegtopnm: WRITING PPM FILE
pnmscale: Scaling by 0.250000 horizontally to 200 columns.
pnmscale: Scaling by 0.250423 vertically to 148 rows.
pnmscale: 0.000000 of right column stretched due to arithmetic imprecision

Status: 0 (expected 0)No email sent as no valid email addresses were found

Any thoughts ?

EDIT: I've tried the same setup with and with out e-mail installed - same error message.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-04-23 19:07

skeddy, your albums URL is incorrect. Have a look at FAQ Gallery:c.11

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Fri, 2004-04-23 19:51

I'm having the same issue with highlights not showing up... I can upload, crop, etc. but I cannot watermark or select a photo to highlight. This was an upgrade from 1.4.1. I've even reuploaded the netPBM binaries in binary mode (in case I had accidently uploaded them in ASCII mode since I had autodetect on my FTP turned on). Here's the errors I get when I try to watermark:

 Watermarking photo.
(this may take a while)
src	/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.jpg
dest	/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.jpg
wmName	/home/kvaprodu/public_html/gallery/images/admin_delete.gif
wmAlign	9
wmAlignX	0
wmAlignY	0

Executing:

      '/home/kvaprodu/public_html/netpbm/giftopnm' --alphaout=/tmp/netpbm_0ErvUu /home/kvaprodu/public_html/gallery/images/admin_delete.gif > /tmp/netpbm_mrGcwk


Results:

none


Error messages::

giftopnm: Reading Image Sequence 0


Status: 0 (expected 0)args = -yoff=2037 -xoff=3061 -alpha=/tmp/netpbm_0ErvUu /tmp/netpbm_mrGcwk

Executing:

      '/home/kvaprodu/public_html/netpbm/jpegtopnm' '/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.jpg' | '/home/kvaprodu/public_html/netpbm/pnmcomp' -yoff=2037 -xoff=3061 -alpha=/tmp/netpbm_0ErvUu /tmp/netpbm_mrGcwk | '/home/kvaprodu/public_html/netpbm/ppmtojpeg' --quality=75 > '/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.jpg.tmp'


Results:

none


Error messages::

jpegtopnm: WRITING PPM FILE


Status: 0 (expected 0)
src	/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.sized.jpg
dest	/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.sized.jpg
wmName	/home/kvaprodu/public_html/gallery/images/admin_delete.gif
wmAlign	9
wmAlignX	0
wmAlignY	0

Executing:

      '/home/kvaprodu/public_html/netpbm/giftopnm' --alphaout=/tmp/netpbm_AmNW8T /home/kvaprodu/public_html/gallery/images/admin_delete.gif > /tmp/netpbm_wqgD1h


Results:

none


Error messages::

giftopnm: Reading Image Sequence 0


Status: 0 (expected 0)args = -yoff=416 -xoff=629 -alpha=/tmp/netpbm_AmNW8T /tmp/netpbm_wqgD1h

Executing:

      '/home/kvaprodu/public_html/netpbm/jpegtopnm' '/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.sized.jpg' | '/home/kvaprodu/public_html/netpbm/pnmcomp' -yoff=416 -xoff=629 -alpha=/tmp/netpbm_AmNW8T /tmp/netpbm_wqgD1h | '/home/kvaprodu/public_html/netpbm/ppmtojpeg' --quality=75 > '/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/110_1016.sized.jpg.tmp'


Results:

none


Error messages::

jpegtopnm: WRITING PPM FILE


Status: 0 (expected 0)
Not closing this window because debug mode is on

Here's what I get when I try to select a highlight:

Executing:

      '/home/kvaprodu/public_html/netpbm/jpegtopnm' '/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/109_0989.jpg' | '/home/kvaprodu/public_html/netpbm/pnmscale' -xysize 200 200 | '/home/kvaprodu/public_html/netpbm/ppmtojpeg' --quality=75 > '/home/kvaprodu/public_html/gallery/albums/Scott_Elementary/109_0989.highlight.jpg'


Results:

none


Error messages::

jpegtopnm: WRITING PPM FILE


Status: 0 (expected 0)No email sent as no valid email addresses were found
Not closing this window because debug mode is on

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-04-23 20:06

Everthing appears to work correctly. You sure it's not FAQ Gallery:c.11 ?

Also, an actual url might help us debug it.

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Fri, 2004-04-23 20:19

Sorry, all that info and no URL for you to test! :oops:

http://www.kvaproductions.com/gallery/

I can give you access if you want to see the results yourself.

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Fri, 2004-04-23 20:25

It's not C11, as there are no broken images - just no highlighted photos, nor any successful watermarking (unless my watermark is foobared - I've attached it to this post... it's a 24bit PNG file.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-04-23 21:11

Ok, first of all, remove all customizations. I'm pretty sure that that is the cause for your problems.

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Fri, 2004-04-23 21:13

The customizations I made are all in the templates (the old style ones, not the skins)... I didn't touch a line of the sourcecode.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-04-23 21:21

Joyrex, no but bad html or unclosed tags in the header files might cause the problem you are seeing. Remove them for now, and see if it helps.

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Fri, 2004-04-23 21:28

I just validated the sourcecode, and there are no unclosed tags, etc. I will disable the template files to test your theory... but I doubt that's the issue.

Why would the HTML prevent the program from generating the images on the page? These templates worked fine under 1.4.1, only until I upgraded did this problem start to happen.

Will let you know if I see anything else odd...

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-04-23 21:34

hmm, ok. Lets not try to figure this out then. Let us know when and if you figure it out.

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Tue, 2004-04-27 16:25

My apologies - you were right - disabling the templates caused the highlight images to reappear.

I think I'll redo my templates using the new skinning system to be more up to date.

The watermarking still doesn't work, but that's for another thread :)

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-27 17:01

Joyrex, no problem. Glad you got it sorted.

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Tue, 2004-04-27 20:16

OK, I narrowed down exactly what the problem was (this may help others who have their highlight images disappear after upgrading):

My .header and .footer HTML was just fine - it was the "inline_gallerythumb.frame" and "inline_albumthumb.frame" that I modified to remove the old "stacked pages" effect on previous 1.4.x versions of Gallery before it went to the skin files. Removing just those caused my highligh images to show up.

Now, to do some more watermarking tests and get that working - I think it is because I am using a semi-transparent PNG file, so I am going to try something else (like a GIF) to see if it even works.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-27 20:26

So, basically it was FAQ Gallery:c.38 ? :)

 
Joyrex

Joined: 2003-09-15
Posts: 17
Posted: Tue, 2004-04-27 21:17

Doh!

And I'm usually so good at reading the instructions beforehand... :oops:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-04-27 21:20

Joyrex, heh, oh well - as long as it works now. :)

 
tomcat76
tomcat76's picture

Joined: 2003-04-22
Posts: 133
Posted: Wed, 2004-04-28 07:25

I have not modified Gallery at all and I get that problem with highlights vanishing....

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-04-28 11:34

tomcat76, url?

 
tomcat76
tomcat76's picture

Joined: 2003-04-22
Posts: 133
Posted: Thu, 2004-04-29 11:08
h0bbel wrote:
tomcat76, url?

PM'ed and now sorted thanks to your help.

Steve

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-04-29 11:11

tomcat76, gkad to be able to help. :)

 
mkaraca

Joined: 2004-03-13
Posts: 2
Posted: Mon, 2004-05-10 00:25

I just noticed what I was doing wrong after fooling around a little bit, wondering where my highligh images went after a rather smooth upgrade process. If you have upgraded your NetPBM binaries to the latest version as you should during the upgrade process, did you get the appropriate binaries for your server architecture and OS? I realized that I accidentally uploaded the FreeBSD binaries to my Intel/Linux server - duh!