• I’m currently having an issue with Adaptive imagine plug in. I’m currently using Amazon Web server to host WordPress through an application software bitnami.

    My website: https://ec2-54-88-212-148.compute-1.amazonaws.com

    My homepage slider imagine is unable to scale through different browsers and mobile device. I’m fairly new to website designed and still consider a novice. I’ve attached my change log. Is there any way I can workaround this? or a solution to my problem?

    https://i.imgsafe.org/41281c90ef.png

    Thanks

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

    (@nevma)

    Hello, there,

    Thank you for reaching out to us!

    Could you please try the following things, so you can help me debug the problem?

    1. Send me the Adaptive Images part of your htaccess file to see if it is actually updated correctly.

    2. Create the cache folder manually /opt/bitnami/apps/wordpress/htdocs/wp-content/cache/adaptive-images and see if it works. Most probably the Amazon web server does not allow our plugin to create this folder automatically. It does not even let our plugin check the filesystem permissions of that folder (see here https://wppusher.com/)!

    Cheers,
    Takis

    Thread Starter vinh359

    (@vinh359)

    Hello Takis,

    Thank you for taking the time out of your day to address my problem.
    The adapt image htaccess file is this?

    1. https://tinypic.com/r/afhcgk/9

    I’m currently a novice how would you be able to manually create a cache folder?
    thanks
    Vincent

    Plugin Author Takis Bouyouris

    (@nevma)

    Hi, Vincent,

    First of all, forgive me for putting the wrong link in my previous reply. I pasted a link to WPpusher instead of https://prnt.sc/dtunq0 where I wanted to show how “the Amazon web server does not allow our plugin to create this folder automatically. It does not even let our plugin check the filesystem permissions of that folder”.

    Now, the image you send me in your reply shows the result of the plugin Print debug button and is not very helpful unfortunately. What we need to do is figure out what the filesystem rights are in the directory where the cache folder was supposed to be created. Do you think you could do that?

    Apart from that you can always try and create that folder manually through your (S)FTP. The folder I mentioned in my first comment is inside you WordPress installation, so you should be able to navigate there an create it.

    Let me know how it goes!

    Cheers,
    Takis

    Thread Starter vinh359

    (@vinh359)

    Hey I was able to config my settings and by this command:
    sudo chown -R daemon:bitnami /opt/bitnami/apps/wordpress/htdocs

    Then after that I used the plug in to create the file for me .

    Thanks for the help!

    Thread Starter vinh359

    (@vinh359)

    I’m a little confused on how this plug in works? My images on my homepage slider is currently off size compare to the mobile device? Is it suppose to make it the picture view able or does it create a copy of the imagine to mobile size?

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    If what it took was to run sudo chown -R daemon:bitnami /opt/bitnami/apps/wordpress/htdocs then this means that your WordPress isntallation was previously under a different user in the Linux filesystem. I am glad you were able to solve your problem, but you have to be sure that the user daemon and the user group bitnami is indeed the correct one for the general health of your website. I am not saying there is a problem with that, I just want you to make sure you are doing the right thing.

    If you got this advice from an official Amazon or Bitnami tutorial, then all is well! Maybe you can point us to it, because I believe that other users in this forum might need it as well.

    Now, about your last question, what our plugin does is to transparently create downsized versions of your images, according to each device size, in order to minimise download times, especially in mobile devices. If you could point me to your installation I could check if it is actually working. In the plugin description page you can find a Youtube video that explains how you can check it out yourself, as well.

    Let me know if I can help any further in the future!

    Cheers,
    Takis

    Thread Starter vinh359

    (@vinh359)

    https://community.bitnami.com/t/file-premission/46450/7
    Heres a link in creating the file manually through bitnami
    Below is what my print out reads…

     PHP GD library is installed.
    
    ? Image cache directory has been created.
    
        /opt/bitnami/apps/wordpress/htdocs/wp-content/cache/adaptive-images => drwxr-xr-x
    
    ? Installation .htaccess file is setup OK.
    
        /opt/bitnami/apps/wordpress/htdocs/.htaccess => -rw-r--r--
    
    ? Adaptive images settings dump:
    
        array(12) {
          ["resolutions"]=>
          array(6) {
            [0]=>
            int(1280)
            [1]=>
            int(1024)
            [2]=>
            int(1000)
            [3]=>
            int(960)
            [4]=>
            int(768)
            [5]=>
            int(600)
          }
          ["landscape"]=>
          bool(true)
          ["hidpi"]=>
          bool(true)
          ["cache-directory"]=>
          string(21) "cache/adaptive-images"
          ["watched-directories"]=>
          array(5) {
            [0]=>
            string(18) "wp-content/uploads"
            [1]=>
            string(17) "wp-content/themes"
            [2]=>
            string(18) "wp-admin/uploadphp"
            [3]=>
            string(23) "wp-content/uploads/2017"
            [4]=>
            string(39) "wp-content/cache/adaptive-images-moblie"
          }
          ["jpeg-quality"]=>
          int(100)
          ["sharpen-images"]=>
          bool(true)
          ["watch-cache"]=>
          bool(true)
          ["browser-cache"]=>
          float(180)
          ["cdn-support"]=>
          bool(false)
          ["version"]=>
          string(6) "0.6.60"
          ["sanitized"]=>
          bool(true)
        }
    
    

    Calculate cache size

    Total files in the adaptive images cache: 0

    Total directories in the adaptive images cache: 0

    I noticed that when I clear the cache.. I never had any images to begin with placed into those files..
    Total size of the adaptive images cache: 0′

    • This reply was modified 8 years, 1 month ago by vinh359.
    Plugin Author Takis Bouyouris

    (@nevma)

    Thank you very much for the link!

    Your settings seem good and healthy, as well.

    It is totally natural for your cache to be empty in the beginning or when you clear it. The cache is being populated when the images are actually being requested by the users.

    Cheers,
    Takis

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cache folder not created, Permission error’ is closed to new replies.