MattWilcox / Adaptive-Images

Automatically adapts your existing HTML images for mobile devices. No mark-up changes needed.
http://adaptive-images.com/
1.76k stars 229 forks source link

Nothing in the ai-cache #178

Open cerberus478 opened 9 years ago

cerberus478 commented 9 years ago

I've installed AI correctly and it's able to create the ai-cache folder in the correct folder, but I'm not able to get the resolution folders with the images in there. No matter what I've tried the ai-cache folder is empty.

I'm not using wordpress

staabm commented 9 years ago

did you check read/write permissions of the folder?

cerberus478 commented 9 years ago

yep and its all 777

staabm commented 9 years ago

which webserver? which php version? does your webserver has mod_rewrite? did you copy the bunlded .htaccess into your docroot? does your apache allow settings originated from .htaccess files?

cerberus478 commented 9 years ago

I'm on my localhost which is MAMP. mod_rewrite is enabled. I only copied the section with

<IfModule mod_rewrite.c>

  # Adaptive-Images -----------------------------------------------------------------------------------

  # Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
  # RewriteCond %{REQUEST_URI} !some-directory
  # RewriteCond %{REQUEST_URI} !another-directory

  # Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories
  # to adaptive-images.php so we can select appropriately sized versions
  RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php 

  # END Adaptive-Images -------------------------------------------------------------------------------
</IfModule>

in my htacces after the RewriteEngine on.

staabm commented 9 years ago

Is AllowOverride properly configured? otherwise apache will not take this .htacess into account.

MattWilcox commented 9 years ago

Have you manually set the cookie value to a low number, suxh as 320? Most people that have this problem haven't realised/read/understood that resizing the browser has no effect - AI is based on the screen size; which doesn't change. To test AI is being executed you can manually set the cookie to a lower size.