[Solved] Error uploading files

BjornBP

Joined: 2005-03-07
Posts: 5
Posted: Tue, 2005-03-08 13:02

Hi,
Gallery is now installed and appears to display correctly. However, I'm getting the same problem as a few others here. Not sure if the problem is related or different. Can someone help, please?

netpbm is up loaded. I unzipped a file from Sourceforge called: netpbm_gallery-1.4-pl2-freebsd-4.5.zip. Files were uploaded into a folder in the root of the public area on the server and the path was set in the config to /public_html/netpbm. Files were set to CHMOD 755 as was the folder.

But I'm getting the following debug errors when I run an upload:

- Adding Bjorn
Resizing/compressing original image /home/bj563hb/public_html/albums/Austria-2004/Bjorn.jpg
No resizing required
File /home/bj563hb/public_html/albums/Austria-2004/Bjorn.jpg type 2.
/home/bj563hb/public_html/albums/Austria-2004/Bjorn.jpg

Executing:

'/public_html/netpbm/jpegtopnm' '/home/bj563hb/public_html/albums/Austria-2004/Bjorn.jpg' | '/public_html/netpbm/pnmscale' -xysize 150 150 | '/public_html/netpbm/pnmtojpeg' --quality=90 > '/home/bj563hb/public_html/albums/Austria-2004/Bjorn.thumb.jpg'

Results:
none

Debug messages::
sh: line 1: /public_html/netpbm/jpegtopnm: No such file or directory
sh: line 1: /public_html/netpbm/pnmscale: No such file or directory
sh: line 1: /public_html/netpbm/pnmtojpeg: No such file or directory

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)

jpegtopnm, pnmscale and pnmtojpeg are all there though.

....and, although it appears to be making orphaned thumbnails in the Albums folder, the album itself says "no images in this album".

Any ideas?

Thanks in advance

----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.barton-pye.me.uk/modules/gallery
Gallery version: Most recent
Apache version: 1.3.33 (Unix)
PHP version (don't just say PHP 4, please): 4.3.10
Graphics Toolkit: NetPBM
Operating system: Linux/Unix
Web browser/version (if applicable):

 
nitrotn
nitrotn's picture

Joined: 2005-02-09
Posts: 391
Posted: Tue, 2005-03-08 22:09

Hello!

This is where your albums folder are:

/home/bj563hb/public_html/albums/

This is where you have said your netpbm files are:

/public_html/netpbm/

They should be here:

/home/bj563hb/public_html/netpbm/

Rerun the config wizard, and update your netpbm path. :)

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-03-08 22:15

Its possible that freebsd is also not the correct binaries for your platform, but I could not get your OS from netcraft... so if fixing the path doesn't work (your path is wrong for sure) you might try using the linux binaries.

 
BjornBP

Joined: 2005-03-07
Posts: 5
Posted: Wed, 2005-03-09 00:06

NitroTN and Fryfrog...

Thanks both for your very kind replies.

I updated the path to NetPBM as suggested (must admit I thought I had tried this new path before and it didn't work). Anyway, here's the debug info after following your advice.....

Processing status...

- Adding 117_1744_IMG
Resizing/compressing original image /home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg
No resizing required
File /home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg type 2.
/home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg

Executing:

'/home/bj563hb/public_html/netpbm/jpegtopnm' '/home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg' | '/home/bj563hb/public_html/netpbm/pnmscale' -xysize 150 150 | '/home/bj563hb/public_html/netpbm/pnmtojpeg' --quality=90 > '/home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.thumb.jpg'

Results:

none

Debug messages::

Status: 255 (expected 0)
Error: Unable to make thumbnail (0)

So, like fryfrog suggests as possible, do I have the wrong binaries?

Where do I go from here?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-03-09 02:20

Your path strongly suggests a unix/linux variant, but I can't say for sure. I would always try the "linux-intel" binaries first since that is by far the most common set used on the internet. Freebsd would be second IMHO. So give it a go, worst that happens is it doesn't work :)

 
nitrotn
nitrotn's picture

Joined: 2005-02-09
Posts: 391
Posted: Wed, 2005-03-09 17:06

Hi!

You could test this from a shell:

file /home/bj563hb/public_html/netpbm/jpegtopnm

and post the output in here.

 
BjornBP

Joined: 2005-03-07
Posts: 5
Posted: Wed, 2005-03-09 21:46

Thanks Guys - looks like it was indeed two problems.

1) Wrong path

2) Not using the Linux binaries.

Fixed those two and it all appears to be working just fine.

Many thanks for all your help.

Bjorn