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.
PHP Fatal error: Call to a member function containers() on a non-object in /var/www/sites/all/modules/hpcloud/hpcloud.module on line 420
/**
* Get a list of all containers.
*
* @return array
* An associative array of container info.
*/
function _hpcloud_list_containers() {
$store = _hpcloud_object_storage();
return $store->containers();
}
_hpcloud_object_storage(); must not be returning an object.
Comments
Comment #1
timmillwoodIt looks as though this happens if an HP Cloud Object Storage is not provisioned. The page works and there is no error once the storage has been provisioned.
Comment #2
mfer CreditAttribution: mfer commented@tim So you got this error before you activated the service?
We can update to account for this case.
Comment #3
timmillwoodthat's correct, I guess it just needs to do a check for object storage on the account before loading the page.
Comment #4
mfer CreditAttribution: mfer commentedThis is fixed in d72d8e8