Hello, @blackcapdesign,
Thank you for you message and the -once again- thorough feedback!
I do not see any errors in your settings at the moment. I will take a deeper look in this and do some test in the weekend and get back to you!
Cheers,
Takis
A moderator bounced me from this thread so I will start a new one.
Thread Starter
Pat K
(@blackcapdesign)
Hi Takis. I received notification about the recent posts in this thread by kcwebguy (prior to his posts being redacted) and your follow-up asking if he had updated to the latest version of the plugin. I didn’t realize you had updated the plugin…I’ve been waiting for a follow-up in the support thread. Thanks the update… BUT I promptly logged in and processed the update then checked the site on my phone – to generate some cached image files – only to see NO IMAGES. So I checked on my desktop and NO IMAGES (only background images are showing). So I uninstalled the plugin and the images were restored. Weird. I don’t have time at the moment to troubleshoot this – but thought you should know.
pk
@kcwebguy, I am really sorry about that. The forum guidelines mention nothing about following up on a thread, if you have a similar issue to the one the thread discusses. Actually this should be the correct way to go! Anyway, feel free to start a new thread, if you would like, please!
@blackcapdesign, I am really sorry to hear this, too! I have conducted quite a few tests on the latest version and on different types of WordPress installations and it seems that the regular expression issue has been fixed.
Would it be possible for you to make one more clean test? Also try to do a hard refresh on your website to make sure new requests are actually sent?
If the problem persists, may I ask for some additional info? That would be:
- The bit in your htaccess file that refers to the Adaptive Images plugin.
- Add
?debug=true at the end of an image url and send me what you see.
Thanks for the help,
Takis
Thread Starter
Pat K
(@blackcapdesign)
Hi Takis,
The site I referenced earlier today was hosted on a server running the Plesk control panel. So I tried processing the update on a test site on a server running cPanel and got exactly the same result: no images. In fact, not only are the images not loading on the front end, they aren’t loading in the media library either (including my avatar). Oddly PDF files are present and there is 1 .ico file showing (a favicon).
This is the AI relevant code from the .htaccess file – located in the subdirectory – at the same level as the wp-config file:
# BEGIN Adaptive Images
#=======================
<IfModule mod_rewrite.c>
RewriteEngine On
# Watched directories
RewriteCond %{REQUEST_URI} /wp2022/wp-content/uploads [OR]
RewriteCond %{REQUEST_URI} /wp2022/wp-content/themes
# Redirect images through the adaptive images script
RewriteRule \.(?:jpe?g|gif|png)$ /wp2022/wp-content/plugins/adaptive-images/adaptive-images-script.php [L]
</IfModule>
# END Adaptive Images
When I use the Developer Tools console in my browser, all images are reported as “broken”. When I open an image URL, this is the message that loads in my browser:
“Original image not found or not available.”
When I append ?debug=true to the URL, the following information loads:
ADAPTIVE IMAGES DEBUG
########################
Script status
==============
You are viewing this page instead of the image you requested. This is part of the debugging capabilities of the Adaptive Images plugin. Seeing this means the plugin is running alright and that the .htaccess configuration file is setup correctly!
Client width
2048
Pixel density
1.25
HiDPI
TRUE
Resolution
1024
Cache writable
YES
User settings
==============
$resolutions
1024,600,480
$cache_dir
cache/adaptive-images
$jpg_quality
65
$sharpen
TRUE
$watch_cache
TRUE
$browser_cache
604800
Image requested
================
Image
/wp2022/wp-content/uploads/2022/04/filename.jpg
Exists
NO
Mime
-
Dimensions
-
Size
-
---
Remove "?debug=true" in the url to see your image.
Add "?debug=original" to see the original, non-resized image.
Add "?resolution=xxxx,y" to see the image resized in xxxx pixels and y pixel density.
Deactivating or rolling back to the previous version restores the images in the media library – and images are restored on the front end.
Oddly I’m still not seeing any errors being logged.
Oh yeah, I did several hard refreshes as you suggested – no change.
pk
-
This reply was modified 3 years, 5 months ago by
Pat K.
Hello, @blackcapdesign,
Once again, thank you for sharing this info. It all seems in order and is baffling me. Plesk or Cpanel or whatever other control panel should not matter.
What I find very weird is that in the debug info, the plugin sees that the image path is /wp2022/wp-content/uploads/2022/04/filename.jpg yet it cannot locate it on the disk. Does this ring any bell to you?
Now I have run out of ideas here. All the other tests in various WordPress installation combinations I have conducted seem to work well with this version of the plugin. If it is possible for you to provide an isolated test environment, where I could do some in-depth a debugging, I would be happy to do so. You may contact me at info [at] nevma [dot] gr.
Cheers,
Takis
Thread Starter
Pat K
(@blackcapdesign)
Hi Takis,
I know, very weird – and no errors reported! The images are present in the uploads directories – but for some reason the database seems to have stopped registering them (similar to this: https://ww.wp.xz.cn/support/topic/wordpress-media-not-showing-images/).
When I have a few minutes, I’ll set up a fresh WordPress install in a sub-directory using a core WP theme and only your plugin. NOTE: I do have BulletProof Security running – which modifies the root .htaccess file, but I have disabled BPS and replaced it with the default file during testing – and doing so made no difference. I will report back asap.
Thanks again for your time,
pk
Hello, Pat,
If the database has stopped registering media files altogether, then something else must be going on. The Adaptive Images plugin does not touch the wp_posts database table, or any other table, apart from saving its own settings in wp_options. But you never know…
I’ll wait for the test environment, I am really curious to find out what’s going on!
Cheers,
Takis