Error

Call to a member function getUserimage() on null

/home/httpd/vhosts/marketing-boerse.de/20240318-153510/protected/modules/article/views/book/details.php(147)

135 </table>
136 */
137   ?>
138 
139 <?php if (!empty($model->BookDigest)): ?>
140 <div class="dis-top dis-bottom clr">
141 
142 <div class="left w450"><h2>Autoren:</h2></div>
143 <div class="left w100"><h2>Seite:</h2></div>
144 
145 <?php foreach($model->BookDigest as $digest): ?>
146 <div style="clear:both;">
147   <div class="left w60"><img src="<?php echo $digest->User->getUserimage(35); ?>" /></div>
148   <div class="left w400"><a href="<?php echo $digest->User->ProfileURL; ?>"><?php echo CHtml::encode($digest->User->fullName); ?></a></div>
149   <div class="left w50"><?php echo $digest->cbdNumber; ?></div>
150   <div class="w400"><?php echo CHtml::encode($digest->cbdText); ?></div>
151   </div>
152 <?php endforeach; ?>
153 </div>
154 <?php endif; ?>
155 
156 <div class="separate-top" style="text-align:right;">
157 Eingestellt von <a href="<?php echo $model->cUser->ProfileURL; ?>" class="TxtLink"><?php echo $model->cUser->fullName; ?></a> am <?php echo date('d.m.Y', strtotime($model->cDate)); ?>
158 </div>

Stack Trace

#4
+
 /home/httpd/vhosts/marketing-boerse.de/20240318-153510/protected/modules/article/controllers/ArticleContentController.php(551): CController->render()
546             'ratingModel' => $ratingModel,
547             'content' => $content,
548             'isUserGuest' => $isUserGuest,
549             'ratingDataProvider' => $ratingDataProvider,
550             'htmlContent' => $htmlContent,
551             'comments' => $comments,
552         ));
553     }
554 
555     /**
556      * returns the canonical url of the given content model
#19
+
 /home/httpd/vhosts/marketing-boerse.de/20240318-153510/maboyii/index.php(96): CApplication->run()
091 defined('YII_DEBUG') or define('YII_DEBUG',true);
092 // specify how many levels of call stack should be shown in each log message
093 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
094 
095 require_once($yii);
096 Yii::createWebApplication($config)->run();
097 
098 //*
099   if ((!empty(Yii::app()->params['matomo']['id']))&&($_SERVER['REQUEST_URI'] != '/statistics/increment')) {
100     set_include_path(get_include_path() . PATH_SEPARATOR . '../protected/vendors/matomo-php-client/');
101     require_once('../protected/vendors/matomo-php-client/MatomoTracker.php');
2024-03-28 22:36:05 nginx/1.18.0 Yii Framework/1.1.29