Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Blocker
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.26
-
Fix Version/s: 4.7.27
-
Component/s: Drupal Integration Modules
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:Yes
-
Acceptance Criteria:
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
Issue Links
- is duplicated by
-
CRM-21238 Fatal error on Drupal /user and /user/%
- Won't Do
- links to