Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

VanillaCommentScore problem

rhino777rhino777 New
edited April 2010 in Vanilla 2.0 - 2.8
I have a fresh site up using the code release that was most current from about a week ago. Everything mostly seems fine except for whenever I enable the VanillaCommentScore plug-in it crashes when you go to read comments.

Fatal Error in PHP.ErrorHandler();
Undefined property: stdClass::$SumScore
The error occurred on or near: /var/www/bbs/plugins/VanillaCommentScore/class.commentscore.plugin.php

42:

43: // Create a container for the score.

44: echo '
';

45:

46: $SumScore = (is_null($Comment->SumScore) ? 0 : $Comment->SumScore);

47:

48: // Write the current score.

49: echo '' . sprintf(Plural($SumScore, '%s point', '%s points'), $SumScore) . '';

50:

Backtrace:

[/var/www/bbs/library/core/functions.error.php:132] PHP::include();

[/var/www/bbs/plugins/VanillaCommentScore/class.commentscore.plugin.php:46] PHP::ErrorHandler();

[/var/www/bbs/library/core/class.pluginmanager.php:198] Gdn_VanillaCommentScorePlugin->DiscussionController_CommentOptions_Handler();

[/var/www/bbs/library/core/class.pluginmanager.php:173] Gdn_PluginManager->CallEventHandler();

[/var/www/bbs/library/core/class.pluggable.php:125] Gdn_PluginManager->CallEventHandlers();

[/var/www/bbs/applications/vanilla/views/discussion/helper_functions.php:72] Gdn_Pluggable->FireEvent();

[/var/www/bbs/applications/vanilla/views/discussion/helper_functions.php:11] PHP::WriteOptions();

[/var/www/bbs/applications/vanilla/views/discussion/comments.php:13] PHP::WriteComment();

[/var/www/bbs/library/core/class.controller.php:499] PHP::include();

[/var/www/bbs/applications/vanilla/views/discussion/index.php:30] Gdn_Controller->FetchView();

[/var/www/bbs/library/core/class.controller.php:499] PHP::include();

[/var/www/bbs/library/core/class.controller.php:725] Gdn_Controller->FetchView();

[/var/www/bbs/library/core/class.pluggable.php:192] Gdn_Controller->xRender();

[/var/www/bbs/library/core/class.pluggable.php:192] Gdn_Pluggable->__call();

[/var/www/bbs/applications/vanilla/controllers/discussion.php:106] DiscussionController->Render();

[/var/www/bbs/library/core/class.dispatcher.php:231] DiscussionController->Index();

[/var/www/bbs/index.php:41] Gdn_Dispatcher->Dispatch();





Additional information for support personnel:

* Application: Garden
* Application Version: 1.0
* PHP Version: 5.1.6
* Operating System: Linux
* Referer: http://bbs.the-wall.net/
* User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
* Request Uri: /discussion/18/insert-membername-is-drunk-thread/
* Controller: PHP
* Method: ErrorHandler


Any help would be appreciated!
Sign In or Register to comment.