i try your script whit the 4.7 and i have this error

Comments

heine’s picture

Did you try this module with 4.7 beta 4 or with the current HEAD (CVS) version? base_path is a recent addition to Drupal and isn't present in beta 4.

arsart’s picture

Title: Fatal error: Call to undefined function: base_path() in /home2/c/cx/www/drupal47/modules/sifr/sifr.module on line 614 » fix

Change THESE lines 614-615 in modules/sifr/sifr.module :

$base = base_path();
$fontpath = str_replace(' ', "%20", $base.$rule->font); // convert spaces

TO:

$base = file_directory_path();
$fontpath = str_replace(' ', "%20", $rule->font); // convert spaces
arsart’s picture

Title: fix » Call to undefined function: base_path()

sorry, suddenly have changed the title of this report:)

jjeff’s picture

Status: Active » Closed (won't fix)

First of all, just to be clear, there is NOT currently a version of this module that works with Drupal 4.6.

That being said, base_path() is a function that is included in Drupal 4.7beta and will be part of the final version of 4.7..

If you are running beta, please get 4.7beta5 (released last week). If you are running CVS, please do an update to your install.

This should solve the problem with the base_path() function not being found.

-Jeff