Answers.Body: <p>This has now been resolved by disabling the CiviCRM news dashlet for the affected users. It seems the error message started when i disabled the community messages on the home dashboard in the civicrm settings file ($civicrm_setting['CiviCRM Preferences']['communityMessagesUrl'] = false;) and started getting the fatal error from those users who had the dashlet enabled. Thank you @Jon for the hint, your sql statement helped me track down the problem.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-16T10:53:25.313Z
Answers.LastActivityDate: 2016-05-16T10:53:25.313Z
Answers.UserDisplayName: Kboy
Answers.Body: <p>Based on this line:</p>
  
  <pre><code>#8 ../sites/all/modules/civicrm/CRM/Contact/Page/AJAX.php(606): CRM_Core_BAO_Dashboard::getDashletInfo(5)
  </code></pre>
  
  <p>I can see that the error is to do with dashlet number 5.  Since CiviCRM generally ships with 6 dashboards pre-built, that means that what <em>I</em> see as dashlet 5 in the database is the same as you.  So I ran:</p>
  
  <pre><code>mysql&gt; SELECT id, name, label, permission FROM civicrm_dashboard WHERE id = 5;
  +----+----------+-----------+---------------------------------+
  | id | name     | label     | permission                      |
  +----+----------+-----------+---------------------------------+
  |  5 | allCases | All Cases | access all cases and activities |
  +----+----------+-----------+---------------------------------+
  </code></pre>
  
  <p>So my guess here is that you have this dashlet, but CiviCase may not be enabled.</p>
  
  <p>Check your Drupal permissions to make sure your users have the "access all cases and activities" permission.  If you're not using CiviCase, remove this dashlet from user's dashboards with this SQL command:</p>
  
  <pre><code>DELETE FROM civicrm_dashboard_contact WHERE dashboard_id = 5;
  </code></pre>
  
  <p>Also - if CiviCase is disabled, you may be able to temporarily enable it to modify the permissions appropriately.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T10:46:25.817Z
Answers.Text: thank you, will look into this solution, just a little bit confused because the fatal error comes just from certain users while others having the same roles have their dashboards loading correctly
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T10:59:14.700Z
Answers.Text: Just to add that Since civicase is not enabled, the permission is not also available, role has view all activities
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T11:11:50.203Z
Answers.Text: this command SELECT id, name, label, permission FROM civicrm_dashboard WHERE id = 5; gives me 5 | blog | CiviCRM News | access CiviCRM, and all users have the access CiviCRM permissions
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T13:07:38.773Z
Answers.Text: Even as an admin, when i follow the location url something like this: civicrm/ajax/dashboard?op=get_widget&key=...................&id=5, i get access denied but i do not get the fatal error
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T04:33:36.473Z
Answers.LastActivityDate: 2016-05-10T04:33:36.473Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I have started experiencing some problems with non admin users, i get Fatal error on the logs when non admin users access civicrm example.com/civicrm and dashboard doesn't load for these users.</p>
  
  <p>Admin users do not have this problem and dashboard loads correctly.</p>
  
  <blockquote>
    <p>[info] $Fatal Error Details = Array
    (
        [callback] => Array
            (
                [0] => CRM_Core_Error
                [1] => handle
            )</p>
  </blockquote>
  
  <pre><code>[code] =&gt; 0
  [message] =&gt;
  [mode] =&gt; 16
  [debug_info] =&gt;
  [type] =&gt; PEAR_Error
  [user_info] =&gt;
  [to_string] =&gt; [pear_error: message="" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
  
  
  [info] $backTrace = #0 ../sites/all/modules/civicrm/CRM/Core/Error.php(235): CRM_Core_Error::backtrace("backTrace", TRUE)
  #1 [internal function](): CRM_Core_Error::handle(Object(PEAR_Error))
  #2 ../sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(PEAR_Error))
  #3 ../sites/all/modules/civicrm/packages/PEAR.php(566): PEAR_Error-&gt;PEAR_Error("", 0, 16, (Array:2), NULL)
  #4 ../sites/all/modules/civicrm/packages/Net/Socket.php(156): PEAR-&gt;raiseError("", 0)
  #5 ../sites/all/modules/civicrm/packages/HTTP/Request.php(737): Net_Socket-&gt;connect("ssl://www.excample.com", 443, NULL, NULL, NULL)
  #6 ../sites/all/modules/civicrm/CRM/Utils/System.php(1393): HTTP_Request-&gt;sendRequest()
  #7 ../sites/all/modules/civicrm/CRM/Core/BAO/Dashboard.php(326): CRM_Utils_System::getServerResponse("https://www.excample.com/civicrm/d$
  #8 ../sites/all/modules/civicrm/CRM/Contact/Page/AJAX.php(606): CRM_Core_BAO_Dashboard::getDashletInfo(5)
  #9 [internal function](): CRM_Contact_Page_AJAX::dashboard()
  #10 ../sites/all/modules/civicrm/CRM/Core/Invoke.php(278): call_user_func((Array:2))
  #11 ../sites/all/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:12))
  #12 ../sites/all/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  </code></pre>
  
  <p>)</p>
  
  <p>I have taken a look at the following posts and seems to not solve my problem as this fatal error only comes from non admin users.
  <a href="https://civicrm.stackexchange.com/questions/4448/ssl-enabled-civicrm-with-forever-loading-dashlets">SSL enabled CiviCRM with forever loading dashlets?</a>,</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/3426/the-dashboard-does-not-render/3430#3430">The dashboard does not render</a></p>
  
  <p>CiviCRM V4.6.10, Drupal 7, PHP 5.6.14-1</p>
  
Tags: <dashboard><user-dashboard>
Title: why are non admin users having fatal error when accessing CiviCRM and dashboard doesn't load?
ThreadText: # why are non admin users having fatal error when accessing CiviCRM and dashboard doesn't load?
  
  (Asked by: username_0 on 2016-05-09)
  
  I have started experiencing some problems with non admin users, i get Fatal error on the logs when non admin users access civicrm example.com/civicrm and dashboard doesn't load for these users.
  Admin users do not have this problem and dashboard loads correctly.
  
  [info] $Fatal Error Details = Array
    (
        [callback] => Array
            (
                [0] => CRM_Core_Error
                [1] => handle
            )
  
  [code] => 0
  [message] =>
  [mode] => 16
  [debug_info] =>
  [type] => PEAR_Error
  [user_info] =>
  [to_string] => [pear_error: message="" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
  
  
  [info] $backTrace = #0 ../sites/all/modules/civicrm/CRM/Core/Error.php(235): CRM_Core_Error::backtrace("backTrace", TRUE)
  #1 [internal function](): CRM_Core_Error::handle(Object(PEAR_Error))
  #2 ../sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(PEAR_Error))
  #3 ../sites/all/modules/civicrm/packages/PEAR.php(566): PEAR_Error->PEAR_Error("", 0, 16, (Array:2), NULL)
  #4 ../sites/all/modules/civicrm/packages/Net/Socket.php(156): PEAR->raiseError("", 0)
  #5 ../sites/all/modules/civicrm/packages/HTTP/Request.php(737): Net_Socket->connect("ssl://www.excample.com", 443, NULL, NULL, NULL)
  #6 ../sites/all/modules/civicrm/CRM/Utils/System.php(1393): HTTP_Request->sendRequest()
  #7 ../sites/all/modules/civicrm/CRM/Core/BAO/Dashboard.php(326): CRM_Utils_System::getServerResponse("https://www.excample.com/civicrm/d$
  #8 ../sites/all/modules/civicrm/CRM/Contact/Page/AJAX.php(606): CRM_Core_BAO_Dashboard::getDashletInfo(5)
  #9 [internal function](): CRM_Contact_Page_AJAX::dashboard()
  #10 ../sites/all/modules/civicrm/CRM/Core/Invoke.php(278): call_user_func((Array:2))
  #11 ../sites/all/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:12))
  #12 ../sites/all/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  
  )
  I have taken a look at the following posts and seems to not solve my problem as this fatal error only comes from non admin users.
  SSL enabled CiviCRM with forever loading dashlets?,
  The dashboard does not render
  CiviCRM V4.6.10, Drupal 7, PHP 5.6.14-1
  
  **Tags:** dashboard, user-dashboard
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2016-05-16. Score: 1 | Accepted answer
  
  This has now been resolved by disabling the CiviCRM news dashlet for the affected users. It seems the error message started when i disabled the community messages on the home dashboard in the civicrm settings file ($civicrm\_setting['CiviCRM Preferences']['communityMessagesUrl'] = false;) and started getting the fatal error from those users who had the dashlet enabled. Thank you @Jon for the hint, your sql statement helped me track down the problem.
  
  
  ---
  
  ### Answer by username_1 on 2016-05-10. Score: 1
  
  Based on this line:
  #8 ../sites/all/modules/civicrm/CRM/Contact/Page/AJAX.php(606): CRM_Core_BAO_Dashboard::getDashletInfo(5)
  
  I can see that the error is to do with dashlet number 5.  Since CiviCRM generally ships with 6 dashboards pre-built, that means that what I see as dashlet 5 in the database is the same as you.  So I ran:
  mysql> SELECT id, name, label, permission FROM civicrm_dashboard WHERE id = 5;
  +----+----------+-----------+---------------------------------+
  | id | name     | label     | permission                      |
  +----+----------+-----------+---------------------------------+
  |  5 | allCases | All Cases | access all cases and activities |
  +----+----------+-----------+---------------------------------+
  
  So my guess here is that you have this dashlet, but CiviCase may not be enabled.
  Check your Drupal permissions to make sure your users have the "access all cases and activities" permission.  If you're not using CiviCase, remove this dashlet from user's dashboards with this SQL command:
  DELETE FROM civicrm_dashboard_contact WHERE dashboard_id = 5;
  
  Also - if CiviCase is disabled, you may be able to temporarily enable it to modify the permissions appropriately.
  
  > **Comments:**
  > **username_0**: thank you, will look into this solution, just a little bit confused because the fatal error comes just from certain users while others having the same roles have their dashboards loading correctly  
  > **username_0**: Just to add that Since civicase is not enabled, the permission is not also available, role has view all activities  
  > **username_0**: this command SELECT id, name, label, permission FROM civicrm_dashboard WHERE id = 5; gives me 5 | blog | CiviCRM News | access CiviCRM, and all users have the access CiviCRM permissions  
  > **username_0**: Even as an admin, when i follow the location url something like this: civicrm/ajax/dashboard?op=get_widget&key=...................&id=5, i get access denied but i do not get the fatal error  
  
  ---
  
  