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.
Hello, I got this error after migration from XAMPP localhost to my live server.
Fatal error: Call to undefined function file_uri_to_object() in sites/all/modules/media_youtube/includes/themes/media_youtube.theme.inc on line 20
On line 20 is:
19 // Make the file object available.
20 $file_object = file_uri_to_object($variables['uri']);
21
Site is Video RSS agregator like here http://drupal.org/node/1358558
Comments
Comment #1
RobW CreditAttribution: RobW commentedThat's weird.
file_uri_to_object()
is a File Entity function -- can you check that file entity is installed and working well on your site?Comment #2
jasom CreditAttribution: jasom commentedIt's on and no error in error log, if you means this.
Comment #3
RobW CreditAttribution: RobW commentedCan you try calling
file_uri_to_object()
in a template in your site? Off the top of my head this could be a module loading order problem, maybe, or something very specific to your site. I can't reproduce on my clean install.Comment #3.0
RobW CreditAttribution: RobW commentedLog message
Comment #4
christian_fs CreditAttribution: christian_fs commentedTo me has been the same and it was a problem updating the media, you have to delete the folder "file_entity" from within.
Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedThis is fixed per #4.