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

Fatal error on Drupal /user and /user/%

    Details

    • Type: Bug
    • Status: Won't Do
    • Priority: Blocker
    • Resolution: Won't Do
    • Affects Version/s: 4.7.26
    • Fix Version/s: 4.7.27
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      Yes
    • Acceptance Criteria:
      When visiting /user, the Drupal user account page is displayed without fatal CiviCRM error.

      Description

      To reproduce (on dmaster.drupal.civicrm.org or your local dev master):

      1. Sign into drupal (as user 1 or other user, e.g., "demo" on dmaster)
      2. Observe successful login (probably navigates you to CiviCRM or to site homepage)
      3. View your account by navigating to /user or /user/%uid
      4. Observe CiviCRM fatal error.

      backTrace

      #0 /var/www/d7cividev/sites/all/modules/civicrm/CRM/Core/Error.php(374): CRM_Core_Error::backtrace()
      #1 /var/www/d7cividev/sites/all/modules/civicrm/CRM/Core/DAO.php(1094): CRM_Core_Error::fatal()
      #2 /var/www/d7cividev/sites/all/modules/civicrm/CRM/Activity/BAO/Activity.php(2344): CRM_Core_DAO::getFieldValue("CRM_Activity_DAO_Activity", 0, "original_id")
      #3 /var/www/d7cividev/sites/all/modules/civicrm/CRM/Profile/Page/Dynamic.php(155): CRM_Activity_BAO_Activity::getLatestActivityId(0)
      #4 /var/www/d7cividev/sites/all/modules/civicrm/drupal/civicrm_user.inc(237): CRM_Profile_Page_Dynamic->__construct(202, 1, NULL, TRUE)
      #5 [internal function](): civicrm_user_view(Object(stdClass), "full", "en")
      #6 /var/www/d7cividev/includes/module.inc(957): call_user_func_array("civicrm_user_view", (Array:3))
      #7 /var/www/d7cividev/modules/user/user.module(2705): module_invoke_all("user_view", Object(stdClass), "full", "en")
      #8 /var/www/d7cividev/modules/user/user.module(2657): user_build_content(Object(stdClass), "full", "en")
      #9 /var/www/d7cividev/modules/user/user.module(2618): user_view(Object(stdClass))
      #10 [internal function](): user_view_page(Object(stdClass))
      #11 /var/www/d7cividev/includes/menu.inc(527): call_user_func_array("user_view_page", (Array:1))
      #12 /var/www/d7cividev/index.php(21): menu_execute_active_handler()
      #13
      Unknown macro: {main}

      Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                allenshaw Allen Shaw
                Reporter:
                allenshaw Allen Shaw
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: