If you get the error message "Fatal error: Call to undefined function db_fetch_object() [...] config_perms.module on line 155" navigate to config_perms.module in modules/Docc-config_perms-04298e5, delete the following while-loop in line 155
while ($perm = db_fetch_object($result)) {
$perm->path = unserialize($perm->path);
$perms[$perm->machine_name] = $perm;
}
and replace it with
foreach ($result as $perm) {
$perm->path = unserialize($perm->path);
$perms[$perm->machine_name] = $perm;
}
The error occurs due to the removed db_fetch_object() method in D7.
Comments
Comment #1
BenK commented@pschmitz: Thanks for the suggested fix... I plan to try out this module in D7 using the github code. Does the D7 version basically work or is it still pretty unusable?
--Ben
Comment #2
Docc commentedThe module works and is usable. Just have to found the time to push it to Drupal and make a stable release
Comment #3
Docc commentedFix has been commited.
Comment #5
Jesuscares commentedI am getting the error:
Fatal error: Call to undefined function db_fetch_object() in /home/foobarsite/public_html/sites/all/modules/autologout/autologout.module on line 562
I am not getting the error you speak of here about "config_perms.module" [I don't know how to find this "config_perms.module" you are speaking of, nor where it would be found.]
This error that I'm receiving is in the autologout module.
The code in the autologout module on line 562 is as follows:
while ($row = db_fetch_object($result)) {
$user_settings[$row->uid] = $row->setting;
}
Any help would be appreciated. Thanks!
Comment #6
Jesuscares commentedOh, I see another issue listed at http://drupal.org/node/1034288#comment-5037292 but can't get that to fix it either.