Getting this Fatal error with the most recent version of the media module.

Fatal error: Call to undefined function media_variable_get() in /sites/all/modules/media_ustream/includes/MediaInternetUStreamHandler.inc on line 37

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deggertsen’s picture

Status: Active » Closed (works as designed)
Related issues: +#1504696: Integration with CKEditor module

Seems this might actually be a problem with CKeditor integration. See #1504696: Integration with CKEditor module.

Closing this issue.

travelertt’s picture

Title: undefined function media_variable_get » media_variable_get has been removed from Media Module
Priority: Normal » Critical
Status: Closed (works as designed) » Active
Related issues: +#1406948: Clean up and remove includes/media.variables.inc

The media module maintainers have decided to get rid of media_variable_get and media_variable_set (includes/media.variables.inc) and use variable_get() and variable_set() again. This current version of the module is no longer supported by the latest Media 7.x-2.x release.

All occurrences of media_variable_get and media_variable_set will Fatal Error when called with the current Media 7.x-2.x-dev release.

travelertt’s picture

I created a patch that will replaced the media_get_variable() in inc/MediaInternetUStreamHandler.inc with variable_get() with the Media variable namespace ("media__").

This new Media variable namespacing is discussed in Clean up and remove includes/media.variables.inc (1406948) and was added to Media 2.x-dev in September 2013.

Rob C’s picture

Thanks travelertt for the patch see here for the commit.

Rob C’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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