Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
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

Closed

Description

@vivekkiran

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.

Activity

  1. tmatsuo commented on Mar 5, 2017

    @tmatsuo
    Contributor

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

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

    2. Upload the json key file to the hosting server. Don't put it in a public serving area.

    3. Add the following line to wp-config.php (replace the file path with the real one).

    putenv('GOOGLE_APPLICATION_CREDENTIALS=/secure-place/my-service-account.json');
    

    Then the plugin should be able to detect the project id from the key file.

    We'll update the documentation soon.

  2. logicalphase commented on Mar 9, 2017

    @logicalphase

    This works for me. They'll see this in the description, and it will save misunderstandings and potential poor reviews.

  3. JamesVanWaza commented on Oct 25, 2017

    @JamesVanWaza

    @tmatsuo were you able to update the documentation?
    @HyperPress, @vivekkiran how were you able to deploy your site?

  4. nandenjin commented on Feb 21, 2019

    @nandenjin
    1. 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.

  5. n-paredes commented on Jun 2, 2021

    @n-paredes

    In my case the address was /home//etc/my-service-account.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions