PKP Bugzilla – Bug 5373
Fatal error: ReviewAssignmentDAO::updateObject()
Last modified: 2010-04-28 09:52:39 PDT
Happens when trying to update/create a custom review form: Fatal error: Call to undefined method ReviewAssignmentDAO::updateObject() in /var/www/ocs23/classes/submission/form/ReviewFormResponseForm.inc.php on line 96 Call Stack # Time Memory Function Location 1 0.0001 110256 {main}( ) ../index.php:0 2 0.0439 7669608 PKPApplication->execute( ) ../index.php:65 3 0.0457 8168288 Dispatcher->dispatch( ) ../PKPApplication.inc.php:170 4 0.0984 14097440 PKPPageRouter->route( ) ../Dispatcher.inc.php:130 5 0.1043 14959488 SubmissionReviewHandler->saveReviewFormResponse( ) ../PKPPageRouter.inc.php:177 6 0.1043 14960136 ReviewerAction->saveReviewFormResponse( ) ../SubmissionReviewHandler.inc.php:219 7 0.1164 16315936 ReviewFormResponseForm->execute( ) ../ReviewerAction.inc.php:361 Change /ocs/classes/submission/form/ReviewFormResponseForm.inc ligne 96 from CODE: SELECT ALL $reviewAssignmentDao->updateObject($reviewAssignment); to CODE: SELECT ALL $reviewAssignmentDao->updateReviewAssignment($reviewAssignment); The function updateObject() does not exist in /ocs/classes/submission/reviewAssignment/ReviewAssignmentDAO.inc ponsfrilus Also posted in ocs forum: http://pkp.sfu.ca/support/forum/viewtopic.php?f=3&t=6055
Thanks for contributing, ponsfrilus -- that fix is correct. (We'll be updating method calls called updateSomeObjectName to updateObject, however this one was accidentally done incompletely.)
Alec, if I remember well there is a second call of this method in this file.
Hi ponsfrilus -- There's a call to ReviewFormResponseDao::updateObject in the same file, but that function is indeed defined.
Created attachment 3086 [details] Patch against OCS 2.3.1
Comment on attachment 3086 [details] Patch against OCS 2.3.1 Oops -- wrong entry.