PHP Fatal error: Call to undefined function file_directory_path() in geoip/geoip_language/geoip_language.module on line 239

once I enable the geoip_language module I get the above error

CommentFileSizeAuthor
#3 2009572-3.patch1.59 KBjoelpittet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SocialNicheGuru’s picture

change file_directory_path to drupal_get_path('module', 'geoip_language') and it works

joelpittet’s picture

@SocialNicheGuru that is not correct. file_directory_path() is looking for /sites/default/files or where your files are... drupal_get_path() is the geoip_language directory.

This is more the liking:
@see #1005960: file_directory_path() removed in D7

drupal_realpath(file_default_scheme() . '://'))

joelpittet’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1.59 KB

Not sure if this is the whole solution but at least a start.

joelpittet’s picture

Status: Needs review » Closed (duplicate)

Actually this is all solved in #887268-67: Port GeoIP API to D7