• I keep getting this error:

    Adaptive Images Error — The .htaccess file is not updated

    Yet this is the code I’ve updated in my htaccess file, countless times now.

    # BEGIN Adaptive Images
    #=======================

    <IfModule mod_rewrite.c>

    RewriteEngine On

    # Watched directories
    RewriteCond %{REQUEST_URI} /wp-content/uploads [OR]
    RewriteCond %{REQUEST_URI} /wp-content/themes

    # Redirect images through the adaptive images script
    RewriteRule \.(?:jpe?g|gif|png)$ /home/lfprepai/public_html/wp-content/plugins/adaptive-images/adaptive-images-script.php [L]

    </IfModule>

    # END Adaptive Images

    Please help me fix the error.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    When you save your Adaptive Images settings, does the plugin produce some kind of error message concerning the htaccess file?

    Also, could you send me the results of the Print debug and Print diagnostics buttons in the Adaptive Images plugin settings page?

    Cheers,
    Takis

    Thread Starter laurencebotha

    (@laurencebotha)

    HI,

    Yes, the error is – The .htaccess file is not updated

    Print Debug
    Debug info

    ✔ PHP GD library is installed.

    ✔ Image cache directory has been created.

    /home/lfprepai/public_html/wp-content/cache/adaptive-images => drwxr-xr-x

    ✖ Installation .htaccess file is not properly setup.

    The .htaccess file is not writeable so it might have not been updated.

    /.htaccess =>

    ❖ Adaptive images settings dump:

    array(14) {
    [“resolutions”]=>
    array(3) {
    [0]=>
    int(1024)
    [1]=>
    int(640)
    [2]=>
    int(480)
    }
    [“landscape”]=>
    bool(true)
    [“hidpi”]=>
    bool(true)
    [“cdn-support”]=>
    bool(true)
    [“cache-directory”]=>
    string(21) “cache/adaptive-images”
    [“watched-directories”]=>
    array(2) {
    [0]=>
    string(18) “wp-content/uploads”
    [1]=>
    string(17) “wp-content/themes”
    }
    [“jpeg-quality”]=>
    int(75)
    [“sharpen-images”]=>
    bool(true)
    [“watch-cache”]=>
    bool(true)
    [“browser-cache”]=>
    float(180)
    [“version”]=>
    string(6) “0.6.64”
    [“sanitized”]=>
    bool(true)
    [“wp-content-dir”]=>
    string(37) “/home/lfprepai/public_html/wp-content”
    [“wp-content-url”]=>
    string(34) “http://lfprepairs.co.za/wp-content&#8221;
    }

    Print Diagnostics

    Web Server
    Apache

    Document Root
    /home/lfprepai/public_html

    PHP
    7.1.20

    PHP Time Limit
    600

    PHP Memory Limit
    256M

    PHP Post Max Size
    64M

    PHP Upload Max Size
    60M

    PHP Max Input Vars
    2000

    PHP Display Errors
    No

    PHP Error Log
    error_log

    MySQL
    5.6.39

    MySQL Ext/mysqli
    Yes

    MySQL Table Prefix
    wpbj_

    MySQL DB Charset
    utf8mb4

    WP
    4.9.8

    WP Multisite
    No

    WP Debug Mode
    No

    WP Site url
    http://lfprepairs.co.za

    WP WP Home url
    http://www.lfprepairs.co.za

    WP Permalinks
    /%postname%/

    WP home path
    /

    WP content dir
    /home/lfprepai/public_html/wp-content

    WP plugin dir
    /home/lfprepai/public_html/wp-content/plugins

    WP content url
    http://lfprepairs.co.za/wp-content

    WP plugin url
    http://lfprepairs.co.za/wp-content/plugins

    WP Locale
    en_US

    WP Memory Limit
    40M

    WP Max Upload Size
    60mb

    WP Active plugins
    Adaptive Images for WordPress v.0.6.64 by Nevma
    Advanced Custom Fields v.4.4.12 by Elliot Condon
    Black Studio TinyMCE Widget v.2.6.2 by Black Studio
    Contact Form 7 v.5.0.3 by Takayuki Miyoshi
    Easy Facebook Likebox v.4.3.8 by MaltaThemes
    eCommerce Product Catalog for WordPress v.2.8.12 by impleCode
    impleCode Quote Form v.1.4.18 by Norbert Dreszer
    Post Types Order v.1.9.3.9 by Nsp Code
    Shortcodes Ultimate v.5.0.4 by Vladimir Anokhin
    Simple Custom CSS v.4.0.1 by John Regan, Danny Van Kooten
    Slider Images v.1.3.4 by richteam
    Category Order and Taxonomy Terms Order v.1.5.4 by Nsp-Code
    Testimonials Widget v.3.4.5 by Axelerant
    TinyMCE Advanced v.4.8.0 by Andrew Ozz
    Tracking Code Manager v.1.11.7 by IntellyWP
    WordPress Importer v.0.6.4 by wordpressdotorg
    Yoast SEO v.7.9 by Team Yoast
    WP Google Maps v.7.10.24 by WP Google Maps
    WP Live Chat Support v.8.0.14 by WP-LiveChat

    WP MU plugins

    Thread Starter laurencebotha

    (@laurencebotha)

    Hi,

    I got the plugin to work by setting the site address and wordpress address to be exactly the same.

    But none of my images are working now.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    Let’s take things one step at a time.

    First of all I think that your web site url and home url should match. I see no reason the shouldn’t and it probably confuses the plugin. Is this the correction you mentioned that you made in your last comment?

    WP Site url
    http://lfprepairs.co.za
    
    WP WP Home url
    http://www.lfprepairs.co.za

    Besides that I see the message that says

    The .htaccess file is not writeable so it might have not been updated.

    Do you know why this is? Usually the htaccess file needs to be writable, so that it can be automatically updated. If this is not possible, then one might add the necessary code bit to it manually.

    Lastly, I did make one last to your website and it seems that the Adaptive Imags plugin si working as expected now and your images are being resized (http://prntscr.com/kfx7xa/, http://prntscr.com/kfx8gk/).

    Cheers,
    Takis

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

The topic ‘.Htaccess Error’ is closed to new replies.