PHP notice

Trying to get property of non-object

/var/www/html/site.cosmositios.com_current/protected/views/carrito/reservamesa.php(607)

595         }).on("click", ".thumbnail.accesorios", function(e){
596             e.preventDefault();
597             
598             $(this).find(".precioCarta:last").click();
599             
600         }).on("click", ".nav.nav-pills .disabled a", function(e){
601             e.preventDefault();
602         });
603     ');
604     
605     if(isset($_GET['p']) && isset($_GET['id'])){
606         $p = Producto::model()->findByPk($_GET['id']);
607         if($p->marca0 != NULL && $p->marca0->ruta_logo != "" && $_GET['p'] > 2){
608             $logo = '<img src="/'.$p->marca0->ruta_logo.'" style="left: 0; margin-right: 5px; max-height: 70px; max-width: 130px; padding:0 15px; position: absolute; top: 0;" class="bgBody hidden-xs" />';
609         }else{
610             $logo = '';
611         }
612         $ultimaCategoria = "Servicio";
613         if($p->productoCategorias !== null){
614             $breadcrumbs = array();
615             $categorias = array();
616             $nomCats = array();
617             foreach($p->productoCategorias as $c){
618                 $categorias[$c->idCategoria->id_padre] = $c->idCategoria->id;
619                 $nomCats[$c->idCategoria->id] = $c->idCategoria->categoria;

Stack Trace

#4
+
 /var/www/html/site.cosmositios.com_current/protected/controllers/CarritoController.php(10714): CController->render("reservamesa", array("vendedor" => Usuario))
10709                     <h4>Solicitud No Enviada</h4>
10710                     <p>Ocurrió un error durante el envío de su solicitud, por favor inténtelo de nuevo más tarde.</p>
10711                 </div>';
10712             }
10713         }
10714         $this->render('reservamesa', $vars);
10715     }
10716     public function actionReservaServicio(){
10717         $vars = array();
10718         $urlManager = AMTUrlManager::checkDomain();
10719         $user = $urlManager;
#17
+
 /var/www/html/site.cosmositios.com_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();
14 ?>
2024-03-28 09:12:02 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.13