From: Carsten K. <car...@ma...> - 2002-03-26 01:13:09
|
Hi Laurent, I don't have any experience using PhpWiki on Windows, is there anyone = else=20 on the list who can help? I think you've hit on a clue with the html source you provided, the urls=20= should look like this: | <a href=3D"HomePage?action=3DPageHistory" = class=3D"wikiaction">PageHistory</a> | <a href=3D"HomePage?action=3Ddiff" class=3D"wikiaction">Diff</a> Question, are you using the cgi version of PHP? The only thing I can think of is that USE_PATH_INFO is being calculated=20= incorrectly for your setup in the "Autodetect URL settings" inside = config. php. Have you tried using the "pretty" url settings? index.php: define('USE_PATH_INFO', true); define('VIRTUAL_PATH', '/phpwiki'); The above might get it working, but there might still be a bug here... Carsten On Monday, March 25, 2002, at 04:49 pm, Laurent Marechal wrote: > I have checked the html generated and it looks fine. > I.e for the edit (as in my previous mail), it return the following = html=20 > code: > =A0 > =A0 <td> > =A0 <div id=3D"actionbuttons"> > =A0=A0=A0 <a href=3D"phpwiki/index.php?action=3Dedit" = class=3D"wikiaction">Edit</a> > =A0=A0 | <a href=3D"phpwiki/index.php?action=3DPageHistory"=20 > class=3D"wikiaction">PageHistory</a>=A0 | <a=20 > href=3D"phpwiki/index.php?action=3Ddiff" class=3D"wikiaction">Diff</a> > =A0 | <a href=3D"phpwiki/index.php?action=3DInfo" = class=3D"wikiaction">Info</a>=A0=20 > </div> > =A0 </td> > =A0 > The patch is correct. > > ----- Original Message ----- > From: Laurent Marechal > To: Carsten Klapp > Cc: PhpWiki List > Sent: Monday, March 25, 2002 10:22 PM > Subject: Re: [Phpwiki-talk] Strange url behaviour > > Hello, > =A0 > No luck with commenting the two lines. > =A0 > I started over from scratch: > - decompressing phpwiki-1.3.3.tar > - moving the whole tree under the web folder (wwwroot) under phpwiki. > - Editing the index.php. No change apart from the database section=20 > changed to: > =A0 > $DBParams =3D array( > =A0=A0 // Select the database type: > =A0=A0 //'dbtype' =3D> 'SQL', > =A0=A0 'dbtype'=A0=A0 =3D> 'dba', > =A0=A0 > =A0=A0 // For SQL based backends, specify the database as a DSN > =A0=A0 // The most general form of a DSN looks like: > =A0=A0 // > =A0=A0 //=A0=A0 = phptype(dbsyntax)://username:password@protocol+hostspec/database > =A0=A0 // > =A0=A0 // For a MySQL database, the following should work: > =A0=A0 // > =A0=A0 //=A0=A0 mysql://user:password@host/databasename > =A0=A0 // > =A0=A0 // FIXME: My version Pear::DB seems to be broken enough that = there > =A0=A0 //=A0=A0=A0=A0=A0=A0=A0 is no way to connect to a mysql server = over a socket right=20 > now. > =A0=A0 //'dsn' =3D> 'mysql://guest@:/var/lib/mysql/mysql.sock/test', > =A0=A0 //'dsn' =3D> 'mysql://guest@localhost/test', > =A0=A0 //'dsn' =3D> 'pgsql://localhost/test', > =A0=A0 > =A0=A0 // Used by all DB types: > =A0 > =A0=A0 // prefix for filenames or table names > =A0=A0 /* > =A0=A0=A0 * currently you MUST EDIT THE SQL file too (in the schemas/ > =A0=A0=A0 * directory because we aren't doing on the fly sql = generation > =A0=A0=A0 * during the installation. > =A0=A0 */ > =A0=A0 //'prefix' =3D> 'phpwiki_', > =A0=A0 > =A0=A0 // Used by 'dba' > =A0=A0 'directory'=A0=A0=A0=A0 =3D> "/tmp/wiki133", > =A0=A0 //'dba_handler'=A0=A0 =3D> 'gdbm',=A0=A0 // Either of 'gdbm' or = 'db2' work great=20 > for me. > =A0=A0 //'dba_handler' =3D> 'db2', > =A0=A0 'dba_handler' =3D> 'db3',=A0=A0=A0 // doesn't work at all for = me.... > =A0=A0 'timeout'=A0=A0 =3D> 20, > =A0=A0 //'timeout' =3D> 5 > ); > =A0 > - Starting the web server. > - Going to http://xxx.xxx.xxx.xxx/phpwiki/index.php > - The screen > - I click on edit and 'page not found..." > The link it try to find is :=20 > http://xxx.xxx.xxx.xxx/phpwiki/index.php/phpwiki/index.php?action=3Dedit= > =A0 > Note the addition of /phpwiki/index.php=A0that should not be here. > =A0 > Laurent.\ > =A0 > ----- Original Message ----- > Subject: Re: [Phpwiki-talk] Strange url behaviour > > > > > Hi Laurent, > > > > Try commenting out these two lines near the bottom of index.php by=20= > putting > > two slashes in front: > > > > //define('SCRIPT_NAME', '/some/where/index.php'); > > > > //define('USE_PATH_INFO', false); > > > > Does this fix the url problem? > > > > > > Regarding the missing bracket problem, I double-checked the latest=20= > version > > of index.php and the default file tests ok on my system. Are you = sure=20 > you > > are looking at the correct file on your computer? It sounds like you = may > > have accidentally deleted the ); on line 232, or inserted a = semicolon > > instead of a comma, or deleted a comma at the end of one of the = lines > > somewhere from line 193 to 232. > > > > Carsten > |