Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical Fatal Error after deleting GCP permissions #693

Closed
hamilton-seguin opened this issue Dec 21, 2023 · 3 comments · Fixed by #700
Closed

Critical Fatal Error after deleting GCP permissions #693

hamilton-seguin opened this issue Dec 21, 2023 · 3 comments · Fixed by #700
Assignees

Comments

@hamilton-seguin
Copy link

I've had an issue since yesterday where none of the images I upload on my wp website are visible. The thumbnail after upload is just blank. There is a link to my GCP bucket but the link gives this error

`This XML file does not appear to have any style information associated with it. The document tree is shown below.

NoSuchKey
The specified key does not exist.

No such object: voyageinstyle-net/2023/12/ba042ea9-vis07339.jpg
`

When trying to upload an image directly to the GCP bucket i have no problem.

So I tried to create a new API key for the wp-stateless I AM role, and change it in the settings of the plugin. It didn't help.
Finally, I tried to delete the role entirely in GCP to just create a new one. After deleting the IAM Service Role, my /wp-admin/ page is in critical error state.

Screenshot 2023-12-21 at 16 57 55

After contacting my server admin at Cloudways, they fixed my admin backend by desactivating wp-stateless. Everytime I reactivate it, the backend instantly crashes. Giving me the critical error...

I tried to delete the plugin altogether and reinstalling it: same thing, instant crash + fatal error of the wordpress backend

Please help !!

On the servers of my WP app, here are the logs

`[Thu Dec 21 16:06:04.672793 2023] [proxy_fcgi:error] [pid 19226:tid 140643854505728] [client 101.53.249.189:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...; PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...', referer: https://voyageinstyle.net/wp-admin/

[Thu Dec 21 16:06:10.223100 2023] [proxy_fcgi:error] [pid 19226:tid 140643829327616] [client 101.53.249.189:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...; PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...'

[Thu Dec 21 16:06:10.614662 2023] [proxy_fcgi:error] [pid 19226:tid 140644139857664] [client 101.53.249.189:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...; PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...', referer: https://voyageinstyle.net/wp-admin/?no_cache

[Thu Dec 21 16:06:52.020523 2023] [proxy_fcgi:error] [pid 19226:tid 140644148250368] [client 40.77.167.25:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...; PHP message: PHP Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398\nStack trace:\n#0 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException()\n#1 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send()\n#2 /home/858676.cloudwaysapps.com/pqrajkhhmh/public_html/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-storage/src/Connection/Rest.php(723): Google\C...'
`

@planv planv added this to the v4.0.0 separate compatibilities milestone Dec 22, 2023
@ewsopp
Copy link
Member

ewsopp commented Jan 5, 2024

@hamilton-seguin thank you for reporting! We'll take a look

@planv planv modified the milestones: v4.0.0 separate compatibilities, v3.4.0 security improvements Jan 10, 2024
@balexey88 balexey88 assigned planv and unassigned balexey88 Jan 17, 2024
@planv planv linked a pull request Jan 18, 2024 that will close this issue
@planv
Copy link
Contributor

planv commented Jan 22, 2024

Hello @hamilton-seguin

It was solved in version 3.4.0.
Please let us know how it works for you.

@hamilton-seguin
Copy link
Author

@planv Amazing, thank you guys.
I had to create a new Service Account (could not use old key, or use a fresh key with the old Service Account) But it's all working now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants