Hello,
I have a problem with your module. If I installed module error shows: Fatal error: Call to undefined function file_directory_path() in /home/bastaj/public_html/kpbintra.cz/sites/all/modules/i18n_media/i18n_media_phptemplate_render_template.inc on line 51

How can I have to resolve this problem?
Thank`s

CommentFileSizeAuthor
#2 1274984.v1.patch645 bytestricasse

Comments

serhiyvk’s picture

The same with me. The module installed well, but the error happened when I've tried to switch on media translation at admin/config/regional/i18n/media
Drupal 7.9, i18n - 7.x-1.1
So, subscribe

tricasse’s picture

Title: bug ? » file_directory_path() removed from the Drupal 7 API
Status: Active » Needs review
StatusFileSize
new645 bytes

Issue similar to http://drupal.org/node/930082 (file_directory_path() from the Drupal 6 API replaced by file_stream_wrapper_get_instance_by_scheme(file_default_scheme())->getDirectoryPath() in the Drupal 7 API).

Patch attached, fixing the issue (sorry if the patch format doesn't fit Drupal developer habits, I'm not a Drupal developer, but it should be still quite usable!).