[function.main]: failed to create...

leiferikson
leiferikson's picture

Joined: 2003-05-22
Posts: 40
Posted: Fri, 2003-05-23 13:25

hi,

after downloadung gallery I got problems with the gallery and netpbm.

server:
PHP Version 4.3.1
Apache/1.3.26 (Unix)

installed:
gallery-1.3.3

netpbm:
installed as binary
"netpbm1.1-gallery1.0-linux2.2-redhat6.2-intel.tgz"

while running setup it gallery doesnt find find my netpbm - binaries (unzipped and 755) and it offers me following error on page 4 of the setup:

Warning:  main(../Version.php) [function.main]: failed to create stream: No such file or directory in /is/htdocs/XXX/newgallery/setup/confirm.inc on line 15

Fatal error:  main() [function.main]: Failed opening required '../Version.php' (include_path='./:/usr/local/lib/php/') in /is/htdocs/XXX/newgallery/setup/confirm.inc on line 15

Does anyone has a clue?

thx
leiferikson

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Fri, 2003-05-23 13:43

Is there a file called "Version.php in your main gallery directory. If not, reinstall gallery as it's obviously corrupted.

 
leiferikson
leiferikson's picture

Joined: 2003-05-22
Posts: 40
Posted: Mon, 2003-05-26 07:12

Yes, there is a file called version.php
hm. should I rename that to Version.php?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-05-26 07:41

Re-install. It should be Versions.php, but if that's broken, other things might be.

 
leiferikson
leiferikson's picture

Joined: 2003-05-22
Posts: 40
Posted: Mon, 2003-05-26 07:42

yep. it works, for my FTP ,"v" is not "V"...

 
leiferikson
leiferikson's picture

Joined: 2003-05-22
Posts: 40
Posted: Mon, 2003-05-26 09:42

hm. well, that "Version" is ok, I loaded up another time. but now there is this problem turned log on:

Processing status...
- Adding villamoewenstein.jpg

Executing:

      ../netpbm/jpegtopnm /is/htdocs/34083/www.bilderbar.de/bilderbar/gallery/albums/MyWold/villamoewenstein.jpg | ../netpbm/pnmscale -xysize 150 150 | ../netpbm/ppmtojpeg --quality=95 > /is/htdocs/34083/www.bilderbar.de/bilderbar/gallery/albums/MyWold/villamoewenstein.thumb.jpg


Results:

none


Error messages:

sh: ../netpbm/jpegtopnm: No such file or directory
sh: ../netpbm/pnmscale: No such file or directory
sh: ../netpbm/ppmtojpeg: No such file or directory


Status: 126 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ

All files binaries are in that directory. Apache Error logs says nothing to me..

 
leiferikson
leiferikson's picture

Joined: 2003-05-22
Posts: 40
Posted: Mon, 2003-05-26 09:50

uops, this path was wrong

../netpbm/jpegtopnm

/is/htdocs/34083/www.bilderbar.de/bilderbar/gallery/netpbm/jpegtopnm
now it works. yep!

@ joan: thanx for tips anyhow and goodbye!

:D

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-05-26 09:57

Yay!