Images not shown on mobile
-
Hi Takis,
as written on facebook, the images are not shown on mobile devices. My debug info:
? PHP GD library is installed.
? Image cache directory has been created.
/www/htdocs/xxx/xxx/wp-content/cache/adaptive-images => drwxr-xr-x
? Installation .htaccess file is setup OK.
/www/htdocs/xxx/xxx/.htaccess => -rw-rw-rw-
? Adaptive images settings dump:
array(9) {
[“resolutions”]=>
array(3) {
[0]=>
int(1024)
[1]=>
int(640)
[2]=>
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(65)
[“sharpen-images”]=>
bool(true)
[“watch-cache”]=>
bool(true)
[“browser-cache”]=>
float(180)
[“version”]=>
string(5) “0.3.5”
[“sanitized”]=>
bool(true)
}
-
Hi Jonas,
Thanks for the info!
Hmm, everything seems to be in order, so far. May I know the url of the website?
Sure, it is jotiga.de
It seems that the image resizing script (/wp-content/plugins/adaptive-images/adaptive-images/ai-main.php) is not running at all!
This is weird because it is supposed to be called from within the .htaccess file, which seems to be correctly set up.
Could you 1) run the diagnostics button from the plugin settings page and send me the output and 2) send me the contents of your .htaccess file.
(That is if there are is no sensitive information in there, of course!)
All right, hope you can catch that bug or problem ??
Diagnostics:
PHP
5.4.40-nmm1
MySQL
5.5.43-nmm1-log
WordPress
4.2.2
Multisite
No
Debug Mode
No
Table Prefix
wp_
Web Server
Apache
Site url
https://jotiga.de
Home url
https://jotiga.de
Permalinks
/%postname%/
PHP Error Log
syslog
Ext/mysqli
No
WP Locale
de_DE
DB Charset
utf8
PHP Time Limit
30
WP Memory Limit
40M
PHP Memory Limit
256M
WP Max Upload Size
200mb
PHP Post Max Size
200M
PHP Upload Max Size
200M
PHP Max Input Vars
1000
PHP Display Errors
1
Active plugins
LayerSlider WP v.5.3.2 by Kreatura Media
Adaptive Images for WordPress v.0.3.5 by Nevma
All In One Schema.org Rich Snippets v.1.2.0 by Brainstorm Force
Cachify v.2.2.2 by Sergej Müller
Custom Permalinks v.0.7.20 by Michael Tyson
Duplicator v.0.5.22 by LifeInTheGrid
Fusion Core v.1.6.2 by ThemeFusion
Google Analytics by Yoast v.5.4.2 by Team Yoast
InfiniteWP – Client v.1.3.13 by Revmakx
Ninja Formulare v.2.9.18 by Die WP-Ninjas
Responsive Lightbox v.1.5.1 by dFactory
Revolution Slider v.4.6.5 by ThemePunch
Shortcodes Ultimate v.4.9.7 by Vladimir Anokhin
Structured Social Profiles v.1.0.1 by Alex Moss
WordPress SEO v.2.1.1 by Team Yoast.htaccess:
# BEGIN Adaptive Images
#=======================<IfModule mod_rewrite.c>
RewriteEngine On
# Watched directories
RewriteCond %{REQUEST_URI} /wp-content/uploads [OR]
RewriteCond %{REQUEST_URI} /wp-content/themes# Redirect images through the adaptive images script
RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/adaptive-images/adaptive-images/ai-main.php [L]</IfModule>
# END Adaptive Images
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://jotiga.de/$1 [R=301,L]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress<IfModule mod_php5.c>
php_value memory_limit 400M
</IfModule># gzip Compression if availiable
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule># Deflate Compression by MimeType
<IfModule mod_deflate.c>
<FilesMatch “\.(js|jpg|jpeg|gif|png|css)$”>
ExpiresActive on
ExpiresDefault “access plus 1 month”
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>RewriteEngine on
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*semalt\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Darodar\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Priceg\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*7makemoneyonline\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Buttons-for-website\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Ilovevitaly\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Blackhatworth\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Econom\.co [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Iskalko\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Lomb\.co [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Lombia\.co [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*hulfingtonpost\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*cenoval\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*o\-o\-6\-o\-o\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*humanorightswatch\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*simple\-share\-buttons\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*sharebutton\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*s\.click\.aliexpress\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*social\-buttons\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*anticrawler\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*site12\.social\-buttons\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*adcash\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*adviceforum\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*anticrawler\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*blackhatworth\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*cenokos\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*cityadspix\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*edakgfvwql\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*gobongo\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*iskalko\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*kambasoft\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*luxup\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*myftpupload\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*prodvigator\.ua [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*resellerclub\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*savetubevideo\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*screentoolkit\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*seoexperimenty\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*slftsdybbg\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*socialseet\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*superiends\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*vodkoved\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*websocial\.me [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*ykecwqlixx\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*76brighton\.co\.uk [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*paparazzistudios\.com\.au [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*powitania\.pl [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*sharebutton\.net [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*tasteidea\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*descargar\-musica\-gratis\.net [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*torontoplumbinggroup\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*cyprusbuyproperties\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*4webmasters\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*ranksonic\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*best\-seo\-solution\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*get\-free\-traffic\-now\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*googlsucks\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Buttons\-for\-your\-website\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*Best\-seo\-offer\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*offers\.bycontext\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*www1\.social\-buttons\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*website\-errors\-scanner\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*free\-share\-buttons\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*theguardlan\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*buy\-cheap\-online\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*netvibes\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*guardlink\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*securesuite\.co\.uk [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*securesuite\.net [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*sitevaluation\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?:\/\/([^.]+\.)*forum20\.smailik\.org [NC]
RewriteRule .* – [F]Sure, diagnostics:
PHP
5.4.40-nmm1
MySQL
5.5.43-nmm1-log
WordPress
4.2.2
Multisite
No
Debug Mode
No
Table Prefix
wp_
Web Server
Apache
Site url
https://jotiga.de
Home url
https://jotiga.de
Permalinks
/%postname%/
PHP Error Log
syslog
Ext/mysqli
No
WP Locale
de_DE
DB Charset
utf8
PHP Time Limit
30
WP Memory Limit
40M
PHP Memory Limit
256M
WP Max Upload Size
200mb
PHP Post Max Size
200M
PHP Upload Max Size
200M
PHP Max Input Vars
1000
PHP Display Errors
1
Active plugins
LayerSlider WP v.5.3.2 by Kreatura Media
Adaptive Images for WordPress v.0.3.5 by Nevma
All In One Schema.org Rich Snippets v.1.2.0 by Brainstorm Force
Cachify v.2.2.2 by Sergej Müller
Custom Permalinks v.0.7.20 by Michael Tyson
Duplicator v.0.5.22 by LifeInTheGrid
Fusion Core v.1.6.2 by ThemeFusion
Google Analytics by Yoast v.5.4.2 by Team Yoast
InfiniteWP – Client v.1.3.13 by Revmakx
Ninja Formulare v.2.9.18 by Die WP-Ninjas
Responsive Lightbox v.1.5.1 by dFactory
Revolution Slider v.4.6.5 by ThemePunch
Shortcodes Ultimate v.4.9.7 by Vladimir Anokhin
Structured Social Profiles v.1.0.1 by Alex Moss
WordPress SEO v.2.1.1 by Team Yoasthtaccess:
# BEGIN Adaptive Images
#=======================<IfModule mod_rewrite.c>
RewriteEngine On
# Watched directories
RewriteCond %{REQUEST_URI} /wp-content/uploads [OR]
RewriteCond %{REQUEST_URI} /wp-content/themes# Redirect images through the adaptive images script
RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/adaptive-images/adaptive-images/ai-main.php [L]</IfModule>
# END Adaptive Images
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://jotiga.de/$1 [R=301,L]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress<IfModule mod_php5.c>
php_value memory_limit 400M
</IfModule># gzip Compression if availiable
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule># Deflate Compression by MimeType
<IfModule mod_deflate.c>
<FilesMatch “\.(js|jpg|jpeg|gif|png|css)$”>
ExpiresActive on
ExpiresDefault “access plus 1 month”
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>Everything seems alright there, too…
But wait, now that I check again I see the images in your website. I used Ctrl+F5 for a hard refresh! Did something change in the meantime?
Yes sorry, should have warned you. I deactivated the plugin in the meantime, I don’t want my clients to see a broken page. I thought you can work with the data i provided first. Do I need to reactivate it for you to further investigate this?
Well, all the debugging and diagnostics information seems OK. So I need some way to test the plugin while it is activated. But I understand that you do not want your clients to see broken images.
Could we set it up in another test environment and have it activated there perhaps some way?
Well, it is nighttime here now, so I will activate it for the next 10-12 hours. Test as much as you want ??
Here is what is happening:
Instead of serving the images at once the server is requested to filter the images from the script /wp-content/plugins/adaptive-images/adaptive-images/ai-main.php, which is inside the plugin.
This is requested by the line:
RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/adaptive-images/adaptive-images/ai-main.php [L]
of the .htaccess file.
But instead of running this PHP script the server returns its contents as if it were a text file! This is very strange. Could you mention this problem to your server administrator and see if it has anything to do with your server configuration?
I just did, I will get back at you when I get a response…
Thanks, I’m very curious to find out!
??
Okay problem fixed. The problem seemed to be wrong settings for my SSL certificate. I installed the plugin WordPress HTTPS and now everything works fine.
I guess the problem was that the file was loaded via http instead of https…
This is good (for the plugin) it means that there was no actual bug!
??
But it is a case I should somehow predict to help the user… Thank you for helping me debug and let me know how it works for you!
- The topic ‘Images not shown on mobile’ is closed to new replies.