Installed new Manchuria and have one error appears at top of front page and on Statistics page:
Notice: Undefined variable: DOCUMENT_ROOT in C:\Program Files\Abyss Web Server\htdocs\MP4\Scripts\MP-Misc.php on line 526
http://www.virtual23squadron.com/MP4/index.php
http://www.virtual23squadron.com/MP4/St ... istics.php
New Manchuria update
Moderator: SEOW Developers
-
- Posts: 2207
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Hi Kapt,
Thanks for checking it out so fast. That error looks to be something to do with the environment. I went a-Googling and found the following:
http://bugs.php.net/bug.php?id=11759&edit=1
Maybe this will help - defining DOCUMENT_ROOT in your Windows environment.
Cheers,
4Shades
Thanks for checking it out so fast. That error looks to be something to do with the environment. I went a-Googling and found the following:
http://bugs.php.net/bug.php?id=11759&edit=1
Maybe this will help - defining DOCUMENT_ROOT in your Windows environment.
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer
SEOW Developer
-
- Posts: 2207
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Hi Kapt,
I have not changed any coding pertaining to the use of DOCUMENT_ROOT in years. The line number 526 in MP-Misc.php is where the MP tries to locate the DB from the given address. Maybe in this install you have changed the location of your DB?
Basically, DOCUMENT_ROOT is a filesystem path that points to where your webserver stores all its HTML files. For an Abyss web server, it might be something like "C:\Program Files\Abyss\htdocs". That can be as it may, the worrying thing is that your PHP does not initialize the $DOCUMENT_ROOT variable, which it should. Have you tried the usual PHP install test, using the simple PHP file:
<?php
phpinfo();
?>
Presumably when browsed through your server, that reports everything OK and $DOCUMENT_ROOT is initialized?
Cheers,
4Shades
I have not changed any coding pertaining to the use of DOCUMENT_ROOT in years. The line number 526 in MP-Misc.php is where the MP tries to locate the DB from the given address. Maybe in this install you have changed the location of your DB?
Basically, DOCUMENT_ROOT is a filesystem path that points to where your webserver stores all its HTML files. For an Abyss web server, it might be something like "C:\Program Files\Abyss\htdocs". That can be as it may, the worrying thing is that your PHP does not initialize the $DOCUMENT_ROOT variable, which it should. Have you tried the usual PHP install test, using the simple PHP file:
<?php
phpinfo();
?>
Presumably when browsed through your server, that reports everything OK and $DOCUMENT_ROOT is initialized?
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer
SEOW Developer
-
- Posts: 2207
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia