From: Gil P. <gp...@gi...> - 2003-03-16 04:16:42
|
Good Evening, I've just installed phpwiki on my web server at http://www.pcs-sc.com/wiki/ and am getting the following "PHP Warnings" on the foot of each page. Using version 1.3.4 by the way... lib/config.php:276: Notice[8]: Undefined variable: SCRIPT_NAME lib/config.php:401: Notice[8]: Undefined index: dsn Are there any fixes for these? Also, is there any way to have these warnings directed to a log file and not on the visible pages? BTW, the archives are a little hard to search, but I tried to go back a to December and didn't find these errors addressed. Also: PHP=4.2.2 OS=Redhat 8.0 DB=DBA Thanks, |
From: Jeff D. <da...@da...> - 2003-03-16 16:58:16
|
On Sat, 15 Mar 2003 23:19:35 -0500 Gil Price <gp...@gi...> wrote: > lib/config.php:276: Notice[8]: Undefined variable: SCRIPT_NAME > > lib/config.php:401: Notice[8]: Undefined index: dsn > > Are there any fixes for these? Also, is there any way to have these > warnings directed to a log file and not on the visible pages? Hi Gil, I think these are fixed in CVS, here are links to the specific changes: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpwiki/phpwiki/lib/config.php.diff?r1=1.70&r2=1.71 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpwiki/phpwiki/lib/config.php.diff?r1=1.71&r2=1.72 If you're just installing PhpWiki now, you might consider using the latest CVS version instead of 1.3.4. There have been a number of bug fixes made. There's a nightly CVS snapshot available at: http://phpwiki.sf.net/nightly/phpwiki.nightly.tar.gz Jeff |
From: Gil P. <gp...@gi...> - 2003-03-16 20:31:31
|
Jeff Dairiki wrote: >On Sat, 15 Mar 2003 23:19:35 -0500 >Gil Price <gp...@gi...> wrote: > > > >>lib/config.php:276: Notice[8]: Undefined variable: SCRIPT_NAME >> >>lib/config.php:401: Notice[8]: Undefined index: dsn >> >>Are there any fixes for these? Also, is there any way to have these >>warnings directed to a log file and not on the visible pages? >> >> > >If you're just installing PhpWiki now, you might consider using >the latest CVS version instead of 1.3.4. There have been a number >of bug fixes made. > >There's a nightly CVS snapshot available at: > http://phpwiki.sf.net/nightly/phpwiki.nightly.tar.gz > >Jeff > > Hello Jeff, I've downloaded and installed the "nightly tarball". The errors I had encountered before are truely gone. But now I am getting NO login button and all the URL links look like this: http://www.pcs-sc.com/phpwiki/index.php/HomePage Note the forward slash and no "?". Once I delete the "/" and insert the "?" the page displays normally. I get the same behaviour whether I use the dbm or mysql method for the site. Getting closer, just a little bit more to be up and running, thanks for the help... |
From: Jeff D. <da...@da...> - 2003-03-17 18:32:58
|
> I've downloaded and installed the "nightly tarball". The errors I had > encountered before are truely gone. > But now I am getting NO login button Does it look like this? http://phpwiki.sourceforge.net/test/ I think that's a "feature". You don't need the login button. Just type your user-name into the text box and hit return. (If you view the page with a non-javascript enabled browser, you should still see a login button.) (If you want the button back you can change this by editing themes/default/templates/signin.tmpl.) > and all the URL links look like this: > > http://www.pcs-sc.com/phpwiki/index.php/HomePage That's a feature-gone-bad. When PHP is run as an apache module, it's possible to use URLs like that. (Many people, myself included prefer that style URL.) When PHP is run as a stand-alone CGI interpreter, it is not possible to use that style of URL. Normally PhpWiki auto-detects those cases and does the right thing --- someone (most probably me) must have broken that auto-detection somehow. If you edit index.php and uncomment the line which says: if (!defined('USE_PATH_INFO')) define('USE_PATH_INFO', false); that will fix that. It would be useful for me (to help fix the auto-detection for USE_PATH_INFO) if you could create a public phpinfo page, and send me the URL to it. (A phpinfo page, is a php script containing the one line: <?php phpinfo(); ?> When browsed to, it should show a large spewage of information about how PHP in configured, etc...) |