• This plugin looks awesome but I can’t seem to get it to work! The cache folder hasn’t been created yet.

    Here is the debug info:

    ✔ PHP GD library is installed.

    ✖ Image cache directory has not been created.

    But this is probably because the cache has not been accessed yet.
    After accessing your website from a mobile device the directory should be automatically created.

    /home/112546.cloudwaysapps.com/gebkmcbgcj/public_html/wp-content/cache => drwxrwxr-x

    ✔ Installation .htaccess file is setup OK.

    /home/112546.cloudwaysapps.com/gebkmcbgcj/public_html/.htaccess => -rw-rw-r–

    ❖ Adaptive images settings dump:

    array(14) {
    [“resolutions”]=>
    array(3) {
    [0]=>
    int(1024)
    [1]=>
    int(640)
    [2]=>
    int(480)
    }
    [“landscape”]=>
    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)
    [“hidpi”]=>
    bool(false)
    [“version”]=>
    string(6) “0.6.64”
    [“sanitized”]=>
    bool(true)
    [“wp-content-dir”]=>
    string(64) “/home/112546.cloudwaysapps.com/gebkmcbgcj/public_html/wp-content”
    [“wp-content-url”]=>
    string(42) “https://vaporizersdirect.com.au/wp-content”
    }

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

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

    (@nevma)

    Hello, my friend,

    Thank you for reaching out to us!

    First of all, I see that your host is using Nginx. Now there are two possible situations here:

    1. Nginx is your main application server.

    In this case the server configuration file needs to be updated manually, because Nginx does not support automatic configuration of its configuration files, like Apache and the htaccess file. If this is your case, then you should consult your server admin on how to do this and you need to add the special bit of code for Nginx which the Adaptive Images plugin proposes to you when you save its settings.

    2. Nginx is used as a caching server or reverse-proxy server.

    In this case your website actually behaves as if behind a CDN. I see that you already have the CDN support option enabled in the Adaptive Images settings page, so this probably your case already. However, your Nginx needs to be configured so that it does not strip away url GET parameters from images. For instance, an image url like this one https://vaporizersdirect.com.au/wp-content/uploads/2017/09/australias-vaporizer-shop.jpg?resolution=480,1 should retain the ?resolution=480,1 at the end of it when the request for that image is passed from Nginx to your origin server. If this does not make sense to you, then you should probably contact your server admin about it.

    Bear in mind that CDN support is still a bit experimental in Adaptive Images unfortunately. It doesn’t break anything but sometimes not all images get the chance to be resized and thus are served in their original dimensions. However, most -if not all- the images are indeed resized as expected. Also, there are some CDN cases which are totally incompatible with Adaptive Images, for instance when images are served from a different subdomain.

    Let me know how it goes and if you need any further assistance!

    Cheers,
    Takis

    Thread Starter scullyv

    (@scullyv)

    My host has limited access to nginx. Does that mean I can’t use it? The proper code is in the htacess file.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    The first thing you need to do is find out if your setup is according to case 1 or case 2, as I explained them above.

    If it is case 1, then you definitely need deeper access to your Nginx installation and your host is the only one who can provide it!

    If it is case 2, then all you need to is set the necessary settings that I have described (also bear in mind the things I noted there about CDNs).

    Cheers,
    Takis

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

The topic ‘Plugin not working?’ is closed to new replies.