PKP Bugzilla – Bug 6249
"Post Reply" to comment produces fatal error
Last modified: 2011-10-26 19:24:40 PDT
I get the following fatal error when I click the "Post Reply" link on a paper comment. (Note that posting comments works fine -- this only happens when I try and post a reply comment to an original comment.) [Thu Nov 25 16:10:45 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined method Comment::getPaperId() in /Users/jmacgreg/git/ocs/pages/comment/CommentHandler.inc.php on line 95, referer: http://git/ocs/index.php/one/schedone/comment/view/6/0/0?refresh=1 This may be related to Vicente's problems at http://pkp.sfu.ca/support/forum/viewtopic.php?f=3&t=6874&p=26606#p26606, and also to Bug 6248.
Created attachment 3363 [details] Patch against OCS pre-2.3.4
Created attachment 3364 [details] Patch against OJS 2.3.3-3
James, this should do it.
In OCS, $parent->getSubmissionId() doesn't work: undefined function. Replacing it for $parent->getPaperId() and it works. In OJS I didn't tested.
Vicente, it looks like this bug only affects unreleased OCS pre-2.3.4 code, not the most recent release (OCS 2.3.3-1). You shouldn't need to apply it to any official OCS releases.
Sorry, I read and did too quickly.. :S All right.