Broken Images on Catergory/Archive Pages
My issue concerns broken featured images in excerpts on category/archive pages.
The problem was first much more extensive, concerning all featured images and even images in single posts. Most of these problems were, however, solved when installing the plugin “responsive images”. As advised by Graphene developers.
I am using custom uploads path. My media settings differ from default: Thumbnail size (155*155), medium size (220*122) and large (1280*720).
The problem looks as below:
I will be grateful for any help/advice you guys can provide.
I would very much appreciate if the cause of the problem was pinned down, even if it is impossible to solve without reconstructing the filesystem on the server. Even if this was the case, the problem could be avoidable in the future, if the site were to move.
Have a nice weekend.
Since version 4.3, WordPress has a built-in “responsive” images feature. That is, it serves different sizes of the same image to different devices in order for the images to look best on all devices without increasing the file size those devices need to download any more than necessary.
The issue with your site was that, the links to those different sizes are pointing to the default WordPress uploads folder (
wp-content/upload). Only the original image size was linked to the correct custom location, which is why you see those images working fine on desktop but not on mobile.
If you could try moving the custom uploads folder back to its default location, that would confirm if that is indeed the cause. It’s not something that we can fix from our end though, as it relates to the coding in the WordPress core.
Thank you Syahir,
I have specified the following in wp-config.php to:
define( ‘UPLOADS’, ”.’files/media’ );
This was done at the initial setup of the site.
Shouldn’t this point all images to this directory, including those via a mobile device (Neo)? Rather than the default WordPress uploads folder. Or do I need to define the same upload directory in Neo as well?
Your hypothesis was correct, proven by moving a specific article folder to the default wp-content/upload directory and the category thumbnail loads successfully.
So, I assume that the solution would be to, either, copy all folders from my custom upload directory to the default directory, or is it possible to simply modify a config file for Neo in a similar way as I have done with “wp-config” (see above)?
- You must be logged in to reply to this topic.