PHP warning

Undefined variable $file_path

/home/platne/serwer148523/public_html/juliankernbach.com/protected/views/site/work.php(23)

11 $baseUrl = Yii::app()->request->baseUrl;
12 $id = (int) substr(parse_url($film, PHP_URL_PATH), 1);
13 $iframe = "<iframe src='https://player.vimeo.com/video/".$id."' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
14 // $loadCover = $this->loadCover($model->id);
15 // $file_path = $loadCover['file_path'];
16 // $file_name = $loadCover['file_name'];
17 /*
18 Facebook
19 */
20 
21 Yii::app()->clientScript->registerMetaTag("Julian A.Ch. Kernbach - $title", null, null, array('property' => "og:title"));
22 Yii::app()->clientScript->registerMetaTag(strip_tags($description), null, null, array('property' => "og:description"));
23 Yii::app()->clientScript->registerMetaTag("$host$file_path$file_name", null, null, array('property' => "og:image")); 
24 
25 list($width, $height) = getimagesize("$host$file_path$file_name");
26 Yii::app()->clientScript->registerMetaTag("$width", null, null, array('property' => "og:image:width")); 
27 Yii::app()->clientScript->registerMetaTag("$height", null, null, array('property' => "og:image:height")); 
28 
29 
30 /*
31 Twitter
32 */
33 
34 Yii::app()->clientScript->registerMetaTag("film", null, null, array('property' => "twitter:card")); 
35 Yii::app()->clientScript->registerMetaTag("$pageFullUrl", null, null, array('property' => "twitter:site")); 

Stack Trace

#4
+
 /home/platne/serwer148523/public_html/juliankernbach.com/protected/controllers/SiteController.php(45): CController->render("work", array("model" => Portfolio))
40         $model = $this->loadPortfolio($slug);
41         $count = Portfolio::model()->findByPk($model->id);
42         $count->saveCounters(array('views'=>1));
43 
44         $this->render('work',array(
45             'model'=>$model,
46         ));
47     
48     }
49 
50     public function actionContact()
#14
+
 /home/platne/serwer148523/public_html/juliankernbach.com/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 
15 Yii::app()->db;
2024-03-29 11:31:44 Apache Yii Framework/1.1.10