Title: google storage not work
Last modified: February 28, 2017

---

# google storage not work

 *  Resolved [newstube](https://wordpress.org/support/users/newstube/)
 * (@newstube)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/)
 * Fatal error: Uncaught Google\Cloud\Exception\GoogleException: No project ID was
   provided, and we were unable to detect a default project ID. in /home/45870-69858.
   cloudwaysapps.com/cgarpnqvnf/public_html/wp-content/plugins/gcs/vendor/google/
   cloud/src/ClientTrait.php:168 Stack trace: #0 /home/45870-69858.cloudwaysapps.
   com/cgarpnqvnf/public_html/wp-content/plugins/gcs/vendor/google/cloud/src/ClientTrait.
   php(80): Google\Cloud\Storage\StorageClient->detectProjectId(Array) #1 /home/
   45870-69858.cloudwaysapps.com/cgarpnqvnf/public_html/wp-content/plugins/gcs/vendor/
   google/cloud/src/Storage/StorageClient.php(91): Google\Cloud\Storage\StorageClient-
   >configureAuthentication(Array) #2 /home/45870-69858.cloudwaysapps.com/cgarpnqvnf/
   public_html/wp-content/plugins/gcs/gcs.php(35): Google\Cloud\Storage\StorageClient-
   >__construct() #3 /home/45870-69858.cloudwaysapps.com/cgarpnqvnf/public_html/
   wp-admin/includes/plugin.php(1882): include(‘/home/45870-698…’) #4 /home/45870-
   69858.cloudwaysapps.com/cgarpnqvnf/public_html/wp-admin/plugins.php in /home/
   45870-69858.cloudwaysapps.com/cgarpnqvnf/public_html/wp-content/plugins/gcs/vendor/
   google/cloud/src/ClientTrait.php on line 168

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/google-storage-not-work/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/google-storage-not-work/page/2/?output_format=md)

 *  [robertkay](https://wordpress.org/support/users/robertkay/)
 * (@robertkay)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8860809)
 * Yeah, same here… Would be awesome if I could get it working!
 *  [John Teague](https://wordpress.org/support/users/jteague/)
 * (@jteague)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8864374)
 * Hey guys, I’m reaching out to the plugin authors over at Google since I run a
   hosting company on GCP to see if I can help write some documentation for the 
   plugin and clean up some installation help.
 * I’ll follow up with you tomorrow as it is late here right now, but the short 
   version is that you need to have need to create a Google Cloud account and a 
   project. The how to for that are here:
    1. [https://cloud.google.com/resource-manager/docs/creating-managing-projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects)
    2. [https://cloud.google.com/storage/docs/how-to](https://cloud.google.com/storage/docs/how-to)
 * When you create a project, it will assign an ID for it. That is what the plugin
   is asking for. This plugin really should validate without throwing a Fatal error.
   We’ll work on that. But this should help get your started. I hope this helps 
   some until I can or the authors can do a more full installation how to.
 *  [dnowba](https://wordpress.org/support/users/dnowba/)
 * (@dnowba)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8865391)
 * [@jteague](https://wordpress.org/support/users/jteague/) please help us to know
   how to use!
    I believe that there are lots of parameters in files, as you said,
   it’s better that the plugin’s author should make them into inputs, so, if you
   can, let us know where the parameters are and how they related to the Google 
   cloud storage… Thanks a lot!
 *  [ciricaki33](https://wordpress.org/support/users/ciricaki33/)
 * (@ciricaki33)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8866417)
 * [@jteague](https://wordpress.org/support/users/jteague/) can you please laso 
   give us some help with the permissions you should add to the bucket? should we
   create a service account also?
 *  [John Teague](https://wordpress.org/support/users/jteague/)
 * (@jteague)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8866548)
 * Hey [@dnowba](https://wordpress.org/support/users/dnowba/), [@ciricaki33](https://wordpress.org/support/users/ciricaki33/),
   guys, I am working on a write up for this. Please be patient as I have to do 
   this when I get some spare time outside of work hours. But I will post a write
   up as a blog post and then post a link here tonight (I’m in the U.S. Central 
   Time Zone). It will include all the settings you need to get you set up correctly
   and some other options to get connected as a fallback.
 * Cheers,
 * John
 *  [John Teague](https://wordpress.org/support/users/jteague/)
 * (@jteague)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8868355)
 * Quick couple of answers. When you create your cloud account and project, it will
   create a default service account.
 * Your project needs to have Google storage APIs enabled, which you can do through
   GCP Console.
 * Your Storage Bucket must have permissions set to “Share Publicly”. You can also
   set that on the storage bucket you created.
 * I’m still working on the full how to post, but hope this helps.
 *  [takashimatsuo](https://wordpress.org/support/users/takashimatsuo/)
 * (@takashimatsuo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8874765)
 * Hi guys, thanks for the interests, and sorry about the trouble. The primary use
   case of this plugin was to use it on Google Cloud Platform. In that case, the
   project ID is automatically detected.
 * Also on the other hosting environment, you will likely need to use a service 
   account JSON key file.
 * The easy fix would be adding a field for the service account key file. I’ll work
   on adding that field and release a new version.
 *  [takashimatsuo](https://wordpress.org/support/users/takashimatsuo/)
 * (@takashimatsuo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8874772)
 * I think there is a workaround, although it’s not fancy as using the admin UI.
 * You can download the service account JSON key, and upload the json key file to
   the hosting server, and also you need to set an environment variable `GOOGLE_APPLICATION_CREDENTIALS`,
   with the path of the key file.
 *  [takashimatsuo](https://wordpress.org/support/users/takashimatsuo/)
 * (@takashimatsuo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8874804)
 * For example, if the json key file is at `/secure-place/my-service-account.json`
   on the hosting server, you can add the following line in `wp-config.php`.
 * `putenv("GOOGLE_APPLICATION_CREDENTIALS=/secure-place/my-service-account.json");`
 * Please don’t put the service account key file in the web server’s document root.
   Keep the file secret.
    -  This reply was modified 9 years, 2 months ago by [takashimatsuo](https://wordpress.org/support/users/takashimatsuo/).
 *  [takashimatsuo](https://wordpress.org/support/users/takashimatsuo/)
 * (@takashimatsuo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8874813)
 * When creating the service account, please add `Storage Object Admin` permission
   to the new service account.
 * I think probably we just need to update the install document. I’ll work on that.
 *  [John Teague](https://wordpress.org/support/users/jteague/)
 * (@jteague)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8874861)
 * [@takashimatsuo](https://wordpress.org/support/users/takashimatsuo/) I was working
   on a write up that covers some of this. If you would like Id be happy to collaborate
   on the plugin docs, etc. I do have a current CLA with Google, and my company 
   is a GCP customer. Don’t want to intrude though, so please let me know.
 *  [takashimatsuo](https://wordpress.org/support/users/takashimatsuo/)
 * (@takashimatsuo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8875125)
 * [@jteague](https://wordpress.org/support/users/jteague/)
 * If you are already working on a documentation, that’s great, but just in case
   you want to contribute to the docs in the source code, the plugin’s source code
   is hosted at
    [https://github.com/googlecloudplatform/wordpress-plugins](https://github.com/googlecloudplatform/wordpress-plugins)
 * I always welcome pull requests 🙂
 *  [John Teague](https://wordpress.org/support/users/jteague/)
 * (@jteague)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8875306)
 * [@takashimatsuo](https://wordpress.org/support/users/takashimatsuo/)
 * Perfect. I’ll drop by and assist with the docs and such. Look forward to that.
   😉
 *  Thread Starter [newstube](https://wordpress.org/support/users/newstube/)
 * (@newstube)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8888851)
 * plugin not work
 *  [John Teague](https://wordpress.org/support/users/jteague/)
 * (@jteague)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/#post-8891796)
 * [@newstube](https://wordpress.org/support/users/newstube/)
 * This plugin was designed to run on WordPress sites installed inside the Google
   Cloud Platform environment. So, it won’t connect properly without modifications.
   The author is working on some things to make the easier to understand. But for
   now, you might want to explore an alternative if you are not installed in the
   Google Cloud… Although I would highly recommend them.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/google-storage-not-work/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/google-storage-not-work/page/2/?output_format=md)

The topic ‘google storage not work’ is closed to new replies.

 * ![](https://ps.w.org/gcs/assets/icon-256x256.png?rev=1604875)
 * [Google Cloud Storage plugin](https://wordpress.org/plugins/gcs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gcs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gcs/)
 * [Active Topics](https://wordpress.org/support/plugin/gcs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gcs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gcs/reviews/)

 * 24 replies
 * 8 participants
 * Last reply from: [Google](https://wordpress.org/support/users/google/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/google-storage-not-work/page/2/#post-8909975)
 * Status: resolved