• Resolved awei01

    (@awei01)


    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;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Cloudinary

    (@cloudinary)

    Hi,

    We’re sorry for the response delay.

    Can you please try to update to the latest version and let us know if this is resolved?

    Thanks

    I upgraded to the latest version since I received this error as well. The latest version did not resolve the issue. Is there a github repo that we can submit fixes to?

    The error can be fixed by changing line 296 in cloudinary.php to
    $wanted = isset($sizes[$size]) ? $sizes[$size] : ["crop" => false];

    If there is a github repo I can submit a PR.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP error in plugin. Looking for index ‘full’ from sizes’ is closed to new replies.