1) I've enabled Charts module. Ok.
2) i've enabled other contributed modules.

And on FusionCharts instalation I have error:
Fatal error: Call to undefined function file_create_path() in /home/landi578/domains/lundiak.in.ua/public_html/sites/all/modules/charts/fusioncharts/fusioncharts.install on line 13

CommentFileSizeAuthor
#7 fusioncharts.install.patch684 byteskenorb

Comments

mlncn’s picture

Confirmed, fatal error still there.

landike’s picture

Drupal 7

the same

Fatal error: Call to undefined function file_create_path() in /home/****/public_html/sites/all/modules/charts/fusioncharts/fusioncharts.install on line 13

Just after install (trying to install)

GStegemann’s picture

The same here. The following patch fixed it for me:

# diff /.../drupal/7/Modules/charts/fusioncharts/fusioncharts.install .
13c13,15
<   $path = file_create_path() . '/fusioncharts';
---
>   $path = 'public://fusioncharts';
>   file_prepare_directory($path, FILE_CREATE_DIRECTORY);
>   $path = drupal_realpath($path);
Road Kill’s picture

Title: Call to undefined function file_create_path() » Fatal error: Call to undefined function file_create_path()

Many thanks to the developers of this module. I have tried Gstegemann patch but no indication has been given to which lines are patched and also my error is coming from line 12 anybody with a solution would be much appreciated.

Fatal error: Call to undefined function file_create_path() in C:\wamp\www\*****\sites\all\modules\charts\fusioncharts\fusioncharts.install on line 12

Road Kill’s picture

Okay figured it out

# diff /.../drupal/7/Modules/charts/fusioncharts/fusioncharts.install .
-13,+13
-13 $path = file_create_path() . '/fusioncharts';
---
+13 $path = 'public://fusioncharts';
+ file_prepare_directory($path, FILE_CREATE_DIRECTORY);
+ $path = drupal_realpath($

KingSalibah’s picture

#3 for me. Really wish they would fix this in the module.

kenorb’s picture

Status: Active » Needs review
StatusFileSize
new684 bytes

Patch based on #3
Please re-test the patch.

GStegemann’s picture

The patch works for me.

But the error message, which is displayed when no flash files are found in the created directory is a little bit confusing:

Put all flash files inside /var/www/html/cm7/sites/default/files/fusioncharts. (Currently using FusionCharts FusionCharts flash files not installed)

In fact one has to enable the module twice: first that the fusioncharts directory will be created and second when this directory has been populated with a shockwave flash file named MSLine.swf.

GStegemann’s picture

Today I ran into the same problem after installing the update of the Charts module.

When will the patch from #7 be committed?

quicksketch’s picture

Hi guys. I'll commit this when I get the chance. I just adopted this module last week and I'm working on a comprehensive overhaul (it'll be a 7.x-2.x branch). Support for Fusion Charts is likely to be dropped in the process however, considering our integration is still written against the Flash version of Fusion Charts.

quicksketch’s picture

Status: Needs review » Closed (fixed)

I rewrote most of this module in the new 7.x-2.x branch. Although this means you'll need to update your integrations, at least the 7.x-2.x version is fully functional and now works with newer charting libraries.