Everything went well until I made this change (following page 331)
That is, in ProjectController::actionIndex(), simply change this:
$sysMessage = SysMessage::model()->find(array('order'=>'t.update_time DESC',));
to the following:
$sysMessage = SysMessage::getLatest();
Initially there was no problem but I continued with the iteration and made the part about fragment cache applied to Recent Comments on page 332. I tried it out and when I created a new comment and went to the project listing page (to test if the new comment was visible) I got a 500 error. This is the application.log trace:
2011/11/19 18:55:29 [error] [php] Trying to get property of non-object (/path/protected/controllers/ProjectController.php:170)
Stack trace:
#0 /path/YiiRoot/framework/web/filters/CFilterChain.php(134): ProjectController->runAction()
#1 /path/YiiRoot/framework/web/filters/CFilter.php(41): CFilterChain->run()
#2 /path/YiiRoot/framework/web/CController.php(1144): CAccessControlFilter->filter()
#3 /path/YiiRoot/framework/web/filters/CInlineFilter.php(59): ProjectController->filterAccessControl()
#4 /path/YiiRoot/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#5 /path/YiiRoot/framework/web/CController.php(283): CFilterChain->run()
#6 /path/YiiRoot/framework/web/CController.php(257): ProjectController->runActionWithFilters()
#7 /path/YiiRoot/framework/web/CWebApplication.php(277): ProjectController->run()
#8 /path/YiiRoot/framework/web/CWebApplication.php(136): CWebApplication->runController()
#9 /path/YiiRoot/framework/base/CApplication.php(158): CWebApplication->processRequest()
#10 /path/index.php(13): CWebApplication->run()
REQUEST_URI=/path/project
I tested the query in my database and went well, any ideas?