Menu

PHP warning in phpwiki

Help
2002-05-26
2012-10-11
  • Geoffrey Longman

    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

     
    • Anonymous

      Anonymous - 2002-06-13

      search for the line like "define('SCRIPT_NAME', 'SOMETHING')" in index.php, and edit it as "define('SCRIPT_NAME', index.php')".

       
    • Chris

      Chris - 2003-07-27

      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!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.