• Resolved ncti

    (@ncti)


    Hi,

    I have problem with plugin. After activate and run, it return following error:
    rewrites_not_working
    I think that this is problem with hosting, because this plugin working correctly on my other server.
    Is any solution for it?
    Thanks

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

    (@mateuszgbiorczyk)

    Hi @ncti,

    Thank you for your message.

    I am sorry you have encountered a problem with our plugin. Do not worry, I will try to help you.

    I want to see what might have gone wrong.Could you send me a screenshot of the Help Center tab in the plugin’s settings. I will check it because in this tab I have an information about the status of your website.

    Best, Mateusz

    Thread Starter ncti

    (@ncti)

    Sure:
    https://prnt.sc/EZNyCe59_oxA
    https://prnt.sc/E6qq7YLDFvon
    https://prnt.sc/TkT-Go3gAmSq

    Current hosting nazwa.pl …. ??

    • This reply was modified 2 years ago by ncti.
    • This reply was modified 2 years ago by ncti.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you @ncti,

    Please add the following code to the functions.php file in your theme directory:

    add_filter( 'webpc_htaccess_rewrite_root', function () {
    	return '%{DOCUMENT_ROOT}/';
    } );
    add_filter( 'webpc_htaccess_rewrite_path', function () {
    	return '/';
    } );

    Did this solve the problem?

    Thread Starter ncti

    (@ncti)

    unfortunately no :/ still the same error

    mcuautle

    (@mcuautle)

    I have the same message

    It appears that redirects on your server are not working. It means that your server does not support rewrites from the .htaccess file or your server configuration is not compatible with this plugin.

    In this case, please contact us. We will try to help you.

    Error codes: rewrites_not_working

    On the Help Center i see this

    Errors debug

    Size of PNG (by server path) 21586

    Size of PNG2 (by server path)21586

    Size of PNG as WEBP (by URL)0

    Size of PNG as PNG (by URL)0

    Size of PNG2 as WEBP (by URL)0

    Size of PNG2 as PNG2 (by URL)0

    Plugin settings{“quality”:”85″,”output_formats”:[“webp”],”dirs”:[“uploads”],”image_resize”:[“”,””,””],”auto_conversion”:”yes”,”access_token”:””,”extensions”:[“jpg”,”png”,”webp”,”jpeg”],”method”:”gd”,”loader_type”:”htaccess”,”rewrite_inherit_disabled”:””,”excluded_dirs”:””,”features”:[“only_smaller”],”media_stats”:”yes”,”cloudflare_zone_id”:””,”cloudflare_api_token”:””}

    Error codes[“rewrites_not_working”]

    i check the .haccess file under the web root path and i see it the privileges https://prnt.sc/1zEGiy9pWnug

    The rewrite is available https://prnt.sc/hNc2Qyaq6eJI

    i check under the wp-content and wp-content/uploads and the .htaccess file existe https://prnt.sc/Cyxu1VsaFUjz

    in both places has the same information: https://prnt.sc/g7Hy95XpxZq3

    and i add the lines under the file fuctions.php under the theme and it has the same error

    • This reply was modified 2 years ago by mcuautle.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ncti Does the issue persist in the latest version of the plugin?

    @mcuautle There is also additional information in the Help Center tab. Could you send me a screenshot of the Help Center tab in the plugin’s settings? I will check it.

    Thread Starter ncti

    (@ncti)

    @mateuszgbiorczyk unfortunately yes. I saw that home.pl have similar issue. https://prnt.sc/nQy0dLu1BIt1

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ncti I understand you. Thank you for your commitment.

    Unfortunately, I cannot help you in this situation.

    For a free plugin, according to WordPress rules, I can only help you here. You have given me information that may help diagnose the problem, but unfortunately this information does not allow me to find a solution.

    The nazwa.pl hosting probably uses a specific version of Apache or some custom solution. The surprising thing is that these rules work on hundreds of thousands of websites, on different hosts, and on the nazwa.pl hosting they don’t.

    I hope you understand me that in this situation I am limited in possibilities. I would love to help you, but I can’t.

    In the case of such problems, I tried to contact the support of a given hosting more than once, but unfortunately in most cases the answer of the hosting is similar – it’s the plugin’s fault. They do not appreciate the arguments that the plugin is used by over 200,000 websites and there are no such problems. There is no possibility to talk to a technical person – only a non-technical person is on the other side as technical support.

    I’m sorry, but I tried to explain to you honestly what the situation is.

    Thread Starter ncti

    (@ncti)

    @mateuszgbiorczyk Yes I understand it perfectly. On my other websites on various hostings it works perfectly, but in the nazwa.pl there are always a lot of problems. They don’t want to help you like in other helpdesks, they angry, when you ask about something ??

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ncti Thank you for your understanding!

    If you encounter any other questions, please, feel free to reach out to me.

    Thread Starter ncti

    (@ncti)

    @mateuszgbiorczyk thank you for honest approach ?? If I will know something new about this issue I let you know, maybe it help you to solve this problem

    • This reply was modified 2 years ago by ncti.
    mcuautle

    (@mcuautle)

    Hi there I’m attching you the pending screenshot of help center

    https://prnt.sc/uIsuWxlKHB_8

    https://prnt.sc/mUcMl72fKyoa

    https://prnt.sc/7X1laEZYLkou

    https://prnt.sc/GmZvex3bSRQs

    thanks for your help ??

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you @mcuautle,

    Please send me the contents of the .htaccess file from the /wp-content directory.

    
    # BEGIN Converter for Media
    # ! --- DO NOT EDIT PREVIOUS LINE --- !
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/avif
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.avif -f
      RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.avif [NC,T=image/avif,L]
      RewriteCond %{HTTP_ACCEPT} image/avif
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.avif -f
      RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.avif [NC,T=image/avif,L]
      RewriteCond %{HTTP_ACCEPT} image/avif
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.avif -f
      RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.avif [NC,T=image/avif,L]
      RewriteCond %{HTTP_ACCEPT} image/avif
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.avif -f
      RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.avif [NC,T=image/avif,L]
    </IfModule>
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
      RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,L]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
      RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.webp [NC,T=image/webp,L]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.webp -f
      RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.webp [NC,T=image/webp,L]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
      RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,L]
    </IfModule>
    <IfModule mod_headers.c>
      <FilesMatch "(?i)\.(jpg|png|webp|jpeg)(\.(webp|avif))?$">
        Header always set Cache-Control "private"
        Header append Vary "Accept"
      </FilesMatch>
    </IfModule>
    # ! --- DO NOT EDIT NEXT LINE --- !
    # END Converter for Media
                                    
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you @mcuautle,

    Could you please recapture the Help Center tab using the latest version of the plugin?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Rewriter not working’ is closed to new replies.