Skip to content

Instantly share code, notes, and snippets.

@kohenkatz
Last active December 10, 2015 00:48
Show Gist options
  • Save kohenkatz/4353369 to your computer and use it in GitHub Desktop.
Save kohenkatz/4353369 to your computer and use it in GitHub Desktop.
Stack Trace
2012-12-10 14:48:44 --- CRITICAL: ErrorException [ 8 ]: Undefined property: Model_ActionPlan::$status ~ MODPATH\baloo\classes\Model\ActionPlan.php [ 78 ] in <APP DIRECTORY>\modules\baloo\classes\Model\ActionPlan.php:78
2012-12-10 14:48:44 --- DEBUG: #0 C:\Web\CMSC435-game\branches\gameplay\modules\baloo\classes\Model\ActionPlan.php(78): Kohana_Core::error_handler(8, 'Undefined prope...', 'C:\Web\CMSC435-...', 78, Array)
#1 <APP DIRECTORY>\modules\baloo\classes\Model\ActionPlan.php(32): Model_ActionPlan->close(Object(Model_Game), Object(Model_User), 'failure')
#2 <APP DIRECTORY>\modules\mongodb\classes\Mongo\Document.php(868): Model_ActionPlan->after_load()
#3 <APP DIRECTORY>\modules\mongodb\classes\Mongo\Document.php(992): Mongo_Document->load_values(Array, true)
#4 <APP DIRECTORY>\modules\mongodb\classes\Mongo\Document.php(561): Mongo_Document->load()
#5 <APP DIRECTORY>\modules\baloo\classes\Model\Question.php(285): Mongo_Document->__get('status')
#6 <APP DIRECTORY>\modules\baloo\classes\Model\Game.php(68): Model_Question->close(Object(Model_Game), Object(Model_User), 'manual')
#7 <APP DIRECTORY>\modules\baloo\classes\Controller\Game.php(704): Model_Game->close(Object(Model_User), 'manual')
#8 <APP DIRECTORY>\system\classes\Kohana\Controller.php(84): Controller_Game->action_close()
#9 [internal function]: Kohana_Controller->execute()
#10 <APP DIRECTORY>\system\classes\Kohana\Request\Client\Internal.php(97): ReflectionMethod->invoke(Object(Controller_Game))
#11 <APP DIRECTORY>\system\classes\Kohana\Request\Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response))
#12 <APP DIRECTORY>\system\classes\Kohana\Request.php(989): Kohana_Request_Client->execute(Object(Request))
#13 <APP DIRECTORY>\index.php(124): Kohana_Request->execute()
#14 {main} in <APP DIRECTORY>\modules\baloo\classes\Model\ActionPlan.php:78
@kohenkatz
Copy link
Author

Note that Model_Question and Model_ActionPlan both implement Mongo_Dcoument. However, trying to get $this->status works in Model_Question, but not in Model_ActionPlan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment