Hello,
I have a piece of code that doesn’t make problem in eGw 1.4.001 but now
with 1.4.002 something strange happen.
I make a connection to another database (same server than egw db) this way
class somaintenance
{
function somaintenance()
{
$this->dbotrs=& CreateObject('phpgwapi.egw_db');
$this->dbotrs->connect('database','dbserver', 3306,'dbuser',
‘dbpass’);
}
blah, blah, …
}
and this is what I get :
Database error: Invalid SQL: SELECT * FROM egw_etemplate WHERE
et_name=‘provectio.maintenance’ AND et_template=’’ AND et_lang=’’ ORDER
BY et_lang DESC,et_template DESC,et_version DESC
mysql Error: 1146 (Table ‘database.egw_etemplate’ doesn’t exist)
File:
/home/system/apache/egwtest/html/etemplate/inc/class.soetemplate.inc.php
Line: 450
Function: egw_db::select / soetemplate::read / boetemplate::read /
boetemplate::boetemplate / etemplate::etemplate / eval() /
CreateObject(etemplate.etemplate) / uimaintenance::maintenance /
ExecMethod(provectio.uimaintenance.maintenance)
Session halted.
Database error: Invalid SQL: SELECT * FROM egw_async WHERE
async_id=’##last-check-run##'
mysql Error: 1146 (Table ‘database.egw_async’ doesn’t exist)
File:
/home/system/apache/egwtest/html/phpgwapi/inc/class.asyncservice.inc.php
Line: 463
Function: egw_db::select / asyncservice::read /
asyncservice::last_check_run / asyncservice::check_run /
ExecMethod(phpgwapi.asyncservice.check_run) / common::egw_final
*Session halted.
This code was working with 1.4.001
This error shows up only when connect method is called. It’s libe my
other db connection modify the global egw connection. I have followed
the code throught egw_db and etemplate but I can"t see where I mess
things up.
Any clue ?
JC Passard
Provectio
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers