Menu

links are not working

Help
Saqib Ali
2004-03-06
2012-10-11
  • Saqib Ali

    Saqib Ali - 2004-03-06

    Hello All,

    I just installed a instace of phpWiki @ http://www.xml-dev.com/blog/phpwiki/

    The installation went fine, and I got the front page. However none of the links on the front page are working. Please try it out.

    Any ideas on how to fix this?

    Thanks
    Saqib Ali
    http://validate.sf.net

     
    • Anonymous

      Anonymous - 2004-03-09

      I have the same problem...  no solution yet, but just thought I'd point out the following: I put in some debug code in the display.php file at the point where PHP Wiki grabs the URL parameter that comes after the "?" in the URL (it sets $QUERY_STRING = $argv[0], and argv[0] is apparently empty)...  it is blank.

      So the question is... why is $argv[0] blank?  Wish I knew the answer.

      (Saqib--I just tried accessing your PHP Wiki, it looks like your database is down because I got a database error rather than the problem you describe).

      --Scott.

       
    • Jan Flora

      Jan Flora - 2004-03-10

      You can fix some of the problem by substituting $argv[0] with $_SERVER['argv'][0] in lib/display.php and putting:
           extract($_REQUEST);
      in the top of index.php...

      -- Jan

       
    • Anonymous

      Anonymous - 2004-03-11

      My solution wound up being to set the following in php.ini:
      register_globals = On
      register_argc_argv = On

      These are off by default in current distributions of PHP.  Note, however, that running PHP with these settings on a public website is NOT recommended for security reasons!  (Our Wiki is not publicly accessible).

      I think the solution Jan provides above is more secure and the best approach for a publicly available Wiki page.

      --Scott.

       
    • Philipp

      Philipp - 2004-05-05

      I have the same problem.
      Jan Flora's changes above do the trick for the regular links, but I still have problems when using http authentication (i.e. admin.php) neither the username nor the passoword get passed on .. so, no access unless I leave it blank .. which probably isn't a good idea on a public wiki ;)

      any hints?
      --Phil

       
    • Philipp

      Philipp - 2004-05-05

      I made some changes to the admin.php authentication parts, which seem to work fine for me.
      I'm a newcomer and php nitwit. So any comment on the correctness or security of doing it this way is welcome...

         // from the manual, Chapter 16
         if (($HTTP_SERVER_VARS['PHP_AUTH_USER'] != $wikiadmin  )  ||
             ($HTTP_SERVER_VARS['PHP_AUTH_PW']   != $adminpasswd)) {
            Header("WWW-Authenticate: Basic realm=\"PhpWiki\"");
            Header("HTTP/1.0 401 Unauthorized");
            echo gettext ("You entered an invalid login or password. !!!");
            exit;
         }

       
      • Reini Urban

        Reini Urban - 2004-05-05

        The 1.2.x branch needs register_globals on!
        All other settings from lib/config.php will also not work.

         
    • Philipp

      Philipp - 2004-05-06

      Yes. I noticed.
      Locking and Deleting pages is also nonfunctional.
      I am using the 1.3. track now to avoid setting register_globals.

       

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.