Error

Call to a member function getErrors() on null

/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(5813)

5801         $content='';
5802         if(!is_array($model))
5803             $model=array($model);
5804         if(isset($htmlOptions['firstError']))
5805         {
5806             $firstError=$htmlOptions['firstError'];
5807             unset($htmlOptions['firstError']);
5808         }
5809         else
5810             $firstError=false;
5811         foreach($model as $m)
5812         {
5813             foreach($m->getErrors() as $errors)
5814             {
5815                 foreach($errors as $error)
5816                 {
5817                     if($error!='')
5818                         $content.= '<li>'.self::encode($error)."</li>\n";
5819                     if($firstError)
5820                         break;
5821                 }
5822             }
5823         }
5824         if($content!=='')
5825         {

Stack Trace

#1
+
 /home/itip/web/bestactor.ru/public_html/app/views/frontend/actor/photos/_form.php(16): CActiveForm->errorSummary()
11             'enctype'=>'multipart/form-data',
12             'class' => 'ym-form ym-columnar'
13         ),
14     )); ?>
15     <h3 class="ym-fbox-heading">Добавление фотографий</h3>
16     <?php echo $form->errorSummary(array($userModel, $this->model)); ?>
17 
18     <?php if(Yii::app()->user->isGuest):?>
19         <div class="ym-fbox-text">
20             <?php echo $form->labelEx($userModel,'username'); ?>
21             <?php echo $form->textField($userModel,'username', array('cols' => 30,'rows' => 7)); ?>
#5
+
 /home/itip/web/bestactor.ru/public_html/app/controllers/frontend/ActorController.php(149): CController->renderPartial()
144         if($photos = $this->getPhotosToUpdate()) {
145             $this->actionUpdatePhotos($photos);
146             $form = $this->renderPartial('photos/_formUpdatePhotos', array('photos' => $photos), true);
147         } else {
148             Actors::processPhotos($this->model);
149             $form = $this->renderPartial('photos/_form', array('userModel' => $userModel, 'display' => count($items)), true);
150         }
151 
152         if(count(CUploadedFile::getInstancesByName('ActorPhotos'))) {
153             $this->refresh(true, '#updatePhoto');
154         }
#10
+
 /home/itip/web/bestactor.ru/public_html/app/modules/rights/components/RController.php(36): CFilter->filter()
31     */
32     public function filterRights($filterChain)
33     {
34         $filter = new RightsFilter;
35         $filter->allowedActions = $this->allowedActions();
36         $filter->filter($filterChain);
37     }
38 
39     /**
40     * @return string the actions that are always allowed separated by commas.
41     */
2024-03-29 07:45:30 Apache/2.4.57 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n Yii Framework/1.1.22