Cache stays empty…
-
According to the debug info, everything is fine but actually the plugin doesn’t seem to do anything. The Cache stays empty. I tried to reupload the images, called the site from multiple devices…
Does the plugin crawl through subfolders of “wp-content/uploads”? Thought it might need some time to process the images but 1 day later still no change.
Any advise?
✔ PHP GD library is installed. ✔ Image cache directory has been created. /srv/www/web/releases/20150917142045/public/wp-content/cache/adaptive-images => drwxr-xr-x ✔ Installation .htaccess file is setup OK. /srv/www/web/releases/20150917142045/public/.htaccess => -rw-r--r-- ❖ Adaptive images settings dump: array(12) { ["resolutions"]=> array(4) { [0]=> int(1024) [1]=> int(640) [2]=> int(480) [3]=> int(320) } ["landscape"]=> 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(90) ["hidpi"]=> bool(false) ["cdn-support"]=> bool(false) ["version"]=> string(5) "0.6.3" ["sanitized"]=> bool(true) }
-
Hi, there,
Thanks for the info above! Could you tell me the url of the website with the plugin enabled so I can check it out. Normally, if one accesses the website from a mobile device the cache will be populated with images once they are accessed.
Cheers,
TakisI have the same problem. Everything seems to be working fine, but none of the images are being cached. I have accessed the website from mobile multiple times.
✔ PHP GD library is installed. ✔ Image cache directory has been created. /home/mysite/public_html/wp-content/cache/adaptive-images => drwxr-xr-x ✔ Installation .htaccess file is setup OK. /home/mysite/public_html/.htaccess => -rw-r--r-- ❖ Adaptive images settings dump: array(12) { ["resolutions"]=> array(3) { [0]=> int(1024) [1]=> int(640) [2]=> int(480) } ["landscape"]=> bool(true) ["hidpi"]=> 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(100) ["sharpen-images"]=> bool(true) ["watch-cache"]=> bool(true) ["browser-cache"]=> float(180) ["cdn-support"]=> bool(false) ["version"]=> string(5) "0.6.3" ["sanitized"]=> bool(true) }PHP Info (I removed the site name)
Web Server Apache PHP 5.4.36 PHP Time Limit 30 PHP Memory Limit 256M PHP Post Max Size 8M PHP Upload Max Size 2M PHP Max Input Vars 3000 PHP Display Errors 1 PHP Error Log MySQL 5.6.23 MySQL Ext/mysqli No MySQL Table Prefix eb_ MySQL DB Charset utf8 WordPress 4.3.1 WP Multisite No WP Debug Mode No WP Site url http://mysite.com WP WP Home url http://mysite.com WP Permalinks /%category%/%postname%/ WP content dir /home/mysite/public_html/wp-content WP content url http://mysite.com/wp-content WP plugin dir /home/mysite/public_html/wp-content/plugins WP plugin url http://mysite.com/wp-content/plugins WP Locale en_US WP Memory Limit 40M WP Max Upload Size 2mb WP Active plugins ManageWP - Worker v.4.1.13 by ManageWP Gravity Forms v.1.9.13 by rocketgenius Advanced Custom Fields: Gravity Forms Field v.1.0.0 by @adam_pope of @stormuk Advanced Custom Fields: Flexible Content Field v.1.1.1 by Elliot Condon Advanced Custom Fields: Gallery Field v.1.1.1 by Elliot Condon Adaptive Images for WordPress v.0.6.3 by Nevma Admin Menu Editor v.1.4.5 by Janis Elsts Advanced Custom Fields v.4.4.3 by Elliot Condon AJAX Thumbnail Rebuild v.1.12 by junkcoder Disqus Comment System v.2.84 by Disqus Enhanced Media Library v.2.0.4.8 by wpUXsolutions EWWW Image Optimizer v.2.5.1 by Shane Bishop iThemes Sync v.1.7.4 by iThemes Limit Login Attempts v.1.7.1 by Johan Eenfeldt Login Logo v.0.7 by Mark Jaquith mobble v.1.4 by Scott Evans Page Links To v.2.9.6 by Mark Jaquith Regenerate Thumbnails v.2.2.4 by Viper007Bond Rename wp-login.php (unmaintained) v.2.5.1 by avryl Simple Google Analytics v.2.2.2 by Jerome Meyer Simple Page Ordering v.2.2.4 by Jake Goldman, 10up Yoast SEO v.2.3.5 by Team Yoast WP-Mail-SMTP v.0.9.5 by Callum MacdonaldHello there,
If all seem to be working well, there is still one edge case. I se
e that you have the “HiDPI” and “landscape” options enabled. This means that the plugin checks the landscape width of the mobile device and if it is retina it tries to send an appropriate image.So, if the landscape width of the device you are checking is 600px and it is a HiDPI screen, with a device pixel ratio equal to 2, then the plugin will try to serve images of sizes optimized for 2*600=1200px. But the biggest breakpoint you have set is 1024! So, if the original image is smaller than 1024px, then the plugin it will not resize it. If the original image is bigger than 1024, then the plugin will not try to resize it either. Could this be your case?
The best way to check your website with our plugin is with a testing tool like webpagetest.org (requesting a mobile device of course) or simply via Chrome Developer Tools in mobile device mode enabled.
I could try to debug it for you but I need to know the website url.
Cheers,
TakisI will give it another try. I was using chrome development tools to test it and also using the iphone/ipad simulator from xcode.
Alright, then.
Do let me know how it goes and if there is anything else I can do for you!
Ok,
I’m using this at a local XAMPP installation, and it appears that the cache is not being populated. I tried accessing with a lower resolution computer, with a tablet and two phones, to no avail.
Also, inspecting from lower resolution browser and checking the network graph, the server is indeed serving the full resolution image.
And as a side question: do you think this will conflict with W3-Total-Cache?
ebug 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. C:\XAMPP\apps\wordpress\htdocs/wp-content/cache => drwxrwxrwx ✔ Installation .htaccess file is setup OK. C:/XAMPP/apps/wordpress/htdocs/.htaccess => -rw-rw-rw- ❖ Adaptive images settings dump: array(12) { ["resolutions"]=> array(6) { [0]=> int(1920) [1]=> int(1600) [2]=> int(1280) [3]=> int(1024) [4]=> int(640) [5]=> int(480) } ["cache-directory"]=> string(21) "cache/adaptive-images" ["watched-directories"]=> array(1) { [0]=> string(18) "wp-content/uploads" } ["jpeg-quality"]=> int(80) ["sharpen-images"]=> bool(true) ["watch-cache"]=> bool(true) ["browser-cache"]=> float(180) ["landscape"]=> bool(false) ["hidpi"]=> bool(false) ["cdn-support"]=> bool(false) ["version"]=> string(5) "0.6.3" ["sanitized"]=> bool(true) }ystem information Web Server Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 PHP 5.6.8 PHP Time Limit 0 PHP Memory Limit 256M PHP Post Max Size 8M PHP Upload Max Size 2000M PHP Max Input Vars 1000 PHP Display Errors 1 PHP Error Log C:\XAMPP\php\logs\php_error_log MySQL 5.6.24 MySQL Ext/mysqli Yes MySQL Table Prefix wp_ MySQL DB Charset utf8 WordPress 4.3.1 WP Multisite No WP Debug Mode No WP Site url http://192.168.1.103/wordpress WP WP Home url http://192.168.1.103/wordpress WP Permalinks /%postname%/ WP content dir C:\XAMPP\apps\wordpress\htdocs/wp-content WP content url http://192.168.1.103/wordpress/wp-content WP plugin dir C:\XAMPP\apps\wordpress\htdocs/wp-content/plugins WP plugin url http://192.168.1.103/wordpress/wp-content/plugins WP Locale pt_BR WP Memory Limit 40M WP Max Upload Size 8mb WP Active plugins Adaptive Images for WordPress v.0.6.3 by Nevma All-in-One WP Migration v.4.3 by ServMask Better Delete Revision v.1.6.1 by Galerio & Urda Formulário de contato 7 v.4.3 by Takayuki Miyoshi Desativar Comentários v.1.3.2 by Samir Shah Easy Lightbox WordPress v.1.0 by Lazy Persons Hide Admin Bar v.0.2.8 by Shelby DeNike (sd3labs.com) Salient Visual Composer v.4.3.5 by Michael M - WPBakery.com | Modified by ThemeNectar Media Rename v.3.2.3 by ShadowsDweller Velvet Blues Update URLs v.3.2.4 by VelvetBlues.comUnfortunately I could only get it to work by turning off the HiDPI option.
Mine doesn’t work no matter the options I choose.
@dan if turning off the HiDPI option worked for you, then it is most certain that the cause was what I described to you in my first reply to you. The plugin was working all along but the requests you were making did not result in actually “requesting” smaller versions of the original images.
@shirkit I believe your problem has something to do with your local environment. Could you try and test it in a real online environment/hosting? There I will be able to provide more help, provided I know the url!
The issue is Nevma I don’t normally put things into production if they not pass development =\ But I don’t think WP Adaptive Images can destroy my website. I’ll do this: when I deploy the new version, I’ll get back here to post an update. Probably Tuesday or Wednesday.
Well, I cannot blame you for that, of course. You are right to do that.
However in your local environment many things can be different or non standard (perhaps the GD library in Apache, or the way the .htaccess files are handled, just throwing ideas now) and it is impossible for me to give you actual help there. Very sorry about that. 🙁
Indeed I believe that the plugin will not break your website if you try it in production for a few hours. And, please, do make sure that you do not have the same case as @dan above!
I’ll be glad to help whenever you are ready. 🙁
Cheers,
Takis@dan if turning off the HiDPI option worked for you, then it is most certain that the cause was what I described to you in my first reply to you. The plugin was working all along but the requests you were making did not result in actually “requesting” smaller versions of the original images.
I am not sure how to fix it.
Example: I have a banner image about 2400px wide. On an Iphone5 this image should be resized even with the HiDPI option turned on. But it doesn’t.
Hmm, well iPhone5 has a height of 568 CSS pixel and at a x2 density this gives us 1136px. If you have the “Bigger dimension” option set to true then the plugin will try to serve an image at least that big! If your biggest breakpoint is 1024px then the original image will be served and no image will be created and used in the cache!
You can either set some bigger breakpoints or disable the “Bigger dimension” option. It depends on whether you need to serve a x2 version to retina devices or not!
Is this clear to you, or would you like me to explain it some more? I know that the combinations are not always very straight to understand. 🙂
I’ve tried to deploy to my production enviornment, and I get the same results. The folder is never created. Tried on 2 smartphones and on Mobile Mode (on Chrome and Firefox) using webtools. No images are created or cached.
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. /data/wwwroot/atlantida/wp-content/cache => drwxr-xr-x ✔ Installation .htaccess file is setup OK. /data/wwwroot/atlantida/.htaccess => -rw-r--r-- ❖ Adaptive images settings dump: array(12) { ["resolutions"]=> array(6) { [0]=> int(1600) [1]=> int(1280) [2]=> int(1024) [3]=> int(800) [4]=> int(640) [5]=> int(480) } ["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) ["cdn-support"]=> bool(false) ["version"]=> string(6) "0.6.42" ["sanitized"]=> bool(true) }System information Web Server nginx/1.9.9 Document Root /data/wwwroot/atlantida PHP 5.6.16 PHP Time Limit 0 PHP Memory Limit 256M PHP Post Max Size 50M PHP Upload Max Size 50M PHP Max Input Vars 1000 PHP Display Errors No PHP Error Log MySQL 5.5.5-10.1.9-MariaDB-log MySQL Ext/mysqli Yes MySQL Table Prefix wp_ MySQL DB Charset utf8mb4 WP 4.4 WP Multisite No WP Debug Mode No WP Site url http://www.atlantidastudios.com WP WP Home url http://www.atlantidastudios.com WP Permalinks /%postname%/ WP home path /data/wwwroot/atlantida/ WP content dir /data/wwwroot/atlantida/wp-content WP plugin dir /data/wwwroot/atlantida/wp-content/plugins WP content url http://www.atlantidastudios.com/wp-content WP plugin url http://www.atlantidastudios.com/wp-content/plugins WP Locale pt_BR WP Memory Limit 40M WP Max Upload Size 50mb WP Active plugins Adaptive Images for WordPress v.0.6.42 by Nevma All-in-One WP Migration v.4.15 by ServMask Formulário de contato 7 v.4.3.1 by Takayuki Miyoshi Desativar Comentários v.1.3.2 by Samir Shah Easy Lightbox WordPress v.1.0 by Lazy Persons Hide Admin Bar v.0.2.9 by Shelby DeNike (sd3labs.com) Salient Visual Composer v.4.7.4 by Michael M - WPBakery.com | Modified by ThemeNectar Remove query strings from static resources v.1.3 by Your WP Expert SEO Ultimate v.7.6.5.8 by SEO Design Solutions W3 Total Cache v.0.9.4.1 by Frederick Townes XML Sitemap & Google News feeds v.4.5 by RavanH WP MU plugins@shirkit, it seems that you are using Nginx. Unfortunately Nginx is not supported out of the box. So sorry about that. 🙁 There are some custom configurations for Nginx, that you may add, which have been provided in the forum by some other member, if you wish to try them out!
The topic ‘Cache stays empty…’ is closed to new replies.