Gallery upgrade and highlights problem
Dyason
Joined: 2004-04-20
Posts: 3 |
![]() |
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? ---- |
|
jonMEGA
Joined: 2002-10-22
Posts: 71 |
![]() |
I'm having the same problem..... Give us your Gallery/webserver information to get a faster answer. |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
That doesnt fix it. |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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 |
![]() |
I have the same issue, and also the uploading not working, related maybe ? |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
Dyason, test account? Running any pop-up killers? |
|
Dyason
Joined: 2004-04-20
Posts: 3 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
Dyason, oh, cool. |
|
jonMEGA
Joined: 2002-10-22
Posts: 71 |
![]() |
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. 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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
jonMEGA, FAQ Gallery:c.31 |
|
jonMEGA
Joined: 2002-10-22
Posts: 71 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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. ok, so what exactly was wrong with the netpbm stuff ??? |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
Processing status... - Adding aaf.jpg 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: Error messages:: Status: -1 (expected 0) 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: Error messages:: Status: -1 (expected 0)No email sent as no valid email addresses were found |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |
I have a similar problem. Gallery URL (optional but very useful): www.filarakia.net/dino/gallery |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
dinosm, could you PM me a test account? |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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
![]()
Joined: 2003-04-22
Posts: 133 |
![]() |
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... I don't undertstand all this below but helps those out that do... Netcraft reports: This domain is a full Apache Virtual Host running on Linux Regards Steve |
|
dinosm
Joined: 2003-07-23
Posts: 11 |
![]() |
h0bbel: |
|
dinosm
Joined: 2003-07-23
Posts: 11 |
![]() |
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. 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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
Uhm, thats weird. Very, Very weird. Glad you found a workaround though! |
|
skeddy
Joined: 2004-04-23
Posts: 5 |
![]() |
I'm still having a few problems. I tried to select a new image to highlight and I got the following error: Results: Error messages:: 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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
skeddy, your albums URL is incorrect. Have a look at FAQ Gallery:c.11 |
|
Joyrex
Joined: 2003-09-15
Posts: 17 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
Joyrex, no problem. Glad you got it sorted. |
|
Joyrex
Joined: 2003-09-15
Posts: 17 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
So, basically it was FAQ Gallery:c.38 ? |
|
Joyrex
Joined: 2003-09-15
Posts: 17 |
![]() |
Doh! And I'm usually so good at reading the instructions beforehand... :oops: |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
Joyrex, heh, oh well - as long as it works now. |
|
tomcat76
![]()
Joined: 2003-04-22
Posts: 133 |
![]() |
I have not modified Gallery at all and I get that problem with highlights vanishing.... |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
tomcat76, url? |
|
tomcat76
![]()
Joined: 2003-04-22
Posts: 133 |
![]() |
h0bbel wrote:
tomcat76, url? PM'ed and now sorted thanks to your help. Steve |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
tomcat76, gkad to be able to help. |
|
mkaraca
Joined: 2004-03-13
Posts: 2 |
![]() |
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! |
|