It seems that the alpha6 release doesn't work very well on my site. I'm experiencing some warnings, and i am unable to configure my charts in the Site configuration page. Here are the errors:

  • warning: Wrong parameter count for explode() in /var/www/websites/drupal_repository_dev/sites/all/modules/charts/charts.inc on line 120.
  • warning: array_shift() [function.array-shift]: The argument should be an array in /var/www/websites/drupal_repository_dev/sites/all/modules/charts/charts.inc on line 121.
  • warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme__charts_settings' was given in /var/www/websites/drupal_repository_dev/includes/theme.inc on line 617.

Any ideas?

Thanks!

Comments

rezboom’s picture

I too am getting the first two warnings, not the third, though.

brmassa’s picture

Status: Active » Fixed

Guys,

you have to clear the cache. Go to Settings > Performance and click to clear the cache.

It will be also needed to reenter the charts default settings.

regards,

massa

PS: im marking as fixed, but fell free to reopen it if needed

SethM’s picture

Status: Fixed » Active

Hey guys,

Errors:
* warning: Wrong parameter count for explode() in /sites/default/modules/charts/charts.inc on line 120.
* warning: array_shift() [function.array-shift]: The argument should be an array in /sites/default/modules/charts/charts.inc on line 121.
* warning: preg_match() expects parameter 2 to be string, array given in /includes/bootstrap.inc on line 771.

I installed the module and got the errors I mentioned.. I followed what was mentioned by brmassa, I went to Site Configuration > Performance and cleared my caches but the errors persist. Any ideas?

Thanks in advance.

SethM’s picture

Disabled Chart System and now only get this error:

warning: preg_match() expects parameter 2 to be string, array given in /includes/bootstrap.inc on line 771.

easp’s picture

I installed the module and went to the settings page and received:

Fatal error: Call to undefined function array_fill_keys() in /var/www/html/sites/default/modules/charts/charts.inc on line 103

brmassa’s picture

@freeStyle,

i will check these bugs today. But i dont know why the 3rd bug is there.

@Eric

Charts module requires PHP 5.2 to work. This function is only on this version or later.

regards,

massa

easp’s picture

Ahhhh, I am running PHP 5.1.6.
Could a minimum PHP requirement be added to the info file?

brmassa’s picture

@Eric,

yep. i only noted because your report. i will put it in the next version.

regards,

massa

tigerkang’s picture

I am using PHP 5.2.9, but still face this problem. Can anyone tell me how to do, so that I can carry on trying this wonderful module.

brmassa’s picture

Status: Active » Closed (duplicate)

Guys,

sinde there is another bug report on http://drupal.org/node/473292, im going to centralize the there.

regards,

massa

kenorb’s picture

The same problem.

ClearXS’s picture

# warning: Wrong parameter count for explode() in /sites/all/modules/charts/charts.inc on line 120.
# warning: array_shift() [function.array-shift]: The argument should be an array in /sites/all/modules/charts/charts.inc on line 121.
# warning: preg_match() expects parameter 2 to be string, array given in /includes/bootstrap.inc on line 777
vasheck’s picture

The same problem here. I tried everything suggested above... none of those fixed the issue for me....

* warning: Wrong parameter count for explode() in /sites/all/modules/charts/charts.inc on line 120.
* warning: array_shift() [function.array-shift]: The argument should be an array in /sites/all/modules/charts/charts.inc on line 121.
* warning: preg_match() expects parameter 2 to be string, array given in /includes/bootstrap.inc on line 777.

Oops, seems like there's a few posts already dealing with it... my bad for not finding these first:

http://drupal.org/node/473292#comment-2974574

http://drupal.org/node/700956

Thanks!

kenorb’s picture