PHP error in plugin. Looking for index ‘full’ from sizes
-
Using version 1.1.4 of cloudinary plugin.
I noticed that there is a bug in the code when error suppression is turned OFF.
Notice: Undefined index: full in /wp-plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php on line 296
It appears that there is no ‘full’ size returned in the array of possible sizes. Code fix should be simple: check to see if the ‘full’ index exists.
Before (starting on line ~295):
$sizes = $this->get_wp_sizes();
$wanted = $sizes[$size];
$crop = $wanted[“crop”];After:
if (isset($sizes[$size])) {
$wanted = $sizes[$size];
$crop = $wanted[“crop”];
} else {
$crop = false;
}
- The topic ‘PHP error in plugin. Looking for index ‘full’ from sizes’ is closed to new replies.