Also: all images broken after update
-
Hi,
I updated your plugin and all images are broken. before it did work fine. my wordpress is in a subfolder, ad I can see that in me htaccess also. I did not change anything there. should I?
-
I changed line 75 in your script adaptive-images-script.php
from:
$wp_content_url = ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/wp-content’;to:
$wp_content_url = ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/mag/wp-content’;because my wordpress install is in the folder /mag/
now it works. Cool for me. bad for all the others using this script
Hello, my friend,
I am terribly sorry for the inconvenience, but we did fix some other bug which has to do with how WordPress handles its directories and now those installations which are in a subdirectory need to re-save their settings.
So, all you should need to do is simply re-save the Adaptive Images settings. After that it should all work without having to make any manual code changes.
Let me know how it works!
Cheers,
TakisHi Takis,
yes, did the job. even though there is no clue on the settings page that your plugin detected that the wordpress is in a subdirectory.
Thank you for the answer and thank you for the great plugin that you provide with no cost.Well, the idea is that the plugin should not care if WordPress is naturally inside a subdirectory or not. The thing is that it is possible to put WordPress in a subdirectory but make it believe it is in the root directory. This is the case that we haven’t taken care of up to now. However, code-wise it does interfere with the simpler cases as well.
I am glad everything worked out now!
Cheers,
TakisRe-saving worked, but what a pain in the butt! I host a few dozen websites for customers using this plugin. Having to re-save all of them … that shouldn’t happen.
Hello, @vahost,
You are right, but this was unfortunately technically almost to achieve. And we wouldn’t want it to happen automatically, without human supervision, because tampering with one’s htaccess file is a serious task.
If it makes you feel a little better, your patience and endurance will make a lot of other users in the future enjoy a better and more solid experience.
Cheers,
TakisActually, I have a site that the fix doesn’t work on: https://culpepercigars.com/
Do you have the older version installed in https://culpepercigars.com/? Because the plugin seems to work OK there:
- https://culpepercigars.com/wp-content/uploads/2013/02/North-1.jpg?debug=true
- https://prntscr.com/epksns/
Are there any other images that are not working in this website, perhaps in the empty white spaces?
The version is current. I’ve turned off the plugin so you can see how the page is supposed to look. The header image and the background image weren’t appearing with the plugin activated.
Hm, this is weird, because this https://prntscr.com/epxtej/ is what I saw yesterday, when you had the plugin activated. The two images in the content were there but the header image and the background image were missing.
Are you quite sure that there is no caching issue involved and that you have use the technique described here in order to hide your WordPress installation in a subdirectory?
Hi, I’ve got the issues with the WP version 4.7.3.
It gave me an error while creating the cache/adaptive-images folder
-I’ve created manuallyThere are no image in the cache/adaptive-images folder
Kindly Assist
You’re precisely right. The problem is that two of the images are missing with the plugin turned on, but they appear just fine with the plugin turned off.
Yes, WordPress is installed in the root directory of the site.
Had the same problem on my sites, had to deactivate the plugin and delete cache to fix it.
Dunno if this post by ralfralfralf was missed, but might this be the solution?
ralfralfralf (@ralfralfralf)
2 days, 1 hour ago
I changed line 75 in your script adaptive-images-script.phpfrom:
$wp_content_url = ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/wp-content’;to:
$wp_content_url = ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/mag/wp-content’;because my wordpress install is in the folder /mag/
now it works. Cool for me. bad for all the others using this script
Hey, guys,
We will give it our best shot to solve the issues. Promise!
@lisaweb the solution explained with @ralfralfralf is exactly the reason this update was created: in order to naturally solve the problem without the user having to manually tamper with the plugin code. It refers to the case explained here where WordPress is installed in a subdirectory but remains in the root url of the server.
@vahost could you try what @lisaweb mentions? That is: deactivate the plugin, clear its cache and then activate it and save its settings anew?
@mbissaliyev may I propose the same for you, too? If your WordPress installation is in the root folder as well, then please try to deactivate the plugin, clear its cache and then activate it and save its settings anew.
Please, do let me know how it all works out and I will try to respond to each one of you separately. I you feel that you would like me to look into your setup more thoroughly then feel free to email me at info [at] nevma [dot] gr, as well.
Cheers,
Takis@takis Bouyouris I tried as you suggested: deactivate the plugin, clear its cache and then activate it and save its settings anew.
The problem still exists.
For what it’s worth, the cache folder, adaptive-images, was empty. So there wasn’t much to delete.
- The topic ‘Also: all images broken after update’ is closed to new replies.