• Resolved kkumar326

    (@kkumar326)


    Hi,

    I’m using Cloudflare on my website and due to it, the plugin is showing this error:

    “Server configuration error. Redirects on your server are not working.”

    But it’s working fine even with Cloudflare. Now, this error is disabling plugin features like these Image generation buttons.

    I think plugin features shouldn’t be disabled as we’ll get webp only from nginx no matter how many layers of proxy we add on top of it.

    Please check. Thanks a lot!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @kkumar326,

    Thank you for your message.

    Could you please provide your configuration for Nginx?

    Thread Starter kkumar326

    (@kkumar326)

    Hi,

    I pasted this portion in nginx:

    location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ {
    if ($http_accept !~* “image/webp”) {
    break;
    }
    add_header Vary Accept;
    expires 365d;
    try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404;
    }

    This is working fine in both staging and live websites. I’m getting webp images.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @kkumar326, let me ask you for help. Could you please edit the following file in the plugin code?
    /webp-converter-for-media/trunk/app/Settings/Errors.php

    Find the following line:
    return ($fileWebp < $fileSize);

    And replace it with such a code:

    echo '<pre>';
      print_r([$fileSize, $fileWebp]);
    echo '</pre>';
    exit;
    
    return ($fileWebp < $fileSize);

    Then go to the admin panel to plugin settings. Please tell me what is displayed to you.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @kkumar326, I have prepared a small change that changes the detection of the error that you see. Could you check beta version of plugin for me?

    Download it from here and install it on your website:
    https://gbiorczyk.pl/webp-converter-for-media-v1.4.3.zip

    Then go to the plugin settings (save the plugin settings again first), to Server configuration tab (the button is in the box on the right) and take a screenshot of the entire page. Please send it to me.

    Thread Starter kkumar326

    (@kkumar326)

    Hi @mateuszgbiorczyk ,

    Cloudflare is added to the live website only. And on staging, I’m not seeing any error as it’s not proxied.

    Would it be safe to test the beta on live website?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Yes @kkumar326. It is safe.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @kkumar326, I have released an update which adds this I have given you in beta. Please test it and give me the information I need.

    In the absence of contact from your side, I will assume that the problem has been resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Possible Bug’ is closed to new replies.