• Hello! Plugin don’t work.

    Total files in the adaptive images cache: 0
    Total directories in the adaptive images cache: 0
    Total size of the adaptive images cache: 0

    Debug info
    ? PHP GD library is installed.
    ? Image cache directory has been created.
    /var/www/xxxxxx/data/www/xxxxxx.ru/wp-content/cache/adaptive-images => drwxr-xr-x
    ? Installation .htaccess file is setup OK.
    /var/www/xxxxxx/data/www/xxxxxx.ru/.htaccess => -rw-r–r–
    ? Adaptive images settings dump:
    array(14) {
    [“resolutions”]=>
    array(8) {
    [0]=>
    int(1920)
    [1]=>
    int(1440)
    [2]=>
    int(1032)
    [3]=>
    int(1024)
    [4]=>
    int(720)
    [5]=>
    int(640)
    [6]=>
    int(516)
    [7]=>
    int(480)
    }
    [“landscape”]=>
    bool(true)
    [“hidpi”]=>
    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(80)
    [“sharpen-images”]=>
    bool(true)
    [“watch-cache”]=>
    bool(true)
    [“browser-cache”]=>
    float(180)
    [“cdn-support”]=>
    bool(false)
    [“version”]=>
    string(6) “0.6.62”
    [“sanitized”]=>
    bool(true)
    [“wp-content-dir”]=>
    string(53) “/var/www/xxxxxx/data/www/xxxxxx.ru/wp-content”
    [“wp-content-url”]=>
    string(34) “https://xxxxxx.ru/wp-content”
    }

    System information
    Web Server
    Apache/2.4.6 (CentOS) mpm-itk/2.4.7-01 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16
    Document Root
    /var/www/xxxxxx/data/www/xxxxxx.ru
    PHP
    5.6.27
    PHP Time Limit
    0
    PHP Memory Limit
    1024M
    PHP Post Max Size
    12M
    PHP Upload Max Size
    12M
    PHP Max Input Vars
    3000
    PHP Display Errors
    No
    PHP Error Log
    MySQL
    5.5.50-MariaDB
    MySQL Ext/mysqli
    Yes
    MySQL Table Prefix
    wp_
    MySQL DB Charset
    utf8
    WP
    4.7.3
    WP Multisite
    No
    WP Debug Mode
    No
    WP Site url
    https://xxxxxx.ru
    WP WP Home url
    https://xxxxxx.ru
    WP Permalinks
    /%category%/%postname%.html
    WP home path
    /var/www/xxxxxx/data/www/xxxxxx.ru/
    WP content dir
    /var/www/xxxxxx/data/www/xxxxxx.ru/wp-content
    WP plugin dir
    /var/www/xxxxxx/data/www/xxxxxx.ru/wp-content/plugins
    WP content url
    https://xxxxxx.ru/wp-content
    WP plugin url
    https://xxxxxx.ru/wp-content/plugins
    WP Locale
    ru_RU
    WP Memory Limit
    256M
    WP Max Upload Size
    12mb

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

    (@nevma)

    Hello, my friend,

    Your debug information seems OK so far, no problem there.

    Are you sure you have tested your website in one of the ways described in the “How to test” section of the plugin description page? I could take a look at your website’s images, but it would require sharing its url with us, if that is not the problem.

    Cheers,
    Takis

    Thread Starter Argument

    (@argument)

    Hello, dear Takis! Sure, for example: bit.ly/2h4LAhZ

    Plugin Author Takis Bouyouris

    (@nevma)

    Thank you for sharing your url with me!

    Two questions:

    1. Are you perhaps using some kind of CDN or caching server, like Varnish?

    2. Could you copy paste the Adaptive Images part of your htaccess file for me? It doesn’t contain any sensitive website information!

    Cheers,
    Takis

    Thread Starter Argument

    (@argument)

    Thank you for answer!
    1. No. I don’t use CDN or cache.
    2.
    # 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)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php [L]

    </IfModule>

    # END Adaptive Images

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN HTML5 Boilerplate

    # END HTML5 Boilerplate

    Plugin Author Takis Bouyouris

    (@nevma)

    Hmm, that is a weird case! Still everything looks OK, yet I do see that your images are not being resized by the plugin, as they are supposed to.

    The reason for this seems to be the fact that the line RewriteRule \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php [L] in your htaccess file is not working at all, for some unknown reason. The mod_rewrite.c module seems to be active, because I can see that your pretty permalinks are working alright.

    Is it possible to contact your system administrator and ask them why that line in your htaccess file is not working? It is syntactically correct and the paths are correcto, too! If it were working, then a url like https://argumentplus.ru/wp-content/uploads/2016/10/283.jpg?debug=true should produce some debugging message or at least an error, but it doesn’t.

    Cheers,
    Takis

    Thread Starter Argument

    (@argument)

    Thank you! My hoster tell me that on the server installed Nginx and images was edited by them. Can you tell me a rule for Nginx and edit htaccess file?

    Plugin Author Takis Bouyouris

    (@nevma)

    OK, so now there are two separate cases:

    1) If your host is using Nginx directly, instead of Apache, then you need a configuration like the one that the plugin itself suggests in its success message, when you save its settings. It is an addition to the Nginx configuration which goes something like this:

    location / {
        rewrite \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php;
    }

    The actual code one should use might vary a bit depending on their particular setup. You will need to consult your server administrator for details on this.

    However, from what I have seen in your debug messages, this is probably not your case. Your server reports:

    System information
    Web Server
    Apache/2.4.6 (CentOS) mpm-itk/2.4.7-01 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9

    I think your case is number 2, although we initially ruled it out:

    2) Your host is using Nginx as a caching server, perhaps only for images, but it does. In this case Nginx is standing between your website and your users and it is serving images directly, so your website has no power over how these images are delivered.

    For this case we have a special feature, called “CDN support”, which you can enable in the plugin settings page. Unfortunately, this feature is still a bit experimental. It might not always be able to deliver resized images and it does depend on the specifics of your hosts setup. You could give it a try, though, it will pose no danger to your website.

    Please, do let me know how it all goes!

    Cheers,
    Takis

    Thread Starter Argument

    (@argument)

    Hi,Takis! Thank you for answer! My hoster add this code in Nginx file. But this code don’t work. And hoster tell me that I contact with you.

    Plugin Author Takis Bouyouris

    (@nevma)

    I believe your host confirmed what I suspected in my previous post: your case is number 2, you are not using Nginx directly, but as a caching server (probably not only for your images, but for your whole website). This is why the configuration I sent you did not have any effect.

    So, I suggest you try and enable the “CDN support” option in the plugin settings page.

    However, you should know that this feature is still experimental, but you could tryt it as last resort. The way CDNs and caching servers work does not allow them to cooperate with our plugin’s functions very well. Let me know when you enable it, so I can check if anything has changed.

    Cheers,
    Takis

    Thread Starter Argument

    (@argument)

    I check to make plugin cooperate with a CDN, Varnish or other external caching solution.
    Unfortunately this is not work for me.

    Plugin Author Takis Bouyouris

    (@nevma)

    I am very sorry, my friend, but it seems that this Nginx setup cannot work with our plugin. Using Nginx like this, makes it impossible for our plugin to deliver your images at all. It is like our plugin is not even there!

    I am also sorry for making you go into all this trouble debugging, but it is technically impossible for the plugin to detect your setup beforehand and inform you accordingly.

    So, unfortunately you have 2 mutually exclusive options: 1) keep your current setup, but not use Adaptive Images or 2) change your setup and remove Nginx as a caching server, in order to use Adaptive Images.

    Cheers,
    Takis

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Plugin don’t work’ is closed to new replies.