Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10537

calls to undefined function db_fetch_object in d7 tarball

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.5
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      There were a number of errors in Apache log for a D7 CiviCRM 4.1.2, 4.1.4 and 4.1.5 site:

      PHP Fatal error: Call to undefined function db_fetch_object() in /var/www/mysite/public/modules/php/php.module(80) : eval()'d code on line 10

      db_fetch_object is only defined in D6, not D7.

      Checking with
      $ grep -R db_fetch_object *

      sites/all/modules/civicrm/CRM/Core/Permission/Drupal.php: while ($result = db_fetch_object($query)) {
      sites/all/modules/civicrm/drupal/api.php: if (!db_fetch_object($roles_result)) {
      sites/all/modules/civicrm/drupal/modules/civicrm_rules/civicrm_rules.participant-eval.inc: while ($result = db_fetch_object($results)) {

      The civicrm_rules files refers to cck in a comment just above the db_fetch_object call, so that may not be a bug. It was not enabled on our site.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: