Fatal error after updating to Developer Services 17.01.27.00

rpet2
Participant I

Get this error when logging in after updating on Pantheon to Developer Services 17.01.27.00.

Fatal error: Call to undefined method SelectQuery::fetchCol() in /base_dir/profiles/apigee/modules/custom/devconnect/devconnect_admin_notify/devconnect_admin_notify.module on line 136

It looks like some lines changed here to use db_select instead of db_query. The result of $result->execute(); needs to be stored in $result, otherwise $result remains a SelectQuery object instead of a DatabaseStatementInterface which has the fetchCol method. The following code fixes this error.

diff --git a/profiles/apigee/modules/custom/devconnect/devconnect_admin_notify/devconnect_admin_notify.module b/profiles/apigee/modules/custom/devconnect/devconnect_admin_notify/devconnect_admin_notify.module
index 644446b..4387f55 100644
--- a/profiles/apigee/modules/custom/devconnect/devconnect_admin_notify/devconnect_admin_notify.module
+++ b/profiles/apigee/modules/custom/devconnect/devconnect_admin_notify/devconnect_admin_notify.module
@@ -131,8 +131,8 @@ function _devconnect_admin_notify_get_receiver_mails() {
         $result->fields('u', array('mail'))
           ->condition('r.rid', $roles)
           ->condition('u.status', 1)
-          ->distinct()
-          ->execute();
+          ->distinct();
+        $result = $result->execute();
         $emails = array_merge($emails, $result->fetchCol());
       }
       break;
1 1 95
1 REPLY 1

Not applicable

Thanks for the report. I have created a bugreport in our issue tracker and will keep you updated on progress.