PDA

View Full Version : My Image Gallery PHP Errors


pdhillon
11-19-2002, 02:51 PM
Im getting the error

Warning: ChDir: No such file or directory (errno 2) in /home/epochia/public_html/ootc/mig.php on line 2956
FATAL ERROR: can not chdir() to $phpNukeRoot!

when I browse to http://ootc.epochia.com/mig.php

As an absolute novice the Linux environment or PHP, I have no idea what to do can smeone please help me?

P. Dhillon

superunison
11-20-2002, 11:25 AM
without seeing your code, there's not much we can do... looks like you're using nuke though, there should be lots of documentation around.

from the errors you're getting, it looks like the following is your problem...
there is a variable somewhere (probably in the nuke config file) called $phpNukeRoot. this either isn't set correctly, or is set to a directory or file which does not exist. the script is trying to change to the directory specified by $phpNukeRoot, but since it doesn't exist, it's getting hinky. my best guess for a fix is look in the Nuke config for that variable ($phpNukeRoot), and make sure it's pointed at the directory where you installed Nuke.

eg, if you installed nuke in a subdirectory of your main webroot called "nuke", the line of code should look something like the following:
$phpNukeRoot = "/home/your_username/public_html/nuke"

hope that helps.
chris

pdhillon
11-20-2002, 11:38 AM
What code do I need to provide, and yes Im using Postnuke.

Will try the fix and post after.

thx