WordPress.org

Forums

Enable Media Replace
Undefined index: attachment_id (3 posts)

  1. Azizur Rahman
    Member
    Posted 4 years ago #

    I have just downloaded the plugin and installed. When trying to set a Featured Image on Custom Post Type I am getting the error below.

    Notice: Undefined index: attachment_id in {path-to}\wp-content\plugins\enable-media-replace\enable-media-replace.php on line 58

    I would suggest changing line 58 from:
    if ($_GET["attachment_id"]) {
    to:
    if (isset($_GET["attachment_id"]) and $_GET["attachment_id"]) {

    hope that helps.

    http://wordpress.org/extend/plugins/enable-media-replace/

  2. Måns Jonasson
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks, I will take a look at this in my next revision.

  3. Måns Jonasson
    Member
    Plugin Author

    Posted 4 years ago #

    I just commited version 2.4, which fixes this issue. Try it out!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Enable Media Replace
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic