I've uploaded the most recent version to sites/all/libraries, Libraries 7.x-2.0 is installed, and Google Cloud Storage 7.x-1.x-dev is installed, and all of the information is up to date at admin/config/media/google-cloud-storage. However, when I visit /update.php, or when I try to save the page at admin/config/media/google-cloud-storage, I get the following error message.
Google's APIs Client Library for PHP was not loaded.
On the /update.php page it also says:
Google APIs Client Library for PHP Failed to load the Google APIs Client Library for PHP
Please make sure the Google APIs Client Library for PHP is installed in the libraries directory (libraries\google-api-php-client).
Any ideas? I'd really love to use this...
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 1852388-9.patch | 812 bytes | kevinn |
Comments
Comment #1
ufku commentedNew releases of the library does not include makeRelease.sh on which this module depends for detecting the library version.
Since the version is not detectable and there is no use of it, the library definition can simply include a hardcoded version.
Comment #2
Anonymous (not verified) commentedOk. So that looks like it should replace lines 172 - 192 in google_cloud_storage.module, right?
Comment #3
Anonymous (not verified) commentedBy the way everyone....the above does resolve this issue of "not loading" or "not installed". Replace the code in lines 172 - 192 in google_cloud_storage.module with the code in comment #1 (minus the php tags, duh), then make sure you flush caches.
Thanks ufku!
Any chance you also know the answer to the "next" error message coming up for me? It's "What is the proper info needed for admin/config/media/google-cloud-storage?" (http://drupal.org/node/1855210)
Comment #4
Anonymous (not verified) commentedComment #5
ufku commentedThis is not fixed.
Comment #6
Anonymous (not verified) commentedSorry. I marked it as fixed because your solution worked for me.
Comment #7
alifopensrc commentedAny update on this?
-AOS.
Comment #8
steve.colson commentedClosing out of date issue. It looks like this was fixed in the 2.x branch in commit b3312cc8efdc1512f9a389f6ddd3fcc6e758082d.
If anyone still needs pointers on this, grab the 2.x zip and take a look at google_cloud_storage.module. In function google_cloud_storage_libraries_info(), this can more or less be moved entirely to the 1.x branch (but the actual exercise is left to the reader).
Comment #9
kevinn commentedThis issue exists for version 2.0-beta1 of this module and v2.9.1 of google api php client library.
Here comes a patch to fix this issue.
Comment #10
steve.colson commentedGood catch. This patch should probably go in a new issue rather than reopening a multi-year old one though.
At the time of 2.x beta1 and dev, client was in the google folder and the code was correct. Not sure when they changed the structure.
Comment #11
smurfxx commentedHow can I edit the function google_cloud_storage_libraries_info() to make module works with latest version of google api php client v2.12.6?
I tried to edit some lines to make it detect correctly the library but it doesn't work: