PHP notice

Trying to get property of non-object

/var/www/html/site.cosmositios.com_current/protected/views/cuenta/editarProducto.php(972)

960                 </div>
961             </section>';
962             $this->endWidget();
963         }
964     }
965 ?>
966 <?php
967 if(isset($_GET["id"])){
968     Yii::app()->clientScript->registerScript('readyCatalogues','
969         $("#Producto_categoria_0").change();
970         //cargarAttributos();
971         //cargaMarcas();
972         //cargarGarantias("'.$model->productoFormaVentas[0]["id_evento"].'", "'.$model->productoFormaVentas[0]["id_garantia"].'");
973     ',CClientScript::POS_LOAD);
974 }
975 ?>

Stack Trace

#4
+
 /var/www/html/site.cosmositios.com_current/protected/controllers/CuentaController.php(734): CController->render("editarProducto", array("model" => null, "vars" => array("bandera" => 0, "tipoUsuario" => 1, "galeria" => array(), "inventario" => "803", ...)))
729             }else{
730                 $vars["formaPago"] .= '<input type="checkbox" name="FormaPago[]"'.$checkFP.' value="'.$forma["id"].'"><label for="FormaPago_'.$forma["id"].'">&nbsp;'.$forma["banco"].'</label><br>';
731             }
732         }
733         
734         $this->render('editarProducto', array("model"=>$model, "vars"=>$vars));
735     }
736     
737     public function actionEditarProducto2(){
738         if(isset($_GET["id"]) && $_GET["id"] != ""){
739             $model=Producto::model()->findByPk($_GET["id"]);
#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 11:16:39 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.13