From: Laurent M. <l.m...@ch...> - 2002-03-25 21:47:38
|
I have checked the html generated and it looks fine.=20 I.e for the edit (as in my previous mail), it return the following html = code: <td> <div id=3D"actionbuttons"> <a href=3D"phpwiki/index.php?action=3Dedit" = class=3D"wikiaction">Edit</a>=20 | <a href=3D"phpwiki/index.php?action=3DPageHistory" = class=3D"wikiaction">PageHistory</a> | <a = href=3D"phpwiki/index.php?action=3Ddiff" class=3D"wikiaction">Diff</a>=20 | <a href=3D"phpwiki/index.php?action=3DInfo" = class=3D"wikiaction">Info</a> </div> </td> The patch is correct. ----- Original Message -----=20 From: Laurent Marechal=20 To: Carsten Klapp=20 Cc: PhpWiki List=20 Sent: Monday, March 25, 2002 10:22 PM Subject: Re: [Phpwiki-talk] Strange url behaviour Hello, No luck with commenting the two lines. 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 = changed to: $DBParams =3D array( // Select the database type: //'dbtype' =3D> 'SQL', 'dbtype' =3D> 'dba', =20 // For SQL based backends, specify the database as a DSN // The most general form of a DSN looks like: // // = phptype(dbsyntax)://username:password@protocol+hostspec/database // // For a MySQL database, the following should work: // // mysql://user:password@host/databasename // // FIXME: My version Pear::DB seems to be broken enough that there // is no way to connect to a mysql server over a socket = right now. //'dsn' =3D> 'mysql://guest@:/var/lib/mysql/mysql.sock/test', //'dsn' =3D> 'mysql://guest@localhost/test', //'dsn' =3D> 'pgsql://localhost/test', =20 // Used by all DB types: // prefix for filenames or table names /*=20 * currently you MUST EDIT THE SQL file too (in the schemas/ * directory because we aren't doing on the fly sql generation * during the installation. */ //'prefix' =3D> 'phpwiki_', =20 // Used by 'dba' 'directory' =3D> "/tmp/wiki133", //'dba_handler' =3D> 'gdbm', // Either of 'gdbm' or 'db2' work = great for me. //'dba_handler' =3D> 'db2', 'dba_handler' =3D> 'db3', // doesn't work at all for me.... 'timeout' =3D> 20, //'timeout' =3D> 5 ); - Starting the web server. - Going to http://xxx.xxx.xxx.xxx/phpwiki/index.php - The screen=20 - I click on edit and 'page not found..."=20 The link it try to find is : = http://xxx.xxx.xxx.xxx/phpwiki/index.php/phpwiki/index.php?action=3Dedit Note the addition of /phpwiki/index.php that should not be here. Laurent.\ ----- Original Message -----=20 Subject: Re: [Phpwiki-talk] Strange url behaviour >=20 > Hi Laurent, >=20 > Try commenting out these two lines near the bottom of index.php by = putting=20 > two slashes in front: >=20 > //define('SCRIPT_NAME', '/some/where/index.php'); >=20 > //define('USE_PATH_INFO', false); >=20 > Does this fix the url problem? >=20 >=20 > Regarding the missing bracket problem, I double-checked the latest = version=20 > of index.php and the default file tests ok on my system. Are you = sure you=20 > are looking at the correct file on your computer? It sounds like you = may=20 > have accidentally deleted the ); on line 232, or inserted a = semicolon=20 > instead of a comma, or deleted a comma at the end of one of the = lines=20 > somewhere from line 193 to 232. >=20 > Carsten |