PHP notice

Undefined offset: 0

/var/www/languagetrainers.com/public/reviews/foreign-film-reviews/protected/views/site/review.php(81)

69 
70       <span class="social">
71 
72 
73         <span itemscope itemtype="http://schema.org/Review">
74           <span itemprop="itemReviewed" itemscope itemtype="https://schema.org/Movie">
75             <meta itemprop="name" content="<?php echo $movie->metadata->title ?>" />
76             <meta itemprop="image" content="<?php echo Yii::app()->params['imagesPath'] ?>/uploads/<?php echo Helpers::encodeURIComponent($movie->cover_pic) ?>">
77           </span>
78           <meta itemprop="name" content="I just read this review for “<?php echo $movie->metadata->title ?>” film and there's plenty more where that came from! Visit Language Trainers Foreign Film Reviews and see what the experts have to say." />
79           <span itemprop="author" itemscope itemtype="https://schema.org/Person">
80           <?php $review=(Review::model()->getApprovedReviews($movie->id)); ?>
81             <span itemprop="name"><?php echo $review[0]->reviewer->profile->first_name ?> <?php echo $review[0]->reviewer->profile->last_name ?></span>
82           </span>         
83         </span>
84         <div id="linkshare"><span class="shares">Share this film:</span>
85           <script>
86             function fbs_click() {
87               u = location.href;
88               t = document.title;
89               window.open("http://www.facebook.com/sharer.php?s=100&p[url]=" + encodeURIComponent(u) + "&p[title]=" + encodeURIComponent(t) +
90                 "&p[summary]=Expert reviews on films from around the world! Check out our Foreign Film Reviews to see which movies our critics recommend!" +
91                 "&p[images][0]=http://languagetrainers.com/reviews/foreign-film-reviews/uploads/<?php echo $movie->cover_pic ?>", 'sharer', 'toolbar=0,status=0,width=626,height=436');
92               return false;
93             };

Stack Trace

#4
+
 /var/www/languagetrainers.com/public/reviews/foreign-film-reviews/protected/controllers/SiteController.php(99): CController->render("review", array("movie" => Movie))
094                
095         $movie = Movie::model()->findByAttributes(array('url'=>$_GET['url']));
096         if (!$movie)
097             throw new CHttpException(404, 'The requested page does not exist.');           
098         $this->render('review', array(
099             'movie' => $movie));
100     }
101 
102     
103     public function actionLeaveReview() {
104         $movie = Movie::model()->findByPk($_GET['id']);         
#17
+
 /var/www/languagetrainers.com/public/reviews/foreign-film-reviews/index.php(19): CApplication->run()
14 defined('YII_DEBUG') or define('YII_DEBUG',true);
15 // specify how many levels of call stack should be shown in each log message
16 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
2024-03-29 09:25:33 nginx/1.22.0 Yii Framework/1.1.13