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

Multiple issues after PR 10435 (Fatal on Drupal /user; fatal on profile view, etc.)

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      Yes
    • Acceptance Criteria:
      Hide
      1. When visiting /user, the Drupal user account page is displayed without fatal CiviCRM error.
      2. When visiting profile pages such as /civicrm/profile/view?reset=1&id=1&gid=1, the page is displayed without fatal CiviCRM error.
      Show
      1. When visiting /user, the Drupal user account page is displayed without fatal CiviCRM error. 2. When visiting profile pages such as /civicrm/profile/view?reset=1&id=1&gid=1, the 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 {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.

       

      A fatal error with similar backtrace is also presented when visiting profile pages, e.g. /civicrm/profile/view?reset=1&id=1&gid=1

      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(156): 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/modules/user/user.pages.inc(596): menu_execute_active_handler(NULL, FALSE) #13 [internal function]() user_page() #14 /var/www/d7cividev/includes/menu.inc(527): call_user_func_array("user_page", (Array:0)) #15 /var/www/d7cividev/index.php(21): menu_execute_active_handler() #16 {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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 45 minutes
                2h 45m