Wrong directory structure being checked for retina files
-
Hi Jordy, I noticed that retina images weren’t working for my new post today, so I turned on the debug and discovered that the wrong URL structure is being used to check for the retina images for any images I’ve uploaded since upgrading to WordPress 4.2:
Here’s an example:
2015-04-25 05:46:16: Retina file at '/var/www/html/si/sixprizes.com/wp-content/uploads/wp-content/uploads/2015/04/[email protected]' does not exist. 2015-04-25 05:46:16: The img tag was not rewritten. No retina for 'https://sixprizes.com/wp-content/uploads/2015/04/m-venusaur-ex-xy-2-ptcgo-1-225x318.png'.
You can see
wp-content/uploads/
twice for the retina image check, which is wrong. I’m pretty sure this error began only after upgrading to WordPress 4.2 (I can’t recall making any other changes to my site).Also, I think WordPress started inserting https (rather than http) for images with 4.2 when
define('FORCE_SSL_ADMIN', true);
is included in wp-config.php (which I utilize). Not sure if that is having any effect. (Related patch.)
- The topic ‘Wrong directory structure being checked for retina files’ is closed to new replies.