-
AuthorPosts
-
February 28, 2011 at 8:03 pm #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 Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
March 1, 2011 at 8:44 am #379032Hi 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,
March 1, 2011 at 8:53 pm #379143disqus 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;
}
-
AuthorPosts
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