• 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://www.ads-software.com/plugins/wp-fullcalendar/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I see what you mean, I think it’s == also – I’m going to let the devs know about this.

    adding the = does make the error stop from showing in debug.log

    Type is also a reserved term in WP and shouldn’t be used: https://codex.www.ads-software.com/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

    (@angelo_nwl)

    thanks, I’m going to let the devs know about this.

    cjab

    (@cjab)

    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

    (@angelo_nwl)

    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

    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.