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.
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 CreditAttribution: 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.