Please help, I've spent hours going round in circles and this is driving me nuts.

I have installed the Charts module and enabled Google as a chart provider, and all works OK. When I follow the instructions to install the Open Flash Charts module, all is OK too. I copied the 1.9.7 swf and js to the module folder as instructed, updated the OFC admin settings page with the path, and settings save OK without error so I know the path is valid.

However the Charts module settings page shows an empty Chart Plugin dropdown, or only shows Google if I enable it, but OFC is never there to select. The OFC module seems to have installed OK but does not show up to select for Charts to use.

Any ideas what I've done wrong? I'm pretty sure Charts is installed OK as I have used it with the Google charts provider, but my code will be installed on an intranet with no internet access so the Google chart provider will be useless.

Thanks,
Ian.

Comments

__ian’s picture

Not sure if this is useful, but when dropdown is empty, I get the following errors reported too:

* warning: asort() expects parameter 1 to be array, null given in /var/www/drupal/sites/all/modules/charts/charts.inc on line 134.
* warning: array_fill_keys() expects parameter 1 to be array, null given in /var/www/drupal/sites/all/modules/charts/charts.inc on line 139.
* warning: asort() expects parameter 1 to be array, null given in /var/www/drupal/sites/all/modules/charts/charts.admin.inc on line 139.
* warning: Invalid argument supplied for foreach() in /var/www/drupal/includes/form.inc on line 1429.

Obviously I don't get these when the Google provider is enabled and in the dropdown.

Thanks again,
Ian.

pedrorocha’s picture

Assigned: Unassigned » pedrorocha

Hi Ian, can you give me the version of Drupal Core and modules you are using, so i can test here?

__ian’s picture

Hi Pedro, thanks for picking this up so fast, much appreciated.

Versions are:

Drupal core 6.15 (Old I know, I was planning to upgrade and fully test when this phase of development is over)
Charts 6.x-1.0
OFC API 6.x-2.12
OFC 1.9.7

Thanks,
Ian.

__ian’s picture

Assigned: pedrorocha » Unassigned

More info:

I have since reproduced this fault on another server with the same module versions, so it is a bug, not just a problem with dodgy development database (which I had suspected at first).

I have also rewritten some of my code to call OFC natively, without using the Charts module, and it works just fine. So OFC is properly installed too.

1hello2’s picture

I have the same problems,how to solve it? thank you.

My Versions are:

Drupal core 6.19
Charts 6.x-1.0
OFC API 6.x-2.12
OFC 1.9.7