PHP notice

Trying to get property of non-object

/var/www/bsVolume1/production-todoalacarta/app/todoalacartaApp/controllers/SelectionController.php(255)

243                         $('#searchBarContainer').removeClass('hide');
244                     "); 
245         }
246         
247         $this->render('designs', array(
248             'designs' => array_map(function($d) {
249                                         return array('id'=>$d->id,'name'=>$d->name,'thumb'=>$d->thumb,'thumb2'=>$d->thumb2, 
250                                                 'exclusiveDesign'=>$d->exclusiveDesign, 
251                                                 );
252                                     }
253                         ,$designs),
254 
255             'product' => array('id'=>$id,'name'=>Product::model()->findByPk($id)->name),
256 
257             'instructionOptions' => $instructionOptions,
258 
259             // si el usuario está editando un pedido existente también me puedes pasar esto (es todo opcional)
260             'order'     => null,
261             'orderLine' => null,
262             'design'    => null,
263             'format'    => null,
264             'units'     => 1,
265 
266             'orderParams' => array(),
267 

Stack Trace

#14
+
 /var/www/bsVolume1/production-todoalacarta/web/index.php(16): CApplication->run()
11     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 }
13 
14 // init the app
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-28 16:21:15 Apache/2.2.22 (Debian) Yii Framework/1.1.14