Answers.Body: <p>Check your <code>civicrm.settings.php</code>, and make sure that the <code>CIVICRM_BASE_URL</code> matches your site url.</p>
  
  <p>My site was redirecting <code>http://domain.com</code> to <code>http://www.domain.com</code>, but <code>civicrm.settings.php</code> had the version without the <code>www</code>, which was screwing things up.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-09T05:51:58.280Z
Answers.LastActivityDate: 2019-03-09T05:51:58.280Z
Answers.UserDisplayName: naught101
Answers.Body: <p>Check that you are using <code>https://...</code> or <code>http://...</code> consistently and not mixing them. (Preferably <code>https</code>!)</p>
  
  <p>I have seen that where you have a mismatch between the URL you are logging in with and the resource URL's (configured at <code>Administer &gt; System Settings &gt; Resource URL's</code>).  For example, if your Resource URL's are <code>https://...</code> but you log in as <code>http://</code></p>
  
  <p>I usually redirect any <code>http://...</code> requests to <code>https://...</code> in <code>.htaccess</code> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-03T15:50:53.633Z
Answers.Text: I do have redirection set up and the content in the widgets are being addressed by https.
  Also, I have the resource URLs set and they look right to me.  Are they supposed to be in the format: https://www.domain.com/sites/all/modules/civicrm ?
Answers.UserDisplayName: user5249
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T13:18:24.600Z
Answers.Text: That was the right format, except that it should include `https://` at the front.  Newer installations use `[civicrm.root]`. If you go to `Administer > System Settings > Resource URLs` then click the help icon at the end of the help box then it will show you the values in use on your site.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T13:20:57.410Z
Answers.Text: Also, you could open the Network tab in your browser to confirm the URLs being requested.  Eg for Firefox, go to `Tools > Web Developer > Network` and reload your dashboard.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-02T23:51:20.930Z
Answers.LastActivityDate: 2017-11-02T23:51:20.930Z
Answers.UserDisplayName: Aidan
Body: <p>I've recently migrated a site to another host and pretty much everything is working except that when I go to /civicrm, the dashlets on the dashboard all show Access Denied and a login form.  They are being provided by CiviReport according to their respective breadcrumbs.</p>
  
  <p>In addition, I noticed that I could not disable CiviReport or any of the other CiviCRM Components.  When I click Save on that page, it just bumps me back to /civicrm/admin with no error message.  Going back into civicrm/admin/setting/component just shows the modules still enabled.</p>
  
  <p>I'm still a CiviCRM noob, so it could be something simple.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-02T20:38:23.867Z
Comments.Text: Check your civicrm.settings.php file. I suspect your baseurl is incorrect.  What CMS are you using?    Also read through this https://wiki.civicrm.org/confluence/display/CRMDOC42/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Comments.UserDisplayName: Tommy B
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-02T23:52:47.847Z
Comments.Text: ... or the latest version at https://docs.civicrm.org/sysadmin/en/latest/misc/switch-servers/
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-03T15:45:42.343Z
Comments.Text: Tommy B > I've double-checked my base URL and I can see the data in CiviCRM.  The CMS in this case is Drupal.  I'm also having the same problem on a different site with Wordpress, too, though.
  
  I followed the same steps as in that guide, but I didn't actually disable CiviCRM before dumping the DB.  Do you think that could cause it?
Comments.UserDisplayName: user5249
Tags: <civireport><dashlet>
Title: CiviReport widgets show access denied on CiviCRM Dashboard
ThreadText: # CiviReport widgets show access denied on CiviCRM Dashboard
  
  (Asked by: username_0 on 2017-11-02)
  
  I've recently migrated a site to another host and pretty much everything is working except that when I go to /civicrm, the dashlets on the dashboard all show Access Denied and a login form. They are being provided by CiviReport according to their respective breadcrumbs.
  
  In addition, I noticed that I could not disable CiviReport or any of the other CiviCRM Components. When I click Save on that page, it just bumps me back to /civicrm/admin with no error message. Going back into civicrm/admin/setting/component just shows the modules still enabled.
  
  I'm still a CiviCRM noob, so it could be something simple.
  
  **Tags:** civireport, dashlet
  
  > **Comments:**
  > **username_1**: Check your civicrm.settings.php file. I suspect your baseurl is incorrect.  What CMS are you using?    Also read through this https://wiki.civicrm.org/confluence/display/CRMDOC42/Moving+an+Existing+Installation+to+a+New+Server+or+Location  
  > **username_2**: ... or the latest version at https://docs.civicrm.org/sysadmin/en/latest/misc/switch-servers/  
  > **username_0**: username_1 > I've double-checked my base URL and I can see the data in CiviCRM.  The CMS in this case is Drupal.  I'm also having the same problem on a different site with Wordpress, too, though.  I followed the same steps as in that guide, but I didn't actually disable CiviCRM before dumping the DB.  Do you think that could cause it?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2019-03-09. Score: 3
  
  Check your `civicrm.settings.php`, and make sure that the `CIVICRM_BASE_URL` matches your site url.
  
  My site was redirecting `http://domain.com` to `http://www.domain.com`, but `civicrm.settings.php` had the version without the `www`, which was screwing things up.
  
  
  ---
  
  ### Answer by username_2 on 2017-11-02. Score: 1
  
  Check that you are using `https://...` or `http://...` consistently and not mixing them. (Preferably `https`!)
  
  I have seen that where you have a mismatch between the URL you are logging in with and the resource URL's (configured at `Administer > System Settings > Resource URL's`). For example, if your Resource URL's are `https://...` but you log in as `http://`
  
  I usually redirect any `http://...` requests to `https://...` in `.htaccess`
  
  > **Comments:**
  > **username_0**: I do have redirection set up and the content in the widgets are being addressed by https. Also, I have the resource URLs set and they look right to me.  Are they supposed to be in the format: https://www.domain.com/sites/all/modules/civicrm ?  
  > **username_2**: That was the right format, except that it should include `https://` at the front.  Newer installations use `[civicrm.root]`. If you go to `Administer > System Settings > Resource URLs` then click the help icon at the end of the help box then it will show you the values in use on your site.  
  > **username_2**: Also, you could open the Network tab in your browser to confirm the URLs being requested.  Eg for Firefox, go to `Tools > Web Developer > Network` and reload your dashboard.  
  
  ---
  
  