WordPress.org

Support

Support » Plugins and Hacks » Enable Media Replace » [Plugin: Enable Media Replace] Undefined index: attachment_id

[Plugin: Enable Media Replace] Undefined index: attachment_id

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Enable Media Replace] Undefined index: attachment_id’ is closed to new replies.
Skip to toolbar