2

Using Civicrm 4.6.5 and the latest master branch of Civizualize at github https://github.com/TechToThePeople/civisualize, The page /civicrm/dataviz shows the default visualizations list, but when I click on one of them, the vizualization does not render.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

SyntaxError: Unexpected token <    http://crm.conscious.life/civicrm/sites/default/files/civicrm/custom_ext/civisualize-master/js/d3.v3.js?nsuhjj:1

SyntaxError: Unexpected token <

http://crm.conscious.life/civicrm/sites/default/files/civicrm/custom_ext/civisualize-master/js/dc/crossfilter.js?nsuhjj:1

SyntaxError: Unexpected token <

http://crm.conscious.life/civicrm/sites/default/files/civicrm/custom_ext/civisualize-master/js/dc/dc.js?nsuhjj:1

ReferenceError: d3 is not defined

http://crm.conscious.life/civicrm/dataviz/contribute:323

2

It's probably a javascript error.

Most likely it's that you didn't properly configure the extension url for your extension. What configuration do you have?

Checkout your browser console, do you have any error message? something about d3 missing?

You can also look at your Developer Tools (press F12 in Firefox/Chrome), and check the "Network" tab. Are you seeing 404 errors? Look at the URL that's getting a 404 error. Is there actually a file in that location? It's very possible that your "Extensions URL" is incorrect. Go to Administer menu > System Settings > Resource URLs and change the Extension Resource URL to match the actual location of your extensions.

| improve this answer | |
  • Regarding the extension url...to me it looks good (see additional screenshots above) – Yuri Aug 10 '15 at 12:59
  • and is this the url of the path where you put extensions and accessible from the web? Do you have any javascript error message? – Xavier Aug 10 '15 at 13:03
  • Yes, see additional screenshots above. – Yuri Aug 10 '15 at 13:13
  • 1
    This means that the system is not able to load d3.js. If you can send us your js consol logs, that would help. – Siddharth Gupta Aug 10 '15 at 17:17
  • 1
    @Yuri I just experienced the same issue. I've just updated this answer to be a little clearer and site builder-friendly. – Jon G - Megaphone Tech Apr 23 '16 at 23:28
0

I have the same issue but a different console error:

mailings:361 Uncaught TypeError: data.values.forEach is not a function(anonymous function) @ mailings:361

| improve this answer | |
  • Ah. Data set is too big? I forced down the number of records being selected and even at 8,200 I get this script error: RangeError: Maximum call stack size exceeded – Cullen McGough May 25 '16 at 15:27
0

I have this problem too. The console output is as follows (For those troubleshooting along at home, reach the console in Chrome by hitting Shift+Ctrl+I and choosing the console tab):

enter image description here

The uncaught error seems to refer to the line that says var numberFormat = d3.format(".2f"); in civicrm/dataviz/contribute found on line 48 of Contribute.tpl.

But I'm not sure how to proceed. If it's relevant, I'm running 4.7.14 on Drupal 7.53 on CentOS 6.8.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.