Support » Plugin: MetaSlider » Can’t edit exist slider.

  • Resolved JanStudio

    (@vietxitin)


    Hi,

    When i click to edit exist slide or click on image to replace old image of slide it show error image

    “The requested slide does not exist or something is wrong with the current image. Please try again or remove this slide”

    Please check screenshot at http://take.ms/mNsVnG

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor kbatdorf

    (@kbat82)

    Hi,

    That message shows when we can’t locate the image. Specifically this exact truth test is used, and if it fails it send back the info message you see.

    get_post_meta($slide_id, '_thumbnail_id', true)

    Is the issue that you can’t fix it by updating it? Is there any benefit to editing it rather than just creating a new slide?

    I suppose the check above isn’t actually necessary when updating the image. If you’re comfortable editing the code to try it out, you could just comment out (//) the test and see if it works. If so I can look into adding this in.

    /*
    * Verifies that the $slide_id is an actual slide (it currently has an image)
    */
    if (!($image_id_old = intval(get_post_meta($slide_id, '_thumbnail_id', true)))) {
    	// return new WP_Error('update_failed', __('The requested slide does not exist or something is wrong with the current image. Please try again or remove this slide.', 'ml-slider'), array('status' => 409));
    }

    This is in inc/slide/metaslide.class.php

    • This reply was modified 9 months, 1 week ago by  kbatdorf. Reason: Added file location

    Thank you for fast respond.
    This issue because we dump data from old site. When i create new slide and upload new image and edit it work well. It only have issue with old image from old site.

    Regards

    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @vietxitin,

    I made a note to look into this more and see whether we can remove that check when updating an image. I’ll mark this as resolved since there’s a workaround. Let me know if you have any other issues though (you can reply here or open a new one).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t edit exist slider.’ is closed to new replies.