Support » Plugin: Manual Image Crop » Crop is not saved – Divi Builder

Viewing 4 replies - 1 through 4 (of 4 total)
  • +1 for this

    Me too

    Adam Walter


    I am also experiencing this. If it helps, clicking the Crop link in the media library throws an error in debug.log:

    [02-Nov-2016 18:19:11 UTC] PHP Notice:  Undefined index: size in /Users/adam/Sites/xxxxxxx/wp-content/plugins/manual-image-crop/lib/ManualImageCropEditorWindow.php on line 39
    [02-Nov-2016 18:19:11 UTC] PHP Stack trace:
    [02-Nov-2016 18:19:11 UTC] PHP   1. {main}() /Users/adam/Sites/xxxxxxx/wp-admin/admin-ajax.php:0
    [02-Nov-2016 18:19:11 UTC] PHP   2. do_action() /Users/adam/Sites/xxxxxxx/wp-admin/admin-ajax.php:91
    [02-Nov-2016 18:19:11 UTC] PHP   3. call_user_func_array:{/Users/adam/Sites/xxxxxxx/wp-includes/plugin.php:524}() /Users/adam/Sites/xxxxxxx/wp-includes/plugin.php:524
    [02-Nov-2016 18:19:11 UTC] PHP   4. mic_ajax_editor_window() /Users/adam/Sites/xxxxxxx/wp-includes/plugin.php:524
    [02-Nov-2016 18:19:11 UTC] PHP   5. ManualImageCropEditorWindow->renderWindow() /Users/adam/Sites/xxxxxxx/wp-content/plugins/manual-image-crop/manual-image-crop.php:50
    Adam Walter


    Well, I was able to fix my particular error by changing line 39 in wp-content/plugins/manual-image-crop/lib/ManualImageCropEditorWindow.php from this:

    $editedSize = in_array($_GET['size'], $imageSizes) ? $_GET['size'] : null;

    to this:

    if (isset($_GET['size'])) {
        $editedSize = in_array($_GET['size'], $imageSizes) ? $_GET['size'] : null;
    } else {
        $editedSize = 'thumbnail';

    Looks like there should be a ‘sizes’ parameter on the crop links/buttons but none exists for me. This addition checks for that parameter and sets an alternative if it’s missing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Crop is not saved – Divi Builder’ is closed to new replies.