Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • adrew Friend
    #160835

    Link: http://www.theshorthorn.com/index.php/eventscalendar

    The different views (year, month, week, day, ect) views all work. But when you go to click an individual event, a slew of errors come up from Disqus and Tweetme. I looked at the lines, and it seems like it revolves around the calendar events not having section or article ID’s or something down those lines.

    I could really use some help, because I’m not really sure what to do to make the errors go away.

    Notice: Undefined property: stdClass::$id in /opt/www/www.theshorthorn.com/plugins/content/plg_disqus_debate_echo.php on line 80

    Notice: Undefined property: stdClass::$sectionid in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 218

    Notice: Undefined property: stdClass::$id in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 239

    Notice: Undefined property: stdClass::$id in /opt/www/www.theshorthorn.com/plugins/content/plg_disqus_debate_echo.php on line 80

    Notice: Undefined property: stdClass::$sectionid in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 218

    Notice: Undefined property: stdClass::$id in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 239

    Notice: Undefined property: stdClass::$id in /opt/www/www.theshorthorn.com/plugins/content/plg_disqus_debate_echo.php on line 80

    Notice: Undefined property: stdClass::$sectionid in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 218

    Notice: Undefined property: stdClass::$id in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 239

    Notice: Undefined property: jIcalEventRepeat::$id in /opt/www/www.theshorthorn.com/plugins/content/plg_disqus_debate_echo.php on line 80

    Notice: Undefined property: jIcalEventRepeat::$sectionid in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 218

    Notice: Undefined property: jIcalEventRepeat::$id in /opt/www/www.theshorthorn.com/plugins/content/tweetme.php on line 239

    thuanlq Friend
    #379032

    Hi Adrew,

    To fix this problem please do as following:
    – Open the file “plg_disqus_debate_echo.php” in the folder “/plugins/content/”, then find to line 80 and replace this code:


    if(!$article->catid) {
    $article->catid = 0;
    }

    To


    if(!isset($article->catid)) {
    $article->catid = 0;
    }

    – You can fix for tweetme plugin as the same.

    Regards,

    adrew Friend
    #379143

    disqus lines 80-82 on mine:


    if(!$article->id) {
    return '';
    }

    Lines 218-222 of tweetme:


    if(in_array($row->sectionid, $aAcceptedSectionsArray) != true){
    $value_sec = '1';
    }
    unset($aAcceptedSectionsArray);
    }

    Lines 236-248 of Tweetme:


    if ($pluginRegistry->articleid !=''){
    $aIgnoredArticleArray = array();
    $aIgnoredArticleArray = explode(',',$pluginRegistry->articleid);
    if(in_array($row->id, $aIgnoredArticleArray) ){
    $value_art = '1';
    }
    unset($aIgnoredArticleArray);
    }
    if( ($value_sec==1) || ($value_cat==1) || ($value_art==1) ){
    return true;
    }else{
    return false;
    }

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  adrew 13 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum