I thought the problem had been resolved, but it didn’t.
-
This reply was modified 1 year, 5 months ago by
Ian Chamba.
-
This reply was modified 1 year, 5 months ago by
Ian Chamba.
Hi @ianchamba
Happy New Year!
Glad to hear that you have resolved the issue and Thank you for sharing the solution.
In fact, I thought I had solved it, but it cunningly didn’t. I edited the message, could you tell me what could happen with this problem?
@ianchamba
Please send screenshots of the plugin settings page and also the minio domain, mino endpoint and bucket name.
<?xml version="1.0" encoding="UTF-8"?> <Error><Code>XMinioInvalidObjectName</Code><Message>Object name contains unsuppor (truncated...) XMinioInvalidObjectName (client): Object name contains unsupported characters. - <?xml version="1.0" encoding="UTF-8"?> <Error><Code>XMinioInvalidObjectName</Code><Message>Object name contains unsupported characters.</Message><Key>s3saeast1://wpgpl-brasil/wp-content/uploads/2024/06/02080337/31175314/Lewis-6668354d5fee9.jpg</Key><BucketName>wpgpl-brasil</BucketName><Resource>/wpgpl-brasil/s3saeast1://wpgpl-brasil/wp-content/uploads/2024/06/02080337/31175314/Lewis-6668354d5fee9.jpg</Resource><Region>sa-east-1</Region><RequestId>1816AB956F1305F6</RequestId><HostId>dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8</HostId></Error> [01-Jan-2025 20:29:26 UTC] Advanced Media Offloader: Error uploading file to S3: Error executing "PutObject" on "https://cloud.hostbraza.com.br/wpgpl-brasil/s3saeast1%3A//wpgpl-brasil/wp-content/uploads/2024/06/02080335/31175320/Nadus-6668359ad1f41.png"; AWS HTTP error: Client error: PUT https://cloud.hostbraza.com.br/wpgpl-brasil/s3saeast1%3A//wpgpl-brasil/wp-content/uploads/2024/06/02080335/31175320/Nadus-6668359ad1f41.png resulted in a 400 Bad Request response: <?xml version="1.0" encoding="UTF-8"?>
I was able to send the error_log correctly here now.
The strangest thing about all of this is that I managed to offload half of my files from my website, but half of them gave this error.
-
This reply was modified 1 year, 4 months ago by
Ian Chamba.
@ianchamba
Do you know where s3saeast is coming from in the error you send on your previous comments? The plugin doesn’t add it and I’m not seeing it on the constants you sent.
s3saeast1%3A//wpgpl-brasil
With a lot of sacrifice, I managed to find the problem. The problem was that I used the WP Media Offload plugin before and there were some remnants of information from the old bucket that I used before in Amazon S3, so what I needed to do was just give the command
UPDATE wp_postmeta
SET meta_value = REPLACE(meta_value,
's3saeast1://wpgpl-brasil/wp-content/uploads/',
'')
WHERE meta_key = '_wp_attachment_metadata'
AND meta_value LIKE '%s3saeast1://%';
and this command removed the wrong information directly from the database. Solved.
Great to hear that you have resolved the issue!
I think you should also remove the /wpgpl-brasil from the _wp_attachment_metadata because the default WordPress attachment metadata doesn’t contain it and they should not change the default behavior in the DB.
Yes, I removed it, thanks again. Now a question, do you intend to integrate with WooCommerce? Because I had to create a code to be able to update the URLs of my downloadable products in WooCommerce, because currently the plugin does offload, but does not update the URLs of the WooCommerce products.
@ianchamba
We will address the compatibility issue with downloadable products in WooCommerce in our next release.