apple G4 biproc. 867 MHz
Mac Os X, 10.2.8
Apache/1.3.33 (Darwin)
PHP Version 4.3.4 www.entropy.ch Release 2
MySQL 4.0.15
phpwiki-1.3.11_rc3
Firefox 1.0.3
======================
0.1. trick
I've had this line in lib/prepend.php in the function rcs_id
very handfull when uncommented to follow the loaded files
// Vincent 15/05/05
// echo "loading $id<br />\n";
result : (after the table of settings )
Fatal Error:
lib/IniConfig.php:124: Error: Datasource file '/Library/WebServer/Documents/phpwiki-1.3.11/config/config.ini' does not exist
lib/IniConfig.php:217: Notice: missing config setting for ADMIN_USER (...repeated 4 times)
lib/IniConfig.php:389: Notice: Constant ACCESS_LOG_SQL already defined
lib/IniConfig.php:467: Notice: Constant PLUGIN_CACHED_CACHE_DIR already defined
lib/IniConfig.php:765: Notice: Constant SERVER_URL already defined
lib/IniConfig.php:808: Notice: Constant PATH_INFO_PREFIX already defined
lib/IniConfig.php:811: Notice: Constant PHPWIKI_BASE_URL already defined
lib/IniConfig.php:823: Notice: Constant SCRIPT_FILENAME already defined
configurator.php:462: Notice: Use of undefined constant ADMIN_USER - assumed 'ADMIN_USER'
configurator.php:467: Notice: Use of undefined constant ADMIN_PASSWD - assumed 'ADMIN_PASSWD'
configurator.php:558: Notice: Use of undefined constant DISABLED_ACTIONS - assumed 'DISABLED_ACTIONS'
configurator.php:905: Notice: Use of undefined constant MAJOR_MIN_KEEP - assumed 'MAJOR_MIN_KEEP'
configurator.php:909: Notice: Use of undefined constant MINOR_MIN_KEEP - assumed 'MINOR_MIN_KEEP'
configurator.php:914: Notice: Use of undefined constant MAJOR_KEEP - assumed 'MAJOR_KEEP'
lib/IniConfig.php:124: Error: Datasource file '/Library/WebServer/Documents/phpwiki-1.3.11/config/config.ini' does not exist
no matter : let's run
======================
3. running wiki
saving config/config.ini :
with default values except :
ADMIN_USER,
ADMIN_PASSWD,
DATABASE_TYPE=SQL PEAR
and some stuff
result :
Fatal error: Cannot instantiate non-existent class: wikidb_backend_peardb_peardb in
/Library/WebServer/Documents/phpwiki-1.3.11/lib/WikiDB/SQL.php on line 20
found in config/config.ini lines 340 & 341 :
; Calculated from the settings above:
mysql://wikiuser13:victor@localhost/phpwiki13
changed to :
; Calculated from the settings above:
DATABASE_DSN =mysql://myUser:myPwd@localhost/phpwiki13
======================
4. running wiki once more
result :
Fatal error: Cannot redeclare class pear
in /Library/WebServer/Documents/phpwiki-1.3.11/lib/pear/PEAR.php on line 74
changed all occurences of :
require_once 'PEAR.php';
to :
// Vincent patch 15/05/05
if(!class_exists('PEAR')) {
require_once 'PEAR.php';
}
======================
5. running wiki once more
result :
Fatal error: Cannot redeclare class db_common
in /Library/WebServer/Documents/phpwiki-1.3.11/lib/pear/DB/common.php on line 38
change all occurences of :
require_once 'DB/common.php';
to :
// Vincent patch 15/05/05
if(!class_exists('DB_common')) {
require_once 'lib/pear/DB/common.php';
}
bad guess
change in lib/pear/DB.php lines 299 to 301 :
include_once "DB/{$type}.php";
} else {
@include_once "DB/{$type}.php";
to :
// Vincent patch 15/05/05
require_once "DB/{$type}.php";
//include_once "DB/{$type}.php";
} else {
// Vincent patch 15/05/05
@require_once "DB/{$type}.php";
//@include_once "DB/{$type}.php";
bad guess
change in lib/main.php after lins 65 (include_once("lib/WikiUser/BogoLogin.php");):
include_once("lib/WikiUser/Db.php");
bad guess
phpWiki is still not running ! a pity.
I had made a version runing on my computer with long long try, and I wanted to check the changes I had made starting with a cleen install. Now i'm lost.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Maybe it's too late, but I had similar problems today (Fatal error: Cannot redeclare class pear ...). I'm using Mandrake Linux 9.2/PHP4.3.3/MySQL4.0.15. I had set DATABASE_TYPE = SQL which I changed to DATABASE_TYPE = ADODB. That solved the problem, after I'd corrected DATABASE_DSN.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
======================
0. configuration
apple G4 biproc. 867 MHz
Mac Os X, 10.2.8
Apache/1.3.33 (Darwin)
PHP Version 4.3.4 www.entropy.ch Release 2
MySQL 4.0.15
phpwiki-1.3.11_rc3
Firefox 1.0.3
======================
0.1. trick
I've had this line in lib/prepend.php in the function rcs_id
very handfull when uncommented to follow the loaded files
// Vincent 15/05/05
// echo "loading $id<br />\n";
======================
1. first install :
calling :
http://vincent.local/phpwiki-1.3.11/
result :
ERROR 500 Internal Server Error
changes in .htaccess (site root)
comment lines 16 to 19 (<Files *.ini> part)
OK
======================
2. using configurator :
calling :
http://vincent.local/phpwiki-1.3.11/
result : (after the table of settings )
Fatal Error:
lib/IniConfig.php:124: Error: Datasource file '/Library/WebServer/Documents/phpwiki-1.3.11/config/config.ini' does not exist
lib/IniConfig.php:217: Notice: missing config setting for ADMIN_USER (...repeated 4 times)
lib/IniConfig.php:389: Notice: Constant ACCESS_LOG_SQL already defined
lib/IniConfig.php:467: Notice: Constant PLUGIN_CACHED_CACHE_DIR already defined
lib/IniConfig.php:765: Notice: Constant SERVER_URL already defined
lib/IniConfig.php:808: Notice: Constant PATH_INFO_PREFIX already defined
lib/IniConfig.php:811: Notice: Constant PHPWIKI_BASE_URL already defined
lib/IniConfig.php:823: Notice: Constant SCRIPT_FILENAME already defined
configurator.php:462: Notice: Use of undefined constant ADMIN_USER - assumed 'ADMIN_USER'
configurator.php:467: Notice: Use of undefined constant ADMIN_PASSWD - assumed 'ADMIN_PASSWD'
configurator.php:558: Notice: Use of undefined constant DISABLED_ACTIONS - assumed 'DISABLED_ACTIONS'
configurator.php:905: Notice: Use of undefined constant MAJOR_MIN_KEEP - assumed 'MAJOR_MIN_KEEP'
configurator.php:909: Notice: Use of undefined constant MINOR_MIN_KEEP - assumed 'MINOR_MIN_KEEP'
configurator.php:914: Notice: Use of undefined constant MAJOR_KEEP - assumed 'MAJOR_KEEP'
lib/IniConfig.php:124: Error: Datasource file '/Library/WebServer/Documents/phpwiki-1.3.11/config/config.ini' does not exist
no matter : let's run
======================
3. running wiki
saving config/config.ini :
with default values except :
ADMIN_USER,
ADMIN_PASSWD,
DATABASE_TYPE=SQL PEAR
and some stuff
calling :
http://vincent.local/phpwiki-1.3.11/
result :
Fatal error: Cannot instantiate non-existent class: wikidb_backend_peardb_peardb in
/Library/WebServer/Documents/phpwiki-1.3.11/lib/WikiDB/SQL.php on line 20
found in config/config.ini lines 340 & 341 :
; Calculated from the settings above:
mysql://wikiuser13:victor@localhost/phpwiki13
changed to :
; Calculated from the settings above:
DATABASE_DSN =mysql://myUser:myPwd@localhost/phpwiki13
======================
4. running wiki once more
result :
Fatal error: Cannot redeclare class pear
in /Library/WebServer/Documents/phpwiki-1.3.11/lib/pear/PEAR.php on line 74
changed all occurences of :
require_once 'PEAR.php';
to :
// Vincent patch 15/05/05
if(!class_exists('PEAR')) {
require_once 'PEAR.php';
}
======================
5. running wiki once more
result :
Fatal error: Cannot redeclare class db_common
in /Library/WebServer/Documents/phpwiki-1.3.11/lib/pear/DB/common.php on line 38
change all occurences of :
require_once 'DB/common.php';
to :
// Vincent patch 15/05/05
if(!class_exists('DB_common')) {
require_once 'lib/pear/DB/common.php';
}
bad guess
change in lib/pear/DB.php lines 299 to 301 :
include_once "DB/{$type}.php";
} else {
@include_once "DB/{$type}.php";
to :
// Vincent patch 15/05/05
require_once "DB/{$type}.php";
//include_once "DB/{$type}.php";
} else {
// Vincent patch 15/05/05
@require_once "DB/{$type}.php";
//@include_once "DB/{$type}.php";
bad guess
change in lib/main.php after lins 65 (include_once("lib/WikiUser/BogoLogin.php");):
include_once("lib/WikiUser/Db.php");
bad guess
phpWiki is still not running ! a pity.
I had made a version runing on my computer with long long try, and I wanted to check the changes I had made starting with a cleen install. Now i'm lost.
Maybe it's too late, but I had similar problems today (Fatal error: Cannot redeclare class pear ...). I'm using Mandrake Linux 9.2/PHP4.3.3/MySQL4.0.15. I had set DATABASE_TYPE = SQL which I changed to DATABASE_TYPE = ADODB. That solved the problem, after I'd corrected DATABASE_DSN.