WordPress.org

Support

Support » Plugins and Hacks » Undefined index: MRP_related_posts

Undefined index: MRP_related_posts

  • PHP Notice:

    wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 282

    Warning: Cannot modify header information – headers already sent by (output started at:

    wp-content/plugins/microkids-related-posts/microkids-related-posts.php:282

    AND

    wp-content/plugins/microkids-related-posts/microkids-related-posts.php:282

    https://wordpress.org/plugins/microkids-related-posts/

Viewing 1 replies (of 1 total)
  • @sem101, when receiving, “Undefined Index,” notices from PHP, usually a key is not set. You check if it’s set with:

    isset()

    Example:

    MRP_save_relationships( $post_id, isset( $_POST['MRP_related_posts'] ) );

    The developer may wish to add a ternary operator as well. Good luck.

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: MRP_related_posts’ is closed to new replies.