CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using WordPress Plugins »
  • CiviCRM Dashboard not loading
Pages: [1]

Author Topic: CiviCRM Dashboard not loading  (Read 2112 times)

musictheorysean

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-36.1
  • PHP version: 5.4.37
CiviCRM Dashboard not loading
February 23, 2015, 08:04:57 pm
Hello, I am new to CiviCRM, but familiar with WordPress.

When I login to wp-admin, I can use any WP pages without error, but when I click on CiviCRM, it never finishes loading the dashboard or menus. There is a loading icon under the "CiviCRM Home" title and the configure dashboard link. If I do nothing, I get forcefully logged out after a minute or 2 and a WordPress popup reads "Session expired. Please log in again. You will not move away from this page." and includes a login form. If I login again, the process repeats. If I click on any CiviCRM links, I get the same session expired message or am otherwise redirected to the WP login screen (I can't discern what causes which).

I've read the few posts which include "session expired" errors, but none have helped me. As a result of one of them, I have established that this is not an SSL issue, as SSL is disabled on my site.

I'm using WP 4.1.1 and CiviCRM 4.5.5. It may be relevant that I migrated servers a week ago, although the menu/dashboard was loading fine on the new server prior to, during, and after propagation.

Any help is appreciated.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: CiviCRM Dashboard not loading
February 23, 2015, 11:18:11 pm
Hi Sean,

You may want to open the Javascript Console and/or Net tab on your web browser's developer tools.  F12 in Firefox and/or Chrome.  I'd check the Net tab first, look for 404 errors, see if there's an issue with some of your URLs.  Also the Javascript console for errors you can paste back here for more help.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: CiviCRM Dashboard not loading
February 23, 2015, 11:19:09 pm
Also, I just realized which forum we're in.  This forum is for issues relating to using Wordpress integration plugins, not CiviCRM itself.  This issue should probably be moved to "Using CiviCRM" where more folks will see it.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM Dashboard not loading
February 24, 2015, 11:52:26 am
i think there have been reports by some others of dashboard not loading on first visit to page, but going to eg a contact record, then back to dashboard does cause it to load - obv. not a solution but may help others help you if you can confirm/deny
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

musictheorysean

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-36.1
  • PHP version: 5.4.37
Re: CiviCRM Dashboard not loading
February 24, 2015, 01:35:44 pm
JonGold, I checked the logs per your suggestion, and am getting the following errors.

"Uncaught SyntaxError: Unexpected token <
wp-login.php?redirect_to=http%3A%2F%2Ffundtexaschoice.org%2F%7Efundtxch%2Fwp-admin%2Fadmin.php%3Fpage%3DCiviCRM%26q%3Dcivicrm%2Fajax%2Fl10n-js%2Fen_US%26r%3D2g1yR&reauth=1
Uncaught SyntaxError: Unexpected token <
wp-login.php?redirect_to=http%3A%2F%2Ffundtexaschoice.org%2F%7Efundtxch%2Fwp-admin%2Fadmin.php%3Fpage%3DCiviCRM%26q%3Dcivicrm%2Fajax%2Fmenujs%2F1673%2Fen_US%2F1%2FAHWVMvH9&reauth=1
Uncaught TypeError: Cannot read property 'farbtastic' of undefined
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,farbtastic&ver=4.1.1:25"

Also, I'm not sure how to move my post to a different board, but I would like to.

Petednz, I was able to view a contact record by typing the variables directly into the address bar, but I had the same errors (this time each of the uncaught syntax errors also triggered this message: "Resource interpreted as Script but transferred with MIME type text/html"
There no menu on this page either. I did try to travel back to the dashboard via the breadcrumbs and had the same result as clicking a link on the dashboard. And if I wait on the page, the session expires.

Edit: the errors are logged when the page loads, not when the session expires.
Edit2: posted the full URL in the error to get rid of the ellipses.
« Last Edit: February 24, 2015, 01:51:03 pm by musictheorysean »

musictheorysean

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-36.1
  • PHP version: 5.4.37
Re: CiviCRM Dashboard not loading
February 24, 2015, 02:40:00 pm
I think I've found a problem (not sure if it's the problem), but I don't know how to fix it. It looks like the CiviCRM relative URL is including the username from my server ("/~fundtxch/") after the domain and before wp-admin. This worked fine when the website URL was the IP address, but not so great with the domain. To test, I tried to login with a redirect to a non-Civi WP page including the prefix and got the same behavior as before.

So my updated question is, since I can't change the relative URL in the admin panel (since it won't load), how do I change it? I can write it straight to the database if I have to, but I'm not sure where the setting is stored.

musictheorysean

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-36.1
  • PHP version: 5.4.37
Re: CiviCRM Dashboard not loading
February 24, 2015, 02:53:38 pm
Okay, fixed! I changed the base URL value in my civicrm.settings.php to the domain and now everything loads correctly. Thanks for your help, which pointed me in the right direction. I hope I can pay it forward once I'm more familiar with CiviCRM.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using WordPress Plugins »
  • CiviCRM Dashboard not loading

This forum was archived on 2017-11-26.