Open corbrink opened 1 year ago
Disable/update it causes: PHP Notice: Undefined index: x-amz-bucket-region in /home/h****l/wp-content/plugins/ilab-media-tools/lib/mcloud-aws/aws-sdk-php/src/S3/S3ClientTrait.php on line 219
You shouldn't have PHP notices breaking your site. If you are seeing PHP error notices on our site on the front end on a production site, then PHP it not configured optimally.
First, turn of displaying errors:
https://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors https://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
Second, yuu should be logging errors to a log file, not displaying them on a production site:
https://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
Third, set up the correct error logging levels. A NOTICE is not an error. Try 30711 or 6135 for this value. I don't remember which it is off the top of my head. This is less important though if you get proper logging working.
https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
On Jul 6, 2023, at 1:03 AM, Luis Enrique Martinez @.***> wrote:
Disable/updated causes: PHP Notice: Undefined index: x-amz-bucket-region in /home/h****l/wp-content/plugins/ilab-media-tools/lib/mcloud-aws/aws-sdk-php/src/S3/S3ClientTrait.php on line 219
— Reply to this email directly, view it on GitHub https://github.com/Interfacelab/ilab-media-tools/issues/211#issuecomment-1622233186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAK3IKOKO4R6X773NHJOEDXOWUAHANCNFSM6AAAAAAY3NUN7I. You are receiving this because you are subscribed to this thread.
I want to disable Cloud Storage because of costs, but when I disable cloud storage it breaks my site's image display. The url has a strange string before the file name so the image from the media library cannot display correctly. Ho do I fix the issue without re-assigning new media to all the broken links.