Active
Project:
Menu Icons
Version:
7.x-3.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2013 at 20:29 UTC
Updated:
10 Apr 2013 at 16:41 UTC
When I try to update from beta3 to beta4 with drush I get this error
PHP Fatal error: Call to a member function getDirectoryPath() on a non-object in /var/www/drupal7/sites/literaturanova.com/modules/contrib/menu_icons/menu_icons.module on line 521
and I can't update
Comments
Comment #1
BrandthroEthan commentedThis results from the file_stream_wrapper_get_instance_by_schema is returning false because it's can't find the $image_path specified. A quick fix is to throw in a
if($wrapper === false){
//Do something in here or just fail silently to load an image (should probably be logged)
}else{
$image_url = '/' . $wrapper->getDirectoryPath() . '/' . file_uri_target($image_path));
}
This will let you update.