I gave this module a spin by installing Google Chart API (Chart API has had poor results in my experience). After installing the latest stable of Google Chart API (7.x-1.0-beta2) and following the instructions in README.txt to find the hidden settings page (thanks for that tip), I end up with these errors when viewing the Results -> Chart tab on my forms.

For every chart shown, I get these two PHP errors:

Notice: Undefined index: component in _webform_chart_backend_googleapilibs_config() (line 25 of /Users/nate/Sites/drupal7/sites/all/modules/webform_chart/includes/googleapilibs.inc).
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in _webform_chart_backend_googleapilibs_config() (line 25 of /Users/nate/Sites/drupal7/sites/all/modules/webform_chart/includes/googleapilibs.inc).

The charts themselves still seem to work just fine however. I tried area, pies and bar charts, all seem to have the same error on the same line numbers.

CommentFileSizeAuthor
webform-chart-errors.png267.51 KBquicksketch

Comments

hotspoons’s picture

Yes, I just realized that I had error reporting to the screen turned off since I had cloned a production system to do the development. This should be pretty easy to fix, let me give it a go.

hotspoons’s picture

It was a pretty simple fix. Now it should work without belching a bunch of errors. I committed the fix to head. Thanks!

hotspoons’s picture

Status: Active » Fixed

Marking fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit aba034e on master, 7.x-1.x, 7.x-2.x by hotspoons:
    Issue #1451088 by quicksketch : Fixed checks in...