PHP Error

Description

Attempt to read property "user_id" on null

Source File

/home/taidesiv/public_html/protected/views/artistprofile/view.php(80)

00068:         continue;  // Don't show CV tab to visitors, if there is no CV.
00069: 
00070:     if (($key == 5) && (! $model->meta_bio) && ($model->artist->user_id != Yii::app()->user->id))
00071:         continue;  // Don't show bio tab to visitors, if there is no bio.
00072: 
00073:     if (($key == 2) && (count($model->artobjects) == 0) && ($model->artist->user_id != Yii::app()->user->id))
00074:         continue;  // Don't show artobjects tab to visitors, if there are no artobjects.
00075: 
00076:     if (($key == 1) && (count($model->gallery_images) == 0) && ($model->artist->user_id != Yii::app()->user->id) && (count($model->artobjects) > 0))
00077:         continue;  // Don't show galleryimages tab to visitors, if profile only has some artobjects (but not galleryimages).
00078: 
00079:     $displayable = $sub_pages_human_viewable_text[$key];
00080: if ($model->artist->user_id == Yii::app()->user->id)
00081: { 00082: if ($key == 2) 00083: { 00084: $displayable .= ' ('.count ($model->artobjects).')'; 00085: } 00086: elseif ($key == 1) 00087: { 00088: $displayable .= ' ('.count ($model->gallery_images).')'; 00089: } 00090: } 00091: 00092: if ($tab == $key)

Stack Trace

#0 /home/taidesiv/yii/framework/web/CBaseController.php(119): require()
#1 /home/taidesiv/yii/framework/web/CBaseController.php(88): ArtistprofileController->renderInternal()
#2 /home/taidesiv/yii/framework/web/CController.php(742): ArtistprofileController->renderFile()
#3 /home/taidesiv/yii/framework/web/CController.php(681): ArtistprofileController->renderPartial()
#4 /home/taidesiv/public_html/protected/controllers/ArtistprofileController.php(209): ArtistprofileController->render()
#5 /home/taidesiv/yii/framework/web/actions/CInlineAction.php(32): ArtistprofileController->actionView()
#6 /home/taidesiv/yii/framework/web/CController.php(300): CInlineAction->run()
#7 /home/taidesiv/yii/framework/web/filters/CFilterChain.php(129): ArtistprofileController->runAction()
#8 /home/taidesiv/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#9 /home/taidesiv/yii/framework/web/CController.php(993): CAccessControlFilter->filter()
#10 /home/taidesiv/yii/framework/web/filters/CInlineFilter.php(59): ArtistprofileController->filterAccessControl()
#11 /home/taidesiv/yii/framework/web/filters/CFilterChain.php(126): CInlineFilter->filter()
#12 /home/taidesiv/yii/framework/web/CController.php(283): CFilterChain->run()
#13 /home/taidesiv/yii/framework/web/CController.php(257): ArtistprofileController->runActionWithFilters()
#14 /home/taidesiv/yii/framework/web/CWebApplication.php(320): ArtistprofileController->run()
#15 /home/taidesiv/yii/framework/web/CWebApplication.php(120): CWebApplication->runController()
#16 /home/taidesiv/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#17 /home/taidesiv/public_html/index.php(12): CWebApplication->run()
2024-03-19 08:07:00 Apache Yii Framework/1.1.1