[kronolith] Unable to load the definition of Kronolith_Driver_
Kevin
coggy at redefine.org
Thu Sep 30 15:30:42 PDT 2004
im using the head tag from cvs. ive deleted the conf.php and recreated
it through the horde admin page but i still get the same error.
this is from conf.php:
$conf['calendar']['params']['table'] = 'kronolith_events';
$conf['calendar']['params']['driverconfig'] = 'horde';
$conf['calendar']['driver'] = 'sql';
i get the following error when i try to access kronolith:
Unable to load the definition of Kronolith_Driver_.
[line 326 of
/opt/www/mail.redefine.org/public_html/horde/kronolith/lib/Driver.php]
heres the function its failing on:
function &factory($driver = null, $params = null)
{
if (is_null($driver)) {
$driver = $GLOBALS['conf']['calendar']['driver'];
}
$driver = basename($driver);
if (is_null($params)) {
$params = Horde::getDriverConfig('calendar', $driver);
}
include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
$class = 'Kronolith_Driver_' . $driver;
if (class_exists($class)) {
return $driver = &new $class($params);
} else {
Horde::fatal(PEAR::raiseError(sprintf(_("Unable to load the
definition of %s."), $class)), __FILE__, __LINE__);
}
}
it works fine if i manually set $driver = 'sql' before the basename.
any ideas?
More information about the kronolith
mailing list