Line 165 – Undefined index: sizes
-
I realized something is messed up on my server to cause the absence of ‘sizes’ coming from wp_get_attachment_metadata ($id ); but either way, I’m getting this error:
NOTICE: wp-content/plugins/ricg-responsive-images/wp-tevko-responsive-images.php:165 – Undefined index: sizes
Would it be possible to change your line 165 to:
$img_sizes = isset($img_meta[‘sizes’]) ? $img_meta[‘sizes’] : array();
Since ‘full’ is immediately added and the next loop runs through available sizes set, this wouldn’t be too big of a hit to the whole system – only help to pad a a potential error from dirty data.
Thanks in advance for your consideration.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Line 165 – Undefined index: sizes’ is closed to new replies.