When I try to enable the module File Aliases, I get this error:

Fatal error: Call to undefined function file_directory_path() in /*drupal install*/sites/all/modules/file_aliases/file_aliases.module on line 47

Everything works normally as soon as I disable the module and remove it'd data from the database (Using the Uninstall command).

This is a new D7 install, and I've got the Filefield Paths, PathAuto, and redirect modules enabled and clean urls turned on.

Comments

chrisgross’s picture

I also experience this error. Disabling this module worked for me, meaning filefield paths is likely not the culprit, but this one.

chrisgross’s picture

file_directory_path() does not exist as of D7. This port needs to be fixed.

markabur’s picture

Status: Active » Needs review
StatusFileSize
new825 bytes

Here's a patch. It gets rid of the error but I haven't tried the module yet..

Jim Ruby’s picture

subscribe just tried the module and same error will unistall for now.

dakhota’s picture

i had the same, #3 solved it, many thanks!

deciphered’s picture

Fixed and committed to 7.x-1.x.

Cheers,
Deciphered.

Jim Ruby’s picture

Where can Ifind this download, looking on the module page for fil alias I see it was last updated in feb or am I looking at the wrong date?

deciphered’s picture

Status: Needs review » Fixed

Dev builds are rolled twice a day, the commit has not been rolled into a dev build yet, hence why I didn't say it was available in the latest dev :) If you are in desperate need of this fix right now and can't wait a few more hours for D.o. to build the new dev release, you can always checkout the code via GIT.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

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