You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Plugin could not be activated because it triggered a fatal error. #38
Plugin could not be activated because it triggered a fatal error.
Google\Cloud\Exception\GoogleException thrown
No project ID was provided, and we were unable to detect a default project ID.
The plugin's primary use case is on GCP. Most of our Compute platform, we can automatically detect the projectId, so it's not a problem.
If you use this plugin outside of our compute platform, you need to do several things.
Visit Cloud Console, go to IAM & Admin -> Service accounts and create a service account with Storage Object Admin permission and download the json key file.
Upload the json key file to the hosting server. Don't put it in a public serving area.
Add the following line to wp-config.php (replace the file path with the real one).
Visit Cloud Console, go to IAM & Admin -> Service accounts and create a service account with Storage Object Admin permission and download the json key file.
In my case Storage Admin works fine, not Storage Object Admin.
Activity
tmatsuo commentedon Mar 5, 2017
@vivekkiran Sorry about the trouble.
The plugin's primary use case is on GCP. Most of our Compute platform, we can automatically detect the projectId, so it's not a problem.
If you use this plugin outside of our compute platform, you need to do several things.
Visit Cloud Console, go to
IAM & Admin->Service accountsand create a service account withStorage Object Adminpermission and download the json key file.Upload the json key file to the hosting server. Don't put it in a public serving area.
Add the following line to
wp-config.php(replace the file path with the real one).Then the plugin should be able to detect the project id from the key file.
We'll update the documentation soon.
logicalphase commentedon Mar 9, 2017
This works for me. They'll see this in the description, and it will save misunderstandings and potential poor reviews.
JamesVanWaza commentedon Oct 25, 2017
@tmatsuo were you able to update the documentation?
@HyperPress, @vivekkiran how were you able to deploy your site?
nandenjin commentedon Feb 21, 2019
In my case
Storage Adminworks fine, notStorage Object Admin.n-paredes commentedon Jun 2, 2021
In my case the address was /home//etc/my-service-account.json