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

BrandthroEthan’s picture

This 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.