PHP notice

Undefined variable: fileForPreviw

/var/www/sites571/data/www/gigafootball.net/protected/views/photo/view.php(30)

18         <div class="row">
19           <div class="col-md-8">
20             <div class="blog-entry">
21               <div class="blog-entry-content no-border">
22                 <div class="category"><span class="badge"><?php echo BasicFunctions::getSectionName($photo->categ); ?></span></div>
23                 <h1><?php echo $photo->name; ?></h1>
24                 <div class="date"><i class="fa fa-calendar"></i> <?php echo BasicFunctions::trueDate($photo->date); ?></div>
25                 <div class="content">
26 
27                                                     <!--Social-->
28                                                     <div class="social-buttons__share social-buttons__share__top" style="text-align: center;">
29                                                              <div class="social-buttons__share__button">
30                                                                      <a class="social-buttons__share__fb" style="cursor: pointer;" onclick="Share.facebook('http://gigafootball.net/photo/<?php echo $_GET['id'] ?>', '<?php echo htmlentities($photo->name, ENT_QUOTES, 'UTF-8'); ?>', '<?php echo $fileForPreviw; ?>', '')"></a>
31                                                              </div>
32                                                              <div class="social-buttons__share__button">
33                                                                      <a class="social-buttons__share__vk" style="cursor: pointer;" onclick="Share.vkontakte('http://gigafootball.net/photo/<?php echo $_GET['id'] ?>', '<?php echo htmlentities($photo->name, ENT_QUOTES, 'UTF-8'); ?>', '<?php echo $fileForPreviw; ?>', '')"></a>
34                                                              </div>
35                                                              <div class="social-buttons__share__button">
36                                                                      <a class="social-buttons__share__tw" style="cursor: pointer;" onclick="Share.twitter('http://gigafootball.net/photo/<?php echo $_GET['id'] ?>', '<?php echo htmlentities($photo->name, ENT_QUOTES, 'UTF-8'); ?>')"></a>
37                                                              </div>
38                                                              <div class="social-buttons__share__button">
39                                                                      <a class="social-buttons__share__od" style="cursor: pointer;" onclick="Share.odnoklassniki('http://gigafootball.net/photo/<?php echo $_GET['id'] ?>', '<?php echo htmlentities($photo->name, ENT_QUOTES, 'UTF-8'); ?>')"></a>
40                                                              </div>
41                                                              <div class="social-buttons__share__button">
42                                                                  <a class="social-buttons__share__ya" style="cursor: pointer;" onclick="Share.ya('http://gigafootball.net/photo/<?php echo $_GET['id'] ?>', '<?php echo htmlentities($photo->name, ENT_QUOTES, 'UTF-8'); ?>')"></a>

Stack Trace

#4
+
 /var/www/sites571/data/www/gigafootball.net/protected/controllers/PhotoController.php(71): CController->render("view", array("photo" => Photo, "similar" => array(Photo, Photo, Photo, Photo, ...)))
66             $criteria->addNotInCondition('id', array($photo->id));
67             $criteria->limit = 5;
68             $criteria->order = 'id DESC';
69             $similar = Photo::model()->findAll($criteria);
70 
71             $this->render('view', array('photo' => $photo, 'similar' => $similar));
72         }else{
73             $this->redirect(Yii::app()->request->baseUrl.'/site/error/');
74             exit;
75         }
76     }
#14
+
 /var/www/sites571/data/www/gigafootball.net/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-19 06:48:37 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.13