• Resolved Ian Chamba

    (@ianchamba)


    Happy New Year everyone!

    I have another problem here.

    [31-Dec-2024 16:43:27 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/02082930/31164326/Arum-66673c07056fb.jpg”; AWS HTTP error: Client error: PUT https://cloud.hostbraza.com.br/wpgpl-brasil/s3saeast1%3A//wpgpl-brasil/wp-content/uploads/2024/06/02082930/31164326/Arum- 66673c07056fb.jpg resulted in a 400 Bad Request response:

    XMinioInvalidObjectNameObject name contains unsuppor (truncated…) XMinioInvalidObjectName (client): Object name contains unsupported characters. – XMinioInvalidObjectNameObject name contains unsupported characters.s3saeast1://wpgpl-brasil/wp-content/uploads/2024/06/02082930/31164326/Arum-666 73c07056fb.jpgwpgpl-brasil/wpgpl-brasil/s3saeast1://wpgpl-brasi l/wp-content/uploads/2024/06/02082930/31164326/Arum-66673c07056fb.jpg181650AC4FAB6 0BDdd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8

    It’s probably because it’s probably adding the region of my bucket, since my bucket doesn’t have a region.

    Could you help me with this?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Ian Chamba

    (@ianchamba)

    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.
    Plugin Author Masoud Golchin

    (@masoudin)

    Hi @ianchamba

    Happy New Year!

    Glad to hear that you have resolved the issue and Thank you for sharing the solution.

    Thread Starter Ian Chamba

    (@ianchamba)

    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?

    Plugin Author Masoud Golchin

    (@masoudin)

    @ianchamba

    Please send screenshots of the plugin settings page and also the minio domain, mino endpoint and bucket name.

    Thread Starter Ian Chamba

    (@ianchamba)

    define(“ADVMO_MINIO_ENDPOINT”, “https://cloud.hostbraza.com.br;);
    define(“ADVMO_MINIO_BUCKET”, “wpgpl-brasil”);
    define(“ADVMO_MINIO_DOMAIN”, “https://cloud.hostbraza.com.br;);

    • This reply was modified 1 year, 4 months ago by Ian Chamba.
    Thread Starter Ian Chamba

    (@ianchamba)

    <?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.
    Thread Starter Ian Chamba

    (@ianchamba)

    Plugin Author Masoud Golchin

    (@masoudin)

    @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
    Thread Starter Ian Chamba

    (@ianchamba)

    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.

    Plugin Author Masoud Golchin

    (@masoudin)

    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.

    Thread Starter Ian Chamba

    (@ianchamba)

    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.

    Plugin Author Masoud Golchin

    (@masoudin)

    @ianchamba

    We will address the compatibility issue with downloadable products in WooCommerce in our next release.

    Thread Starter Ian Chamba

    (@ianchamba)

    Okay, thank you so much!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Error Bulk Offload’ is closed to new replies.