Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | 2009572-3.patch | 1.59 KB | joelpittet |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedchange file_directory_path to drupal_get_path('module', 'geoip_language') and it works
Comment #2
joelpittet@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() . '://'))
Comment #3
joelpittetNot sure if this is the whole solution but at least a start.
Comment #4
joelpittetActually this is all solved in #887268-67: Port GeoIP API to D7