Media Library Broken When plugin is active
-
I’ve set up Google Cloud Storage to host images and configured WP Offload Media following the documentation. The hosting itself works fine, and images load correctly on the front end. However, the media library breaks whenever I try to access it. The images don’t load, and I get a critical error. However I can view images by searching their names.
Error log:
PHP Fatal error: Uncaught DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Core\Exception\ServiceException: {"error":{"code":403,"message":"[MY_SERVICE_ACCOUNT] does not have storage.objects.list access to the Google Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist).","errors":[{"message":"[MY_SERVICE_ACCOUNT] does not have storage.objects.list access to the Google Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist).","domain":"global","reason":"forbidden"}]}}
in mysite/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Gcp/google/cloud-core/src/RequestWrapper.php:351
It looks like my Google Cloud Service Account is missing
storage.objects.list
permissions for my bucket.Steps I’ve taken:- Set up WP Offload Media using the official documentation.
- Verified that my service account is connected properly.
- Confirmed that my website is correctly serving images from Google Cloud Storage.
- You must be logged in to reply to this topic.