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 CiviReport (Moderator: Dave Greenberg) »
  • Dashboard - Dashlets all report as False
Pages: [1]

Author Topic: Dashboard - Dashlets all report as False  (Read 4828 times)

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
Dashboard - Dashlets all report as False
January 18, 2011, 05:20:27 am
I'm working on a site where all Dashlets report as False

I've tried;
Upgrading the site to the latest versions (Drupal and CiviCRM)
Refreshing Dashboard Data

Any ideas?
Oliver
Oliver Gibson, Northbridge Digital

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Dashboard - Dashlets all report as False
January 18, 2011, 08:10:58 am
Do a search on the forum for "dashlets" and "false" - various people have experienced similar problems, patches have been applied but it still fails to work for those (like me) whose hosts will not allow internal URLs to be resolved.

Ed

SandyEllingson

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
  • I want to make a difference!
    • Sandy Social Strategist
Re: Dashboard - Dashlets all report as False
February 08, 2011, 12:53:53 pm
I am having the same problem. Searching has not resulted in any other info. If you do find the solution, please post it and I will do the same.

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Dashboard - Dashlets all report as False
May 19, 2011, 08:57:38 pm
same problem :(

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Dashboard - Dashlets all report as False
May 20, 2011, 03:00:18 am
In view of the me-too posts, and because I've had this problem for ages and not managed to fix it, I've put below everything I know about this issue and perhaps we can work through it.

It has been discussed here before:
http://forum.civicrm.org/index.php/topic,11434.0.html
http://forum.civicrm.org/index.php/topic,14751.0.html


In summary, instead of dashlets appearing in the admin welcome page I just get the word "false". CRM-7087 was aimed at solving one issue behind this: calling relative URLs instead of absolute ones, but that didn't fix it for me. Looking again at Dashboard I get and the elements Dragonfly reports (with the domain and keys edited):

Code: [Select]
URL: http://www.DOMAIN.uk/administrator/index2.php?option=com_civicrm&task=civicrm/ajax/dashboard&op=get_widget&key=KEY&id=8
Method: GET
Status: 200 OK
Duration: 61144 ms

Request details
GET /administrator/index2.php?option=com_civicrm&task=civicrm/ajax/dashboard&op=get_widget&key=KEY&id=8 HTTP/1.1
User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.10
Host: www.DOMAIN.uk
Accept-Language: en-GB,en;q=0.9
Accept-Encoding: gzip, deflate
Referer: http://www.DOMAIN.uk/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1
Cookie: BUNCH-OF-STUFF-DELETED-HERE
Connection: Keep-Alive
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
Response details
HTTP/1.1 200 OK
Date: Fri, 13 May 2011 21:56:33 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Keep-Alive: timeout=15, max=77
Connection: Keep-Alive
Content-Type: text/html
Body
{"title":"Membership Report (Summary)","content":false,"fullscreenUrl":"http:\/\/www.DOMAIN.uk\/administrator\/index2.php?option=com_civicrm&task="}

There are no errors in the server log, and the access log reports:

Code: [Select]
DOMAIN.uk 78.149.136.171 - - [13/May/2011:22:56:31 +0100] "GET /administrator/index2.php?option=com_civicrm&task=civicrm/ajax/dashboard&op=get_widgets_by_column&key=KEY HTTP/1.1" 200 28 "http://www.DOMAIN.uk/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1" "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.10"
DOMAIN.uk 78.149.136.171 - - [13/May/2011:22:56:33 +0100] "GET /administrator/index2.php?option=com_civicrm&task=civicrm/ajax/dashboard&op=get_widget&key=KEY&id=1 HTTP/1.1" 200 216 "http://www.DOMAIN.uk/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1" "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.10"
DOMAIN.uk 78.149.136.171 - - [13/May/2011:22:56:33 +0100] "GET /administrator/index2.php?option=com_civicrm&task=civicrm/ajax/dashboard&op=get_widget&key=KEY&id=8 HTTP/1.1" 200 163 "http://www.DOMAIN.uk/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1" "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.10"

If I put the URL reported in the logs into my browser, I get the same {"title":"Membership Report (Summary)","content":false,...) stuff as a HTML page. That tends to suggest to me that that it is validly displaying what is generated but that the process of generating the report content is being blocked by something in my configuration. Previously (I haven't rechecked this time) it all worked fine on a local (XAMPP) install so I had blamed it on my host not allowing calls back to the same server - which should have been fixed by the patch I mentioned at the top.

Can anyone suggest where I should look next, or can any of you who have the same symptoms confirm that it appears to be going wrong in the same place for you?

Thanks.
« Last Edit: July 13, 2011, 02:35:32 pm by EdP »

choster

  • I’m new here
  • *
  • Posts: 29
  • Karma: 2
    • Lattice Group
  • CiviCRM version: 4.3,4.4,4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.39
  • PHP version: 5.5.15
Re: Dashboard - Dashlets all report as False
December 19, 2011, 12:33:41 pm
Another relevant thread is http://forum.civicrm.org/index.php?topic=22137.0 .

We recently encountered this problem on a 3.1.3 site we had upgraded to 3.4.7 (Drupal 6.22, PHP 5.3.8, FreeBSD). We require https whenever contact or payment information is passed, and use Drupal's SecurePages module to enforce the policy.

When I try to output $dao->url around line 265 of $dashletInfo in /sites/all/modules/civicrm/CRM/Core/Dashboard.php , $dao->url is reported as "null." Evidently,

$url = $dashboardDAO->url

at line 247 isn't working for us. Perhaps this is a PHP 5.2 vs 5.3 issue?

As a hacky workaround, I changed all instances of $dashboardDAO->url to $url between line 249 and 265, for example line 258 becomes

$dao->content = CRM_Utils_System::getServerResponse( $url );

Now the dashlets are loading as expected. Hopefully, this is helpful to others in getting a smarter fix in place.
« Last Edit: December 19, 2011, 12:35:15 pm by choster »

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: Dashboard - Dashlets all report as False
December 20, 2011, 12:56:24 am
Quote
When I try to output $dao->url around line 265 of $dashletInfo in /sites/all/modules/civicrm/CRM/Core/Dashboard.php , $dao->url is reported as "null."

Yes this is current, since $dao is civicrm_dashboard_contact object.

Quote
$url = $dashboardDAO->url

at line 247 isn't working for us. Perhaps this is a PHP 5.2 vs 5.3 issue?

As a hacky workaround, I changed all instances of $dashboardDAO->url to $url between line 249 and 265, for example line 258 becomes

$url = $dashboardDAO->url;  so there should not be difference whether you use $url or $dashboardDAO->url

Kurund
Found this reply helpful? Support CiviCRM

choster

  • I’m new here
  • *
  • Posts: 29
  • Karma: 2
    • Lattice Group
  • CiviCRM version: 4.3,4.4,4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.39
  • PHP version: 5.5.15
Re: Dashboard - Dashlets all report as False
December 21, 2011, 02:52:35 pm
There shouldn't be, but in our environment there appears to be; $dashboardDAO->url does not get set to the value of $url . That's all I'm saying.

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: Dashboard - Dashlets all report as False
December 21, 2011, 04:58:01 pm

can u investigate and figure out why?

are you using a PHP optimizer / opcode cache? maybe try turning that off and see if that helps

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

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: Dashboard - Dashlets all report as False
December 22, 2011, 01:30:51 pm
I am also having a dandy of a time with this issue in 3.4.8 on Joomla 1.5.25 after upgrade from 3.4.6. My report:
  • Dashlets wouldn't delete. Then after several more attempts through the Dashboard GUI AJAX, Dashlets finally deleted leaving only Activities and 'null' Dashlets. Then ticking to activate the Dashlet on the same report again, the Dashlet choice does appear on the Dashboard configuration and when activated does work but the tickbox stays unticked in the Report.
    Again, seems that the Dashlet tickbox in any Report is not staying ticked after hitting "Update Report" even though the Dashlet does appear on the Dashboard.
  • Upon deleting the 'null' Dashlet it just reappears after refreshing.

UPDATE: With the 'null' Dashlet, I dragged it back to the 'Available' area. I then remembered what Report Dashlet was missing. Seems that a previous report's Dashlet was activated and then deactivated. I activated it again and it populated that 'null' Dashlet.

Request for Enhancement: It would be good to have some indication or feedback that a Dashlet is activated with any Report in the Report Listings page as it is an external function. There really isn't any feedback loop to identify its (de)activation in the same way, for example, as a Report is to be listed in a menu; one only has to go to the menu chosen to see if it is activated as positive feedback.
« Last Edit: December 22, 2011, 01:49:22 pm by bmw »
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

daboomer

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.0.51
  • PHP version: 5.2.12
Re: Dashboard - Dashlets all report as False
April 10, 2012, 03:08:44 pm
I had fresh install of joomla 2.5 and latest civiCRM... all dashlets false.  When setting this up I followed the Joomla security recommendations and installed mod_security on apache2. Now this as I recall didn't show up in standard opensuse 11 software repository. I removed Joomla and started over and couldnt install joomla again. i removed mod_security and joomla installed and civicrm installed and shows dashlets now, not all false.

Okay restart apache2, and the problem is back. I did figure out one thing though... by default my dashboard is coming up https://
when i drop the ssl and just try http://  dashlets work fine.

Follow link at top of this thread.  Install/Configure php_openssl
« Last Edit: April 13, 2012, 02:19:33 pm by daboomer »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Dashboard - Dashlets all report as False

This forum was archived on 2017-11-26.