• Hello,

    Great plugin!
    Thanks for developing!

    here some error I’ve found with WP_DEBUG ON

    when adding a new post:

    Notice: Undefined index: isEvent in /www/site/wp-content/plugins/the-events-calendar/the-events-calendar.class.php on line 845
    
    Notice: Undefined index: isEvent in /www/site/wp-content/plugins/the-events-calendar/the-events-calendar.class.php on line 902

    in calendar setting:

    Notice: Undefined variable: listViewStatus in /www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 159
    
    Notice: Undefined variable: yesCommentStatus in /www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 181
    
    Notice: Undefined variable: embedGoogleMapsOnStatus in /www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 258

    under the Ical url
    Notice: get_bloginfo est appelé avec un argument qui est déprécié depuis la version 2.2 ! L’option home est obsolète pour la famille des fonctions basées sur bloginfo(). Utilisez plut?t l’option url. in /www/site/wp-includes/functions.php on line 3321

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Bortch

    (@bortch)

    under the Ical url
    Notice: get_bloginfo est appelé avec un argument qui est déprécié depuis la version 2.2 ! L’option home est obsolète pour la famille des fonctions basées sur bloginfo(). Utilisez plut?t l’option url. in /www/site/wp-includes/functions.php on line 3321

    may be fixed like this:
    in the-events-calendar.class.php on line 1295
    $blogHome = get_bloginfo('url');
    in event-option.php on line 96-97

    <p><?php _e('Here is the iCal feed URL for your events: ' ,$this->pluginDomain); ?><code><?php bloginfo('url'); ?>/?ical</code></p>
    <p><?php _e('The iCal feed can be sorted by sub-category. Add the category slug to the above URL: ' ,$this->pluginDomain); ?><code><?php bloginfo('url'); ?>/?ical=some-sub-category</code></p>

    in gridview.php on line 34
    <a class="ical" href="<?php bloginfo('url'); ?>/?ical=<?php echo $tecCatObject->slug; ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?></a>
    in list.php on line 19
    <a class="ical" href="<?php bloginfo('url'); ?>/?ical=<?php echo $tecCatObject->slug; ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?></a>
    in single.php on line 11
    <a class="ical" href="<?php bloginfo('url'); ?>/?ical=<?php echo $post->ID; ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?></a>

    Thread Starter Bortch

    (@bortch)

    Notice: Undefined index: isEvent in /www/site/wp-content/plugins/the-events-calendar/the-events-calendar.class.php on line 845

    fixed by:

    if (isset($_POST['isEvent'])&& $_POST['isEvent'] == 'yes') {//fix

    Notice: Undefined index: isEvent in /www/site/wp-content/plugins/the-events-calendar/the-events-calendar.class.php on line 902

    fixed by:
    if (isset($_POST['isEvent'])&&$_POST['isEvent'] == 'no' && is_event( $postId ) ) {

    Thread Starter Bortch

    (@bortch)

    Notice: Undefined variable: listViewStatus in /www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 159

    fixed by adding on line 149-153:

    if( $viewOptionValue == ‘upcoming’ ) {
    $listViewStatus = ‘checked=”checked”‘;
    $gridViewStatus = ”;
    } else {
    $gridViewStatus = ‘checked=”checked”‘;
    $listViewStatus =”;//fix
    }

    Thread Starter Bortch

    (@bortch)

    Notice: Undefined variable: yesCommentStatus in /www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 181

    fixed on line 176-182:

    if( $showCommentValue == ‘no’ ) {
    $noCommentStatus = ‘checked=”checked”‘;
    $yesCommentStatus=”;//fix
    } else {
    $yesCommentStatus = ‘checked=”checked”‘;
    $noCommentStatus = ”;//fix
    }

    Thread Starter Bortch

    (@bortch)

    Notice: Undefined variable: embedGoogleMapsOnStatus in /www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 258

    fixed on line 251-257

    if( $embedGoogleMapsValue == ‘on’ ) {
    $embedGoogleMapsOnStatus = ‘checked=”checked”‘;
    $embedGoogleMapsOffStatus = ”;//fix
    } else {
    $embedGoogleMapsOnStatus = ”;//fix
    $embedGoogleMapsOffStatus = ‘checked=”checked”‘;
    }

    Thread Starter Bortch

    (@bortch)

    Notice: Undefined index: error in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/the-events-calendar-exception.class.php on line 29

    fixed by

    if( isset($eventsOptions[‘error’]) && $eventsOptions[‘error’]) : //fix

    Notice: Uninitialized string offset: 1 in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/views/events-options.php on line 204

    fixed by

    if (!empty($defaultCountry)&&$defaultCountry[1] == $fullname) { //fix

    <code>Notice: Undefined index: embedGoogleMaps in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13</code>
    
    Notice: Undefined index: viewOption in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: showComments in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: displayEventsOnHomepage in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: embedGoogleMaps in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: embedGoogleMapsHeight in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: embedGoogleMapsWidth in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: resetEventPostDate in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13
    
    Notice: Undefined index: useRewriteRules in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/template-tags.php on line 13

    temporary fixed by

    function eventsGetOptionValue($optionName, $default = ”) {
    global $spEvents;
    if($optionName && isset($spEvents)) {
    if( $spEvents->latestOptions )
    {return $spEvents->latestOptions[$optionName];}
    else{$options = $spEvents->getOptions();

    if (isset( $options[$optionName]) )//fix
    {
    return $options[$optionName];}
    else{return $default;}
    }
    }
    }

    Thread Starter Bortch

    (@bortch)

    on widget:

    Notice: Undefined index: no_upcoming_events in /homez.311/artistpr/www/site/wp-content/plugins/the-events-calendar/views/events-list-load-widget-admin.php on line 41
    value="1" />

    fixed on line 42-43 by:

    if (!empty($instance)&&isset($instance[‘no_upcoming_events’])){
    checked( $instance[‘no_upcoming_events’], 1 );}

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: The Events Calendar] Undefined index and other errors’ is closed to new replies.