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.

There was an error performing your request. Please try again.

This discussion is related to the Game addon.

If i reply to a thread on a forum i am in the prossess of making i get this:
There was an error performing your request. Please try again.

and looking though the nginx error logs shows this:
2015/07/18 22:17:22 [error] 8488#0: 596 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function Result() on a non-object in /usr/share/nginx/www/themes/game/views/discussion/comments.php on line 13" while reading response header from upstream, client: *IP addresses removed , server: localhost, request: "POST /index.php?p=/vanilla/post/comment/&discussionid=2 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "", referrer: ""

Here is the code to comments.php:
<?php if (!defined('APPLICATION')) exit();
$Session = Gdn::Session();
if (!function_exists('WriteComment'))
include($this->FetchViewLocation('helper_functions', 'discussion'));

$CurrentOffset = $this->Offset;
if ($CurrentOffset == 0 && !$this->Data('NewComments', FALSE)) {
echo WriteComment($this->Discussion, $this, $Session, $CurrentOffset);

// Only prints individual comment list items
$CommentData = $this->CommentData->Result();
foreach ($CommentData as $Comment) {
$this->CurrentComment = $Comment;
WriteComment($Comment, $this, $Session, $CurrentOffset);

I do not know what the really issue is it might be not printing but comment are showing up on page refresh.


  • Fixed by changing: $CommentData = $this->CommentData->Result(); to $CommentData = $this->Data('Comments')->Result();

Sign In or Register to comment.