• Resolved JapeNZ

    (@japenz)


    Hi there,
    When I try to active the plugin I receive the notification regarding placing the code in my .htaccess file.
    I go to place the code and see it’s already there, but beneath the # BEGIN WordPress line like so:

    # BEGIN WordPress
    # The directives (lines) between BEGIN WordPress and END WordPress are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.

    # BEGIN Images to WebP
    <IfModule mod_mime.c>
    AddType image/webp .webp
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{REQUEST_FILENAME} “/wp-content/”
    RewriteCond %{REQUEST_FILENAME} “\.(jpg|jpeg|gif|png)$”
    RewriteCond %{REQUEST_FILENAME}\.webp -f
    RewriteRule ^(.+)$ $1\.webp [NC,T=image/webp,E=webp,L]
    </IfModule>
    # END Images to WebP

    I remove it and place it above the # BEGIN WordPress line, but when I try to activate the plugin again the message comes up and the code is back in the wrong place as well as the code I moved to the correct place.

    Any idea what I’m doing wrong?

    Thanks for your help!

    Kind regards,
    JP

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter JapeNZ

    (@japenz)

    Hi @kubiq,
    Thank you for getting back to me ??

    You were absolutely right mate, it was a server issue.
    I forwarded your response to my host and they activated Webp on my server… your plugin then activated without any problems!

    Thanks again!

    Kind regards,
    JP

    I have the same error. Tell me more about how you solved it?

    Thread Starter JapeNZ

    (@japenz)

    Hi @brilik
    The issue was with my server configuration that is handled by my host.
    I contacted my host and asked them to activate Webp support on my server and the plugin works fine now.

    Unfortunately I don’t know exactly what it was the host did.

    Sorry I can’t be more helpful.

    Kind regards,
    JP

    Hi. WebP Support in server is enabled but I have the same problem. This plugin perfect worked in my Hosting. I transferred wordpress site from Hosting to VPS and don’t works now (obviously this is due to server configuration). File .htaccess has the rules for webp above the line reading #BEGIN WordPress, but then I try to activate Images to WebP again I see the same instruction.
    Can you show me response from @kubiq which helped for you?

    PS. webp is already the newest version (0.4.4-1) and enabled

    Plugin Author kubiq

    (@kubiq)

    Try to deactivate plugin and then activate it again.
    If still not working, try to uninstall it and then install again.
    It’s true, that I never tried to migrate between 2 completely different environments, so maybe when you migrate from nginx with Imagick to Apache with only GD, then there can be problem, but deactivation or uninstallation should help.
    Let me know, I will also test it later this week

    Thanks for reply, @kubiq.
    I still see instruction for .htaccess file when I activate plugin. Deactivation and uninstallation didn’t solve this.
    I remind, .htaccess file has instruction code in the top, webp is installed and activated.

    Plugin Author kubiq

    (@kubiq)

    Then your server simply ignores these rules in .htaccess and doesn’t support WEBP
    You should ask your hosting provider, because this is something he has to enable and there is nothing I can do about it

    Thank you for answer.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unable to activate’ is closed to new replies.