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

timmillwood’s picture

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

mfer’s picture

@tim So you got this error before you activated the service?

We can update to account for this case.

timmillwood’s picture

that's correct, I guess it just needs to do a check for object storage on the account before loading the page.

mfer’s picture

Status: Active » Fixed

This is fixed in d72d8e8

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.