• Resolved yankiara

    (@yankiara)


    Hi,
    First of all thank you for this great plugin.

    Unfortunately, since I’ve upgraded my websites to v2.2, I have the rewrites_not_working error code on a lot my sites (different hostings and plugins).
    What could be wrong?

    Everything was working fine with v1.5, with same server configurations, which fulfilled server requirements.

    TIA

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

    (@mateuszgbiorczyk)

    Hi @yankiara,

    Thank you for your message.

    In the plugin FAQ, there is a list of questions as the first question. Please answer all of them below and I will try to help you.

    Thread Starter yankiara

    (@yankiara)

    OK, I tried to inspect all my sites a bit more and it turns out that if I DON’T check PNG files, I HAVE the error message, and if I check PNG files, everything is OK:
    https://prnt.sc/y11va5
    https://prnt.sc/y124fg

    It happens on all my sites, regardless of hosting and WP versions or other plugins.

    I asked my hostings and mod_rewrite is OK everywhere, and I can indeed use it in all my .htaccess files.

    Same thing on fresh WP install with only WebP Converter activated.

    Regarding your request:

    1. Do you have any error on the plugin settings page? Enter error codes. Have you consulted your server administrator or developer?
    Already mentionned above.
    Yes I asked, everything is fine for him.

    2. URL of your website. If your site is not publicly available, add it to test environment.
    https://wptest.pavenum.com

    3. Configuration of your server (link to it can be found on the settings page of plugin in the section “We are waiting for your message”) – please take a screenshot of the ENTIRE page and send it to me.
    https://prnt.sc/y13m6b

    4. Settings of plugin – please take a screenshot of the ENTIRE page and send it to me.
    https://prnt.sc/y13t18

    5. Do you use CDN? If so, please see the question “Does the plugin support CDN?” in plugin FAQ.
    NO

    6. Please do the test, which is described in the FAQ in question How to check if plugin works?. Please send a screenshot of Devtools with test results.
    https://prnt.sc/y14k9u

    7. Content of your .htaccess files from directories /wp-content, /wp-content/uploads and /wp-content/uploads-webpc (pasting the code using the CODE shortcode in the editor).
    /wp-content/:

    
    # BEGIN WebP Converter
    # ! --- DO NOT EDIT PREVIOUS LINE --- !
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
      RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
      RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,E=cache-control:no-cache,L]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
      RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
      RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,E=cache-control:no-cache,L]
    </IfModule>
    # ! --- DO NOT EDIT NEXT LINE --- !
    # END WebP Converter
    

    /wp-content/uploads

    
    # BEGIN WebP Converter
    # ! --- DO NOT EDIT PREVIOUS LINE --- !
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.webp -f
      RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
      RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.webp [NC,T=image/webp,E=cache-control:no-cache,L]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.webp -f
      RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
      RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.webp [NC,T=image/webp,E=cache-control:no-cache,L]
    </IfModule>
    # ! --- DO NOT EDIT NEXT LINE --- !
    # END WebP Converter
    

    /wp-content/uploads-webpc:

    
    
    # BEGIN WebP Converter
    # ! --- DO NOT EDIT PREVIOUS LINE --- !
    <IfModule mod_mime.c>
      AddType image/webp .webp
    </IfModule>
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType image/webp "access plus 1 year"
    </IfModule>
    # ! --- DO NOT EDIT NEXT LINE --- !
    # END WebP Converter
    

    8. Do you use any plugin filters or actions from this FAQ? If so, list them all.
    NO

    9. What plugin version are you using? If it is not the latest then update and check everything again.
    2.3

    10. Used WordPress version.
    5.6

    11. A list of all the plugins you use. Have you tried checking the plugin operation by turning off all others and activating the default theme? If not, please try whenever possible. This is very important because other plugins or themes can cause problems. Therefore, we recommend disabling all necessary plugins and enabling the default theme.
    NO OTHER PLUGIN

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @yankiara Thank you very much!

    I have prepared a test version of the plugin for you which contains a fix for your problem:
    https://gbiorczyk.pl/webp-converter-for-media-v2.3.1.zip

    Please install this plugin version. If this fixes the problem, I will add it to the next plugin update. I will be grateful for your feedback.

    Thread Starter yankiara

    (@yankiara)

    Hi Mateusz,
    Everything seems back to normal with this fix ??
    Thanks a lot for your reactivity, and glad I could help!
    Yan

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @yankiara Thank you too!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘rewrites_not_working after update to v2.2’ is closed to new replies.