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 (Moderator: Dave Greenberg) »
  • [Solved] Charts not visible
Pages: [1]

Author Topic: [Solved] Charts not visible  (Read 2701 times)

maher

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: drupal 6.24
  • MySQL version: Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486)
  • PHP version: 5.3.6
[Solved] Charts not visible
February 29, 2012, 01:47:33 am
I am using drupal 6.24 with civicrm 3.48. none of my charts are displayed, nor do I see any error messages. I can see reports in a tabular format just fine.

Are there drupal modules that need to be installed. I could not find any documentation on the same, Could someone point me to it.

Does civicrm use google charting, ofc etc.. it is not clear to me what is needed to get charting working.
« Last Edit: March 02, 2012, 05:21:38 am by maher »

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: Charts not visible
February 29, 2012, 07:56:42 am
CiviCRM uses ofc 2. Can you check if there are any errors in your javascript console.

Kurund
Found this reply helpful? Support CiviCRM

maher

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: drupal 6.24
  • MySQL version: Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486)
  • PHP version: 5.3.6
Re: Charts not visible
February 29, 2012, 09:14:31 pm
Kurund

Thanks.

I get an 'Swfobject is not defined' error.

Will try installing ofc2 and revert back

maher

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: drupal 6.24
  • MySQL version: Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486)
  • PHP version: 5.3.6
Re: Charts not visible
February 29, 2012, 10:31:08 pm
Installed ofc2 and I can see the sample charts just fine. But not the Civicrm charts.

I think civicrm includes it's own version of ofc2. The error is the same 'swfobject is not defined' and it points me to the following code.....

function createSWFObject( chartID, divName, xSize, ySize, loadDataFunction ) {
       var flashFilePath = "http://hostname is here/drupal6/sites/all/modules/civicrm/packages/OpenFlashChart/open-flash-chart.swf";

       //create object.        
       swfobject.embedSWF( flashFilePath, divName,
                           xSize, ySize, "9.0.0",
                           "expressInstall.swf",
                           {"get-data":loadDataFunction, "id":chartID},
                           null,
                           {"wmode": 'transparent'}
                          );

fails on the embedSWF call. hope that helps

FYI I upgraded from civicrm 3.2 to 3.4.8

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: Charts not visible
March 01, 2012, 01:48:38 am
Did you try clearing drupal cache and deleting files/civicrm/templates_c folder ?

Kurund
Found this reply helpful? Support CiviCRM

maher

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: drupal 6.24
  • MySQL version: Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486)
  • PHP version: 5.3.6
Re: Charts not visible
March 01, 2012, 09:16:49 pm
I think i found the problem, but do not know where to fix it.

I had changed the subdomain the server was in. So from x.y.z, I had changed it x.w.y.z. Everything works fine, All systems other than civicrm are fine and except for charts civicrm also works fine. Guess when I restored the old database for both drupal and or civicrm, it is still referring the old hostname somehow. I have cleared the files and cache and restarted apache but the problem still exists. Where could it be getting the old hostname from?. i will continue looking

maher

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: drupal 6.24
  • MySQL version: Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486)
  • PHP version: 5.3.6
Re: Charts not visible
March 01, 2012, 09:30:05 pm
OK resolved it, I had not updated my Resource URLS. Once I did that the charts display just fine.

Thank you for all your help.

Can someone mark this as solved.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Charts not visible
March 02, 2012, 02:33:44 am
Quote from: maher on March 01, 2012, 09:30:05 pm
Can someone mark this as solved.

Go to your original post and click Edit and put [Solved] in the Subject.

Would be nice if more folks did that. :)

Thank you.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • [Solved] Charts not visible

This forum was archived on 2017-11-26.