Comments (1)
OK, the firs thing to check is that your .htaccess is working correctly. Make sure you've got a test.jpg file in the same folder that your .htaccess file is. Open up the .htaccess file and replace
RewriteRule .(?:jpe?g|gif|png)$ adaptive-images.php
with
RewriteRule .(?:jpe?g|gif|png)$ test.jpg
If your htaccess is working then every single image on your site will become the test.jpg image. If not, then there's something wrong with your htaccess file or Apache configuration.
Assuming that it works, change it back and then go into the PHP. At the top of the PHP file (but inside the PHP tags) write the line:
sendErrorImage("there is a problem");
Reload your page - all images should now be replaced with a black image that contains the error message "there is a problem". If that doesn't happen, then either you've not got the files in the right place and so the htaccess file is pointing at a non-existent file, or PHP isn't working properly.
If that did work and you got a black error image, then it's a case of using that to debug your server and find out where in the code things are breaking.
from adaptive-images.
Related Issues (20)
- Not getting cookie value for user screen size? HOT 2
- Breaks when running locally on localhost HOT 1
- can't get AI to work
- can`t get AI to work
- Only header banner image is being cached or scaled HOT 1
- How to get the Smallest "thumb" and Lazyload?
- How to set the dimensions for each breakpoint?
- WordPress multisite integration
- Background-image not working... HOT 3
- Not works with my htaccess HOT 4
- ai-cache folder not showing up HOT 3
- No images showing on live server HOT 1
- 403 error edit: page only loads on https HOT 2
- .htaccess makes no images display
- Suggested Settings HOT 1
- Images too contrasted
- Not resizing for mobile
- feature request: don't use cookies (privacy)
- PHP Version 7.2
- Abandonware? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adaptive-images.