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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Dashlets don't load on startpage
Pages: [1]

Author Topic: Dashlets don't load on startpage  (Read 3604 times)

flupphugat

  • Guest
Dashlets don't load on startpage
May 24, 2010, 03:28:19 am
The dashlets on the civicrm startpage (/civicrm/dashboard) don't load. There is no error message, no nothing. The rest of the page looks fine, the browser tells me it is done, but the icon next to dashlet 1 keeps spinning. Anyone with any idea as to what I may try to fix it?
Thanks

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Dashlets don't load on startpage
May 25, 2010, 03:31:09 pm
I have had this problem a couple of times. I usually just log out of CiviCRM and then log back in and that fixes the problem. The issue appears to be that there is no contact record created during the install and logging out/logging back in creates the contact record associated with your login. You can tell for sure if this is the problem by looking at the db to see if there is a contact id 1 in the civicrm_contact table.
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

flupphugat

  • Guest
Re: Dashlets don't load on startpage
May 26, 2010, 08:01:33 am
Thanks for your ideas.  I've tried your suggestions, but it doesn't work.  What makes me nervous is the following:  I've set up pretty much the same system - same drupal and civcrm versions, same theme, and same modules - on my test server (localhost), and there everything works fine.  However, on my production server this page (civicrm/dashboard) apparently doesn't work correctly.  Maybe someone else has another idea.
Thanks anyway.
« Last Edit: May 26, 2010, 08:03:59 am by flupphugat »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Dashlets don't load on startpage
May 31, 2010, 10:11:33 am
You need to check your errors log and see whether the HTML of the page does not have any hints on why the dashlets don’t load (or maybe just don’t show up).

Do you use CiviCRM in English or in some other language?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

flupphugat

  • Guest
Re: Dashlets don't load on startpage
June 02, 2010, 06:58:31 am
Thank you for your reply, Pjotr

My error log tells me the following regarding the dashlets page:


[Wed Jun 02 15:22:14 2010] [error] [client 91.63.15.230] PHP Fatal error: Call to undefined function json_encode() in <my_site>/httpdocs/sites/all/modules/civicrm/CRM/Contact/Page/AJAX.php on line 669, referer: http://<my_site>/civicrm/dashboard


Where would that function be located, and how come it is not registered somewhere?  Answering your question: I use civicrm in English..

Maybe you have a clue.  Thanks, Knut

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Dashlets don't load on startpage
June 02, 2010, 07:10:31 am

your PHP executable is missing json features. You will need to enable it. Search for json_encode on the forums / google and u should find some recipes to add this

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

luke10

  • Guest
Re: Dashlets don't load on startpage
August 23, 2010, 06:07:49 pm
I am having the same problem.  The Dashboard just keeps loading.

I am using + PHP 5.3.1 so am I correct that json should be already included?  

In another thread it was suggested to clear your templates_c, drupal cache and logout /login.
Yet when I do this the en_US file inside the templates folder just keeps writing itself back.  

Sorry but I am no specialist in this at all, this my first effort to use Drupal, CiviCRM and basic code.
I have used windows search but cannot find the error log for CiviCRM.  Where is it ment to be?  I really want to narrow down and fix this problem asap.   

Some basic help would be appreciated.


« Last Edit: August 24, 2010, 12:44:45 am by luke10 »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Dashlets don't load on startpage
August 24, 2010, 04:11:30 am
The log should be in your Drupal’s sites/default/files/civicrm/templates_c/en_US/ConfigAndLog directory.

As for JSON support, the pest path would be to create a phpinfo.php file like this:

Code: [Select]
<?php
phpinfo
();

and see whether you have JSON support compiled or not.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

luke10

  • Guest
Re: Dashlets don't load on startpage
August 24, 2010, 05:09:40 am
Thanks Piotr

Well one out of two worked.

1. Within the ConfigAndLog file there is only 2 files and no log

Config.IDS.ini
.htaccess

2. JSON is enabled 1.2.1  

Is there any other place the log file would be?  Maybe I have to grant permission for this file to me created?

OK so I am JSON enabled, I am running out of leads as to why my dashboard would just continually load?


« Last Edit: August 24, 2010, 05:46:15 am by luke10 »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Dashlets don't load on startpage
August 25, 2010, 02:08:22 am
Quote
[Wed Jun 02 15:22:14 2010] [error] [client 91.63.15.230] PHP Fatal error: Call to undefined function json_encode() in <my_site>/httpdocs/sites/all/modules/civicrm/CRM/Contact/Page/AJAX.php on line 669, referer: http://<my_site>/civicrm/dashboard

You get this error when json not complied with PHP. So I would suggest check with your server admin.

Kurund
Found this reply helpful? Support CiviCRM

luke10

  • Guest
Re: Dashlets don't load on startpage
August 25, 2010, 05:18:15 pm
Thanks Kurund.

My production site is on localhost so I am Server Admin I suppose.
JSON is enabled so I don't think this is the problem.  I need to find solution why the dashboard just keep loading and not visible.
I can see and use dashboard features on the CiviCRM Demo site, but I on my localhost site dashboard just does not load.

Help please, how can is see the dashboard if it just keep loading, loading, loading ?  What is wrong?   ??? 



« Last Edit: August 27, 2010, 09:06:03 pm by luke10 »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Dashlets don't load on startpage
September 10, 2010, 04:36:11 am
It’s a bit hard to guess, as it works on our end.

You need to check the webserver’s logs and maybe see with Firebug (or Browser Inspector, etc.) why they don’t load on the JavaScript console.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Dashlets don't load on startpage

This forum was archived on 2017-11-26.