If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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
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.
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
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;
}
The 1.2.x branch needs register_globals on!
All other settings from lib/config.php will also not work.
Yes. I noticed.
Locking and Deleting pages is also nonfunctional.
I am using the 1.3. track now to avoid setting register_globals.