Support » Plugin: Manual Image Crop » {"status":"error","message":"wrong attachement"}

Viewing 8 replies - 1 through 8 (of 8 total)
  • Having the same issue after WP 4.6.

    Same here…
    I was always having this error, then I updated NextGEN gallery and I get the error just from time to time… I don’t know what’s triggering it!

    I have the same error on several websites after WP 4.6 update.
    Don’t know the reason, but it’ll work after you save the post (publish or save draft). You can use this workaround until the author fixes the plugin. It has something to do with the attachment data not being seen after the image is uploaded on a fresh post…

    • This reply was modified 3 years, 2 months ago by  aleks12.

    +1
    I have the same error

    same issue here. this plugin is essential!

    I’ve found that if you save the draft again then it works fine afterwards.

    Since The Author gave up on this good plugin,
    I offer a solution:

    edit file \lib\ManualImageCrop.php

    find this

    
    $content .= '<a id="micCropFeatureImage" class="thickbox mic-link" rel="crop" title="' . __('Manual Image Crop','microp') . '" href="' . admin_url( 'admin-ajax.php' ) . '?action=mic_editor_window&postId=' . get_post_thumbnail_id($post) . '">' . __('Crop featured image','microp') . '</a>
    

    and replace it with this:

    
    $thumb=get_post_thumbnail_id($post);
    if (empty($thumb)) $thumb=$_POST['thumbnail_id'];
    $content .= '<a id="micCropFeatureImage" class="thickbox mic-link" rel="crop" title="' . __('Manual Image Crop','microp') . '" href="' . admin_url( 'admin-ajax.php' ) . '?action=mic_editor_window&postId=' . $thumb . '">' . __('Crop featured image','microp') . '</a>
    

    It should work with all versions of the WP, including 4.6.1, but not sure if it will work with all future versions.

    • This reply was modified 3 years, 1 month ago by  aleks12.

    FYI– I replaced this plugin with this one which has worked quite well: https://wordpress.org/plugins/crop-thumbnails/

    You can even crop all sizes at once with the ability to add a filter to make sure your aspect ratios match for the feature to work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘{"status":"error","message":"wrong attachement"}’ is closed to new replies.