PHP notice

Trying to get property of non-object

/var/www/html/site.autobest_current/protected/controllers/CarritoController.php(7879)

7867         /*$idUsuario = 0;
7868         $sqlID = 'SELECT id FROM usuario WHERE Email = "'.Yii::app()->user->getId().'" LIMIT 1 ';
7869         $qID = Yii::app()->db->createCommand($sqlID)->queryAll();
7870         if(count($qID) > 0){
7871             $idUsuario = $qID[0]["id"];
7872         }*/
7873 
7874         $idProducto = $model->id;
7875         $limiteTextArea = 255;
7876         $respuesta = ''.
7877         CHtml::openTag("div", array("id"=>"ancla", "class"=>"tituloSeccion")).
7878             (($paginaVendedor)? "" : CHtml::tag("h3", array(), "Preguntas al Vendedor", true)).
7879             '<a class="btn btn-block btn-primary fancyFrame" href="'.Yii::app()->createAbsoluteUrl('carrito/pregunta', array('subdominio'=>$model->idUsuario->subdominio)).'&clase='.$clase.'&id='.$idProducto.'&receptor='.$model->id_usuario.'&emisor='.$emisorV.'" style="font-size: 13px; width:90px;display:none;margin-left:10px;" id="btnPreguntarExterno">Preguntar</a>'.
7880         CHtml::closeTag("div").
7881         /*CHtml::openTag("table").
7882             CHtml::openTag("tr").
7883                 CHtml::openTag("td",array("style"=>"text-vertical-align:middle")).CHtml::openTag("p", array("id"=>"ancla")).CHtml::openTag("strong")."Preguntas al Vendedor".CHtml::closeTag("strong").CHtml::closeTag("p").CHtml::closeTag("td").CHtml::openTag("td")."&nbsp;".CHtml::closeTag("td").CHtml::openTag("td").'<a class="btn btn-block btn-primary fancyFrame" href="'.Yii::app()->createUrl('carrito/pregunta').'?id='.$idProducto.'&receptor='.$model->id_usuario.'&emisor='.$idUsuario.'" style="font-size: 13px; width:90px;">Preguntar</a>'.CHtml::closeTag("td").
7884             CHtml::closeTag("tr").
7885         CHtml::closeTag("table")."<br>".*/
7886         (($paginaVendedor)?
7887             CHtml::openTag("div",array("id"=>"preguntas", "class"=>"")).
7888                 CHtml::openTag("div", array("class"=>"well well-small F_cajaDeComentarios", 'style'=>'margin-bottom: 0px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;')).
7889                     CHtml::tag("div", array("class"=>"alert alert-info", 'style'=>'display:none;'), "", true).
7890                     CHtml::textArea('comentario', '', array('id'=>'preguntaCont', 'class'=>'input-block-level form-control', 'placeholder'=>'Escriba su pregunta...', 'rows'=>1)).
7891                     CHtml::openTag("div", array('class'=>'ocultables', 'style'=>'display:none; border-top:1px solid #e3e3e3; padding-top:5px;'), "", true).

Stack Trace

#0
+
 /var/www/html/site.autobest_current/protected/views/site/pages/detalle_accesorio.php(327): CarritoController::actionInsertaPreguntas(Producto)
322     </div>
323 </div>'; ?>
324 <div class="container">
325     <div class="row">
326         <div class="col-xs-12">
327             <?php echo '<h4>Preguntas Sobre el Producto</h4> '.CarritoController::actionInsertaPreguntas($model); ?>
328         </div>
329     </div>
330 </div>
331 <script type="text/javascript">
332     $(document).ready(function(e) {
#13
+
 /var/www/html/site.autobest_current/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 04:19:02 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.13