Friday 19 August 2005 6:40:27 am
I'm running the scripts from the shell an I tried to run them i many ways, the detailed description is in this other post I mentioned. Here's an example:
update/common/scripts/convertxmllinks.php -s devel_me
but I tried almost all other parameters, and also tried run them with:
php update/common/scripts/convertxmllinks.php -s devel_me
I did some more research and found out that the error occurs in file: lib/ezdb/classes/ezdb.php at this code:
include_once( $dbFile );
$className = $databaseImplementation . 'db';
$impl = new $className( $databaseParameters ); break; on the line "$imp = new ...". I printed out manually the values of relevat variables:
$className=ezmysqldb $dbFile=lib/ezdb/classes/ezmysqldb.php
$databaseParameters[user]=myuser
$databaseParameters[password]=mypass
$databaseParameters[database]=mydb
$databaseParameters[use_slave_server]=
$databaseParameters[slave_server]=
$databaseParameters[slave_user]=
$databaseParameters[slave_password]=
$databaseParameters[slave_database]=
$databaseParameters[charset]=iso-8859-2
$databaseParameters[is_internal_charset]=1
$databaseParameters[socket]=
$databaseParameters[builtin_encoding]=1
$databaseParameters[connect_retries]=0
$databaseParameters[use_persistent_connection]=disabled $databaseParameters[show_errors]=1 where 'myuser', 'mypass' and 'mydb' are actually the correct username, password and dbname for the databse eZ uses. It seems like the problem is in creating a new instance of "ezmysqldb" class, which probably involves digging deeper in "ezmysqldb.php" file in the same directory. Maybe there's a problem with connecting to the database, but the whole eZ site is functioning normally, so it can connect to the database, only this scripts can't. Could anyone help me futher?
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|