• Resolved mmakenzi

    (@mmakenzi)


    Hi devs

    Right after updating to version 4.2.0, my website’s connection to the Minio server was lost. I didn’t change anything in the plugin settings, and I am using the settings via the wp-config file. As I was updating the plugin on the production website, I couldn’t debug the problem anymore and had to rollback to version 4.1.1, which was working fine.

    WordPress 6.8.3 / PHP 8.2 / Connected to Minio service on subdomain

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Masoud Golchin

    (@masoudin)

    Hi @mmakenzi

    Thanks for letting us know about the issue. I will investigate the issue.

    Was it just the connection failure on the Settings page? or images were also not loading?

    Thread Starter mmakenzi

    (@mmakenzi)

    Hi

    Same happened with the latest version 4.2.1

    I tested again, beside the error for connection lost, the images not loaded too after upgrading from 4.1.1 to 4.2.0 and 4.2.1

    Plugin Author Masoud Golchin

    (@masoudin)

    @mmakenzi

    Thank you for the update.

    In version 4.2.1, we introduced a new “Append Bucket Name to Domain” setting. Can you please test if the issue persists when this is checked vs unchecked? Note that this usually affects URL structure, not the connection itself. So please try testing your image URLs with this box both checked and unchecked to see how the structure changes.

    Since the update mostly moved settings to the dashboard (which are overridden by wp-config.php if present), a connection error is unexpected. Could you please enable debug.log and check for specific error messages when testing the connection so we can investigate further?

    Thread Starter mmakenzi

    (@mmakenzi)

    Hi

    I tested both scenarios with the “Append Bucket Name to Domain” option — checked and unchecked — and unfortunately the issue persists in both cases. There is no change in behavior.

    After the update, the issue seems to be related to how the plugin builds the S3 endpoint URL. The plugin is now trying to send requests to: https://wp-media.s3.xxx.com/

    But this is not a valid endpoint. The correct structure for my setup is: https://s3.xxx.com/wp-media

    In other words, the bucket name should come after the domain, not before it. So the plugin is generating the wrong endpoint format, and it seems this behavior results in the connection failure (cURL error 6).

    2025/12/07 01:38:15 [error] 336433#336433: *16534 FastCGI sent in stderr: “PHP message: Advanced Media Offloader: Error checking connection to S3: Error executing “HeadBucket” on “https://wp-media.s3.xxx.com/”; AWS HTTP error: cURL error 6: Could not resolve host: wp-media.s3.xxx.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://wp-media.s3.xxx.com/” while reading response header from upstream, client: 127.0.0.1, server: xxx.com, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php8.3-fpm.sock:”, host: “www.xxx.com”, referrer: “https://www.xxx.com/wp-admin/admin.php?page=advmo”

    Plugin Author Masoud Golchin

    (@masoudin)

    @mmakenzi

    It seems you should enable “Use Path-Style Endpoint” in the settings page for your MinIO setup.

    Thread Starter mmakenzi

    (@mmakenzi)

    Hi

    I already did that via the wp-config file. The plugin, after updating to the version after 4.1.1, fetches the config of the wp-config file, but the only option that isn’t the same as the wp-config file is the “Use Path-Style Endpoint” option; no matter what I do, this option will never be enabled at all. I even deleted the whole setting options from my wp-config file, but still couldn’t enable the option, as it still seems to obey the wp-config options, which don’t exist anymore.

    Plugin Author Masoud Golchin

    (@masoudin)

    @mmakenzi Thanks for sharing these details! It really helps me to replicate your issue and address it.
    I will run some tests this week and will get back to you.

    Plugin Author Masoud Golchin

    (@masoudin)

    Hello @mmakenzi,

    Great news! We’ve addressed the issue you helped us identify.

    This fix will be included in the next release, version 4.3.0, which is expected in the next few days.

    Thanks again for your help!

    Plugin Author Masoud Golchin

    (@masoudin)

    Hi @mmakenzi

    The new version has been released. Could you give it a test? The issue you were facing should be resolved.

    Thread Starter mmakenzi

    (@mmakenzi)

    Hi

    It’s fine on the latest version. I am facing another problem which I will open another topic for it.

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

You must be logged in to reply to this topic.