• Hi,

    I installed your plugin and added it to my Nginx.conf

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

    I have a couple of questions.

    1. Every time I save plugin settings, I’m seeing “If you are using NginX, you probably need such a bit of code in your configuration file:” even though I already did it. Is it default message?

    2. In dubug info, I’m getting an error saying “cache dir is not created in wp-content” But it is already created earlier by other plugins.
    Seems plugin is not working on my site (https://www.geekdashboard.com/)

    Any solutions?

    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.
    
    /var/www/html/wp-content/cache => drwxr-sr-x
    ? Installation .htaccess file is setup OK.
    /var/www/html/.htaccess => -rwxrwxr-x
    ? Adaptive images settings dump:
    array(14) {
      ["resolutions"]=>
      array(3) {
        [0]=>
        int(1024)
        [1]=>
        int(640)
        [2]=>
        int(480)
      }
      ["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)
      ["landscape"]=>
      bool(false)
      ["hidpi"]=>
      bool(false)
      ["version"]=>
      string(6) "0.6.62"
      ["sanitized"]=>
      bool(true)
      ["wp-content-dir"]=>
      string(24) "/var/www/html/wp-content"
      ["wp-content-url"]=>
      string(40) "https://www.geekdashboard.com/wp-content"
    }

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

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

    (@nevma)

    Hello, my friend,

    Thank you for using our plugin and fore reaching out to us!

    1. Yes, this is a default message because the plugin does not have access to your NginX configuration in order to automatically make this check. In Apache this is done via the htaccess files which are a lot more accessible.

    2. It seems that this message is telling the truth, but you probably did not suspect yet why. I see that your images are served via a CDN (like https://gdzone-geekdashboardco.netdna-ssl.com/wp-content/uploads/2017/09/samsung-galaxy-note-8-india-launch-400×225.jpg). Unfortunately, this is a very special case, because CDNs take care of image requests on their own, so usual the image requests never reach your WordPress installation and our plugin.

    So, yes, it seems that your cache directory has not been created yet, because there has been no need for this yet. And the reason for this is that the CDN has been taking care of your images independently.

    Now, we do have a special “CDN support” mode, which you can find in the plugin settings page, but it is an experimental feature. “Experimental” in this case means that a) it cannot work with all kinds of CDNS and b) when it works it might not be able to resize all images and some are delivered in their original sizes.

    To sum it all up, I am afraid you are under case (a) above: you are using a CDN that makes it impossible for the Adaptive Images plugin to work.

    Let me know if there is anything more I can do for you.

    Cheers,
    Takis

    Thread Starter Amar Ilindra

    (@amarilindra)

    Hi Nevma,

    Thanks for the quick reply.

    I tried debugging more and got few more questions:

    1. I’m using MaxCDN as per details you mentioned, MaxCDN should work. Am I doing something wrong?

    2. I tried disabling the CDN and still, I got the same error in debug info. I guess (hope) the problem is with something else not with CDN.

    Is there any way we can debug in deep as you already tested MaxCDN and it should work in my case too.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    No you are not doing anything wrong. The message in the plugin settings page and the CDN issue are two different things.

    So, unfortunately, the message cannot be removed, but it is there for informational purposes only. And, as I said before, this has nothing to do with whether you are actually using a CDN or not.

    I see that the CDN is now enabled again. Do you think you could disable it for a little bit so that I can take a look again?

    Cheers,
    Takis

    Thread Starter Amar Ilindra

    (@amarilindra)

    Hi,

    Can you help me over email or chat? I’m sorry I can not disable CDN for a very long time.

    I tried many things from last 4 hours but didn’t find luck.

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, yes, feel free to email me here: info [at] nevma [dot] gr.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image cache directory has not been created.’ is closed to new replies.