[sork] getdriverconfig() error
Patrick Boutilier
boutilpj at ednet.ns.ca
Fri Feb 21 13:28:49 PST 2003
Eric Rostetter wrote:
> Quoting Patrick Boutilier <boutilpj at ednet.ns.ca>:
>
>
>>Eric,
>>
>>That fixed the first problem but I then got the "Password module is not
>>properly configured" error.
>
>
> Well, then I would guess your password module wasn't configured properly.
That is what I thought until I put in some debug statements such as
print_r (get_declared_classes());
Using the same backends.php file with the CVS version works great.
However with the 2.2 release version I get "Password module is not
properly configured"
Here is the get_declared_classes() output:
CVS version, lines 37 to 46 of lib/Driver.php
$driver = strtolower(basename($driver));
@include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
$class = 'Passwd_Driver_' . $driver;
----> print_r (get_declared_classes());
if (class_exists($class)) {
return new $class($params);
} else {
return false;
}
}
Output:
Array ( [0] => stdClass [1] => __PHP_Incomplete_Class [2] => Directory
[3] => domnode [4] => domdocument [5] => domparser [6] =>
domdocumenttype [7] => dtd [8] => domelement [9] => domattribute [10] =>
domcdata [11] => domtext [12] => domcomment [13] =>
domprocessinginstruction [14] => domnotation [15] => domentity [16] =>
domentityreference [17] => domnamespace [18] => XPathContext [19] =>
XPathObject [20] => registry [21] => pear [22] => pear_error [23] =>
horde [24] => lang [25] => auth [26] => secret [27] => prefs [28] =>
crypt_hcemd5 [29] => prefs_sql [30] => text [31] => help [32] => passwd
[33] => browser [34] => passwd_driver [35] => passwd_driver_sql )
2.2 release version, lines 37 to 46 of lib/Driver.php
$driver = strtolower(basename($driver));
@include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
$class = 'Passwd_Driver_' . $driver;
----> print_r (get_declared_classes());
if (class_exists($class)) {
return new $class($params);
} else {
return false;
}
}
Output:
Array ( [0] => stdClass [1] => __PHP_Incomplete_Class [2] => Directory
[3] => domnode [4] => domdocument [5] => domparser [6] =>
domdocumenttype [7] => dtd [8] => domelement [9] => domattribute [10] =>
domcdata [11] => domtext [12] => domcomment [13] =>
domprocessinginstruction [14] => domnotation [15] => domentity [16] =>
domentityreference [17] => domnamespace [18] => XPathContext [19] =>
XPathObject [20] => registry [21] => pear [22] => pear_error [23] =>
horde [24] => lang [25] => auth [26] => secret [27] => prefs [28] =>
crypt_hcemd5 [29] => prefs_sql [30] => text [31] => help [32] => passwd
[33] => browser [34] => passwd_driver )
Notice how [35] => passwd_driver_sql is not in the 2.2 version
but is in the CVS version?
>
>
>>After tracing it down to the fact that class
>>Passwd_Driver_sql was not being set I decided to try CVS. RELENG_2 works
>>great which I presume is the correct code to use with Horde 2.2.1 ?
>
>
> Yes, either the Passwd 2.2 + the patch, or CVS RELENG_2 (which is
> basically Passwd 2.2 + the patch).
>
More information about the sork
mailing list