• Resolved josemmvic

    (@josemmvic)


    Hi.

    It does not work for me. I checked the forum but couldn’t find a solution although I have the same problems as other people. The folder is empty. I really hope you can help as your plugin looks very useful. My settings:

    ✔ PHP GD library is installed.

    ✔ Image cache directory has been created.

    /var/www/vhosts/patitojugueton.com/en.1luz.com/wp-content/adaptive-images => drwxr-xr-x

    ✔ Installation .htaccess file is setup OK.

    /var/www/vhosts/patitojugueton.com/en.1luz.com/.htaccess => -rw-r–r–

    ❖ Adaptive images settings dump:

    array(14) {
    [“resolutions”]=>
    array(3) {
    [0]=>
    int(1024)
    [1]=>
    int(640)
    [2]=>
    int(480)
    }
    [“cache-directory”]=>
    string(15) “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(0)
    [“landscape”]=>
    bool(false)
    [“hidpi”]=>
    bool(false)
    [“cdn-support”]=>
    bool(false)
    [“version”]=>
    string(6) “0.6.64”
    [“sanitized”]=>
    bool(true)
    [“wp-content-dir”]=>
    string(57) “/var/www/vhosts/patitojugueton.com/en.1luz.com/wp-content”
    [“wp-content-url”]=>
    string(30) “https://en.1luz.com/wp-content”
    }

    Thanks for your time!
    Jose.

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

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

    (@nevma)

    Hello, Jose,

    Thank you for reaching out to us!

    It seems that your content is being delivered by NginX and not Apache. (I guess this is something that we need to differentiate more clearly in the future versions of the plugin, by the way!)

    Are you using NginX as your main web server or as a caching server?

    If you are using it as your main server then you need to add a special location directive in your server directive of your NginX configuration file. When you save the adaptive Images settings you will see a message that explains this in the top of your admin page. However, the code that you will see there might need a “little bit” of adaptation to work with your particular NginX installation.

    This is NginX-specific. Apache can be configured automatically by manipulating the .htaccess file, but NginX cofiguration files must be edited by hand.

    Let me know if this helps or if you need any further assistance.

    Cheers,
    Takis

    Thread Starter josemmvic

    (@josemmvic)

    Thanks for the quick answer.

    Do you mean I have to include this in the .htaccess?

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

    Regards.
    Jose.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, Jose,

    Yes, this is what I mean, but it has to be inserted at the correct point of your server configuration file and you might just have to tweak it a bit in order to comply with your particular setup.

    When this works, a url like https://www.1luz.com/wp-content/uploads/2015/07/welcome1.jpg?debug=true (note the ?debug=true at the end of the url) will not produce an image but some debugging output. This will be the first good step to verify that the plugin is actually working as it is supposed to.

    (Sorry for these complications, but this is the best the web technology can do at this point.)

    Cheers,
    Takis

    Thread Starter josemmvic

    (@josemmvic)

    Thanks again for you time.

    I understand not everything can be done. I will try.

    Best regards

    Plugin Author Takis Bouyouris

    (@nevma)

    I’d love to know if things worked out, though, or if had any implications!

    🙂

    Cheers,
    Takis

    Thread Starter josemmvic

    (@josemmvic)

    It worked!

    Thanks for your help.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, Jose,

    This is great to hear! Just for the sake of history, could you post exactly what you entered and where? You can disguise the actual paths of course! But, I have found that NginX installations have certain variations because of the way each server admin has set them up and I think it would help future users to know all possible circumstances.

    Thanks in advance!

    Cheers,
    Takis

    Thread Starter josemmvic

    (@josemmvic)

    To be honest, the plugin worked without any change, but I think other Cache plugins didn’t show the correct images as the content was cached. It took a few hours to get most images changed, I don’t know why.

    Actually, the plugin seems to work fine, but it’s not very good for me as most of the images I use are backgrounds in css inline style, and those didn’t get changed.

    Thanks.

    Plugin Author Takis Bouyouris

    (@nevma)

    Oh, but images in CSS backgrounds should be changed as well (unless something really weird is happening)! Could you perhaps point me at a couple of them, so that I can take a look?

    Thread Starter josemmvic

    (@josemmvic)

    Sorry, I deactivated the plugin. I wanted it basically to improve the speed of loading as my web is not ranking so well in Google as it used to. But even with the plugin, the speed, acording to Google, did not improve, so I decided not no use the plugin.

    Anyway, I’m very grateful for your help.

    Regards.
    J.

    Plugin Author Takis Bouyouris

    (@nevma)

    No worries!

    Just for the sake of the argument and so that everybody knows this, the Adaptive Images will not help you with Google if by this you mean Pagespeed! Pagespeed is not a speed measuring tool. It is just a set of good practices. However, it will help you with Google in a very different way! Users will feel that the website loads faster and they will probably engage with the website for longer time and this is something that the Google Analytics does indeed take into account.

    Thank you for your cooperation! 🙂

    Cheers,
    Takis

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

The topic ‘Not working’ is closed to new replies.