I had this too. I'm no php expert, but it appears to me that $SCRIPT_NAME is the name of a variable, while SCRIPT_NAME is a constant.
The constant is defined, but a variable (with a $) is used in lib/config.php. I removed the $ and the error went away. Abracadabra!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, totally new to php and phpwiki.
I've got the wiki running and everthing looks fine. But I'm getting a php warning:
C:\Xitami\webpages\wiki\lib\config.php:189: Notice[8]: Undefined variable: SCRIPT_NAME
on every page.
Any suggestions?
Win2k
Xitami v2.4d9
PHP 4.2.1
phpwiki 1.3.3
Geoff
search for the line like "define('SCRIPT_NAME', 'SOMETHING')" in index.php, and edit it as "define('SCRIPT_NAME', index.php')".
I had this too. I'm no php expert, but it appears to me that $SCRIPT_NAME is the name of a variable, while SCRIPT_NAME is a constant.
The constant is defined, but a variable (with a $) is used in lib/config.php. I removed the $ and the error went away. Abracadabra!