Getting this error whenever I save from the admin/config/media/cloud-files config page.

There's no ObjectStore method in the php-opencloud library. Is this due to this module not supporting the latest version of the php-opencloud library (I already had to apply a patch from https://drupal.org/node/2086239).
It appears that it has been replaced with ObjectStoreService.

Comments

leon kessler’s picture

leon kessler’s picture

Status: Active » Needs review

Uploaded patch, which I think fixes this initial issue - note that the patch also removed a bunch of whitespace (which my editor does by default), this module massively fails Drupal coding standards.

I would highly recommend removing this modules full release and placing it back into dev. It does not support the latest version of the php-opencloud library, once this has been fixed a new full release can be made.

rm-rf’s picture

Very helpful Leon.nk

rm-rf’s picture

I have had a deeper look into the code and have come to the conclusion that the entire module is rendered unusable with the php-opencloud library. I have started rewriting the module from the ground up. If you're interested in collaborating, please shoot me a message.

leon kessler’s picture

Hey, yes will possibly be able to help out. Although may not be able to start on this for around a month or so (and we're also looking at alternative solutions to Rackspace for a CDN).

Where are you doing development? Have you applied to be a maintainer of this project?

WallyJtD’s picture

I'm also currently re-writing this module in order for it to work with a hosted cloud server with cloud files solution, using the latest (1.8.1) release of the Rackspace PHP API. Since the latest versions of the API require it to be installed using composer, that's how I've done it which means it's no longer within libraries (which duplicated all the files anyway). It's now all in a "sites/all/vendor" directory structure, with a single "require" in my media module's hook_init().

Almost all of the API calls in this module have been deprecated/removed, and methods have been significantly changed which has left a number of questions still to be resolved. I'm able to upload files into the container, but am having difficulties in storing associated thumbnails using a pseudo file system. Oh the joys...

coozila’s picture

Hello nice patch,

i have some error:

Error authenticating. Please check the Username and/or API Key.
Container does not exist.

have an ideia?

i use PHP 5.5.7 (cli)
have nice day

mr.moses’s picture

I've update Cloud Files to work with the most recent version of php-opencloud (1.9.1).

I am curious what brought about the conclusion that "the entire module is rendered unusable with the php-opencloud library" ?? It is frustrating that Rackspace keeps making drastic breaking changes to the library, but all I really had to do was update the library calls. The module itself didn't require any major changes.

It's still using Libraries, but the Libraries integration is updated to work with a Composer installation (since Rackspace says the php-opencloud library must be installed with Composer). I just ran "composer require rackspace/php-opencloud:dev-master" from inside sites/all/libraries/php-opencloud/, but could change it to sites/all/vendor if thats what the people want.

I've also cleaned up a lot of stuff to try to better adhere to Drupal coding standards.

Committed in ddc002b and 0b20fcb