Title: Undefined index: type
Last modified: August 30, 2016

---

# Undefined index: type

 *  [Dave Romsey (goto10)](https://wordpress.org/support/users/goto10/)
 * (@goto10)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-type/)
 * On the edit screen for posts, pages, and custom post types, I’m getting the following
   warning:
 * `Notice: Undefined index: type in \wp-content\plugins\wp-fullcalendar\wp-fullcalendar.
   php on line 53`
 * This warning is not appearing on the Events post type.
 * Looking at line 53, I’m wondering if maybe the `=` should be `==`:
 * `if( !empty($_REQUEST['action']) && $_REQUEST['action'] = 'WP_FullCalendar' &&
   $_REQUEST['type'] == EM_POST_TYPE_EVENT ){`
 * WP v4.3.1
    Events Manager 5.6.1 WP FullCalendar v1.0
 * Thanks for all of your hard work EM team!
 * [https://wordpress.org/plugins/wp-fullcalendar/](https://wordpress.org/plugins/wp-fullcalendar/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578317)
 * I see what you mean, I think it’s == also – I’m going to let the devs know about
   this.
 *  [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578387)
 * adding the = does make the error stop from showing in debug.log
 *  [rochow](https://wordpress.org/support/users/rochow/)
 * (@rochow)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578399)
 * Type is also a reserved term in WP and shouldn’t be used: [https://codex.wordpress.org/Reserved_Terms](https://codex.wordpress.org/Reserved_Terms)
 * It was screwing up the AJAX request by having it in the URL. I fixed it temporarily
   by changing line 288 to:
 *     ```
       if( 'type' != $key ) {
           $strings[] = "'$key'" ." : ". $arg ;
       }
       ```
   
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578405)
 * thanks, I’m going to let the devs know about this.
 *  [cjab](https://wordpress.org/support/users/cjab/)
 * (@cjab)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578443)
 * Impossible to login with WP FullCalendar + WP_DEBUG turned on !
    – “Undefined
   index: type in /…/wp-content/plugins/wp-fullcalendar/wp-fullcalendar.php on line
   53” (“Cannot modify header information – headers already sent by /…/wp-includes/
   pluggable.php on lines 935, 936, 937, 1207)
 * WP 4.3.1
    Event Manager 5.6.1 FullCalendar 1.0
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578454)
 * sorry but this works for me; just to narrow down the problem and help us debug
   the issue is it possible to try the following temporarily:
 * – deactivating all other plugins to see if this resolves the problem. If this
   works, re-activate the plugins one by one until you find the problematic plugin(
   s).
    – switching to the default theme to rule out any theme-specific problems
 *  [cjab](https://wordpress.org/support/users/cjab/)
 * (@cjab)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578456)
 * thank’s for answering
    I did as you asked
 * Preliminary reminder :
    I talk about login/logout problem which occurs when WP_DEBUG
   is ON (with WP_DEBUG off, there is no visible problem, ok ?)
 * Tests :
    1) tested with a custom theme and with the default “twentyfifteen” theme(
   1.3) 2) tested plugin by plugin 3) the same problem on both themes –notice– 4)
   with all plugins but Full Calendar = login/logout works fine 5) with all plugins
   but Event Manager = login/logout works fine
 * Conclusion :
    the issue seems to come from the cohabitaion of Event Manager (
   5.6.1) and Full Calendar (1.0) used to show events from Event Manager
 * if you need details about environnement, configuration, notices and warnings,
   I can send it

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fullcalendar.svg)
 * [WP FullCalendar](https://wordpress.org/plugins/wp-fullcalendar/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fullcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fullcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fullcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fullcalendar/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [cjab](https://wordpress.org/support/users/cjab/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-type/#post-6578456)
 * Status: not resolved