Media – set featured image not working properly.
-
Since upgrading to 3.5 I seem to have been having “set fetaured image” in the editor damage file naming (though perhaps some ealy ones have got through without the problem I cant be sure as my record keeping has let me down).
Rendering an image on my home page is producing an error (below), the message I have supressed but the the effect persists. Whilst the consequence of the issue has occured in Theme processing as you can see the filename has no extension.
Warning: getimagesize(/home/andyseab/public_html/adventurebods.com/wp-content/uploads/thumb-cache/38055753-8be999a389adeaa86955ee64d426f638-150×150-75-crop.) [function.getimagesize]: failed to open stream: No such file or directory in /home/andyseab/public_html/adventurebods.com/wp-content/themes/suffusion/functions/media.php on line 442
The following has all been undertaken on the test server – note the domain name is singular rather than plural. (annoyingly similar but it will have to do for now)
to get to the test server home page if you want to see the effect in the flesh: adventurebod.com/homeI discovered there were several “extention-missing” media files that have occured since the new year started.
I dumped the post, trashed it, emptied the trash and reentered it – still the extension is missing which is how it appears now online:
/public_html/adventurebod.com/wp-content/uploads/2013/01/3805575if I simply add the .jpg extension manually the file is not corrupted – it can be displayed in the browser:
adventurebod.com/wp-content/uploads/2013/01/3805575.jpgSimilarly thumb-cache had no file extension – I manually added the extension using ftp client and they can be displayed in the browser (not sure why there is two):
adventurebod.com/wp-content/uploads/thumb-cache/3805575-63d21b7bb20b50246227e561920473ed-150×150-75-crop.jpg
adventurebod.com/wp-content/uploads/thumb-cache/3805575-2b4d3a31fa4e69e7bf2e76960dc4fb53-150×150-75-crop.jpgThe thumbnail still does not display on the home page, as the code shows that the excerpt is formatted with this: <img src=”https://adventurebod.com/wp-content/uploads/2013/01/3805575″…>
It seems the damage is being done during the “post publishing” process or other save process –
Not sure if this is how it should be but the media asset shows:
Permalink: https://adventurebod.com/blog/india-trav … 2/3805575/Of course the permalink is editable but presumably I need to alter the associated filename and filetype – database directly?
Any other ideas? Is my thinking leading me off course?
Do I take it this is one for the WordPress forums?
- The topic ‘Media – set featured image not working properly.’ is closed to new replies.