PHP notice

Trying to get property 'default' of non-object

/home/tiffanyproductio/public_html/protected/components/clsFunctions.php(4191)

4179     public static function getPageTemplate($opt = null) {
4180         $opt               = (object) array(
4181             'page'       => isset($opt->page) ? $opt->page : '',
4182             'controller' => isset($opt->controller) ? strtoupper($opt->controller) : '',
4183             'opt'        => isset($opt->opt) ? $opt->opt : '',
4184         );
4185         // Get page positions
4186         $fnc               = 'getPageTemplate' . $opt->controller;
4187         $get_page_template = clsParams::$fnc();
4188         // Get widgets functions for page
4189         $fnc               = 'getWidgetsForPages' . $opt->controller;
4190         $pageData          = clsParams::$fnc($opt->page);
4191         $default_template  = $pageData->default->page_template;
4192         $page_template     = self::getPageTemplateOptions($get_page_template->$default_template, $pageData->default);
4193 
4194         if (isset($pageData->default->structure) && $pageData->default->structure) {
4195             foreach ($pageData->default->structure as $position => $structure) {
4196                 $page_template->$position = $structure;
4197             }
4198         }
4199 
4200         $data = self::getRenderBody($pageData, $opt->opt);
4201 
4202         $return = (object) array(
4203             'data'          => $data,

Stack Trace

#0
+
 /home/tiffanyproductio/public_html/protected/controllers/SiteController.php(920): clsFunctions::getPageTemplate(stdClass)
915         $opt  = (object) array(
916             'page'       => $this->action->id,
917             'controller' => Yii::app()->controller->id,
918             'opt'        => array(),
919         );
920         $data = clsFunctions::getPageTemplate($opt);
921 
922         $this->render('page', array(
923             'page_template' => $data->page_template,
924             'data'          => $data->data,
925         ));
#8
+
 /home/tiffanyproductio/public_html/index.php(28): CApplication->run()
23     $yii=dirname(__FILE__).'/yii/framework/yii.php';
24     $config=dirname(__FILE__).'/protected/config/main.php';
25 
26     require_once($yii);
27 
28     Yii::createWebApplication($config)->run();
29 /* } else {
30     ?>
31 <html>
32     <head>
33         <title>Tiffany Production</title>
2024-03-19 08:05:34 LiteSpeed Yii Framework/1.1.14