PHP notice

Undefined offset: 0

/var/www/languagetrainers.com/public/reviews/music-reviews/protected/views/site/review.php(83)

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

Stack Trace

#4
+
 /var/www/languagetrainers.com/public/reviews/music-reviews/protected/controllers/SiteController.php(107): CController->render("review", array("music" => Music, "related_reviews" => array()))
102         $related_reviews = Music::model()->findAll($criteria);
103         if (!$music)
104             throw new CHttpException(404, 'The requested page does not exist.');           
105         $this->render('review', array(
106             'music' => $music,
107             'related_reviews'=>$related_reviews));
108     }
109     
110     public function actionLyrics() {
111         $this->layout = false;
112         $music = Music::model()->findByAttributes(array('url'=>$_GET['url']));
#17
+
 /var/www/languagetrainers.com/public/reviews/music-reviews/index.php(20): CApplication->run()
15 defined('YII_DEBUG') or define('YII_DEBUG',true);
16 // specify how many levels of call stack should be shown in each log message
17 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
18 
19 require_once($yii);
20 Yii::createWebApplication($config)->run();
2024-03-28 16:41:38 nginx/1.22.0 Yii Framework/1.1.13