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_nuevo.php(1737): CarritoController::actionInsertaPreguntas(Producto)
1732     </div>
1733     <div class="row">
1734         <div class="col-xs-12">
1735             <a name="preguntas"></a>
1736             <h2 class="text-center">¿Tienes Preguntas sobre el <?php echo $p->modelo0->modelo; ?>?<br /><small></small></h2>
1737             <?php echo CarritoController::actionInsertaPreguntas($p); ?>
1738             <hr />
1739             <p style="text-align: justify;"><i class="fa fa-exclamation-triangle fa-3x pull-left" aria-hidden="true">&nbsp;</i><span style="font-size:10px;">Las imágenes de los vehículos mostrados se exhiben con fines referenciales y son de carácter únicamente ilustrativas y son propiedad de cada una de las marcas respectivas, estas pueden presentar variaciones por cambios. Podrían existir diferencias entre las imágenes, dimensiones y características reales de los mismos. La información referida esta descritas en las fichas técnicas correspondientes. El contenido de la presente es estrictamente informativo, por lo que no constituye una oferta legal alguna.</span></p>
1740         </div>
1741     </div>
1742 </div>
#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 06:22:31 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.13