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? ---- |
|
Posts: 71
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
Posts: 13451
Seems like mod_rewrite is playing with you guys. You can fix it by editing config.php manually.
Change
into
and see if that helps.
Posts: 71
That doesnt fix it.
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)
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.
Posts: 13
I have the same issue, and also the uploading not working, related maybe ?
Posts: 13451
Dyason, test account? Running any pop-up killers?
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!!!
Posts: 13451
Dyason, oh, cool. I was sure that NetPBM was working, since it seemed uploading worked. Glad you figured it out!!
Posts: 71
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
Posts: 13451
jonMEGA, FAQ Gallery:c.31
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!!
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!
Posts: 13
ok, so what exactly was wrong with the netpbm stuff ???
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.
Posts: 13
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
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.
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.
Posts: 13
Hosting company reports that server isn't running in "safe mode" which makes sense since this was working before the upgrade.
Posts: 11
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
Posts: 13451
dinosm, you seem to have a highlight there? Or is it that you cant select a new one?
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.
Posts: 13451
dinosm, could you PM me a test account?
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?
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...
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
Posts: 11
h0bbel:
I cannot see the highlight option on any of those sub-albums! :o
Here's a screenshot to prove this oddity :D
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.
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:
Posts: 13451
Uhm, thats weird. Very, Very weird. Glad you found a workaround though!
Posts: 5
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.
Posts: 13451
skeddy, your albums URL is incorrect. Have a look at FAQ Gallery:c.11
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:
Here's what I get when I try to select a highlight:
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.
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.
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.
Posts: 13451
Ok, first of all, remove all customizations. I'm pretty sure that that is the cause for your problems.
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.
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.
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...
Posts: 13451
hmm, ok. Lets not try to figure this out then. Let us know when and if you figure it out.
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
Posts: 13451
Joyrex, no problem. Glad you got it sorted.
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.
Posts: 13451
So, basically it was FAQ Gallery:c.38 ?
Posts: 17
Doh!
And I'm usually so good at reading the instructions beforehand... :oops:
Posts: 13451
Joyrex, heh, oh well - as long as it works now.
Posts: 133
I have not modified Gallery at all and I get that problem with highlights vanishing....
Posts: 13451
tomcat76, url?
Posts: 133
PM'ed and now sorted thanks to your help.
Steve
Posts: 13451
tomcat76, gkad to be able to help.
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!