Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing in the ai-cache #178

Open
cerberus478 opened this issue Mar 11, 2015 · 6 comments
Open

Nothing in the ai-cache #178

cerberus478 opened this issue Mar 11, 2015 · 6 comments

Comments

@cerberus478
Copy link

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
Copy link

staabm commented Mar 11, 2015

did you check read/write permissions of the folder?

@cerberus478
Copy link
Author

yep and its all 777

@staabm
Copy link

staabm commented Mar 11, 2015

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
Copy link
Author

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
Copy link

staabm commented Mar 11, 2015

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

@MattWilcox
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants