PHP notice

Trying to get property of non-object

/var/www/production/app/golib/Cache/Helper.php(267)

255             $tw->apponly_request(array('method' => 'get', 'url' => $tw->url('1.1/help/configuration')));
256             return json_decode($tw->response['response'], true);
257         },
258     ),
259     'Advantages' => array(
260         'time' => 0,
261         'provider' => function() {
262             $out = '<div class="span-96">';
263             foreach (explode("\n", trim(\Misc::model()->find('`key` = ?', array('advantages'))->value)) as $line) {
264                 $line = explode(' ', $line, 2);
265                 $venue = \Venue::model()->findByPk(trim($line[0]));
266                 $line = trim($line[1]);
267                 $out .= '<div class="span-45">' . \Yii\Html::link($venue->name, \Utils::baseHref(array('skip_region' => true)) . $venue->region->short_url . '/venues/' . $venue->id . '/' . \Venue::urlEncodedName($venue->id)) . ' - ' . $line . '</div>';
268             }
269             $out .= '</div>';
270             return $out;
271         }
272     ),
273 
274     # Model
275     'SpecialEvent' => function($model) {
276             $region_id = $model->venue->region_id;
277             \Cacher::delete('UpcomingSpecialEvents', array('region_id' => $region_id, 'type' => null));
278     },
279     'Announcement' => function($model) {

Stack Trace

#0
+
 /var/www/production/app/golib/Cacher.php(70): Utils::Cache\{closure}(array())
65         
66         if($force || $cached === false ) {
67             if( isset($caching['provider']) ) {
68                 $dataFunction = $caching['provider'];
69                 
70                 $data = $dataFunction($params);
71                 
72                 if( $data !== null ) {
73                     $cache->set($cacheKey, $data, $expire );
74                 }
75                 
#1
+
 /var/www/production/app/views/site/advantages.php(12): Cacher::get("Advantages")
07     <div class="span-26 prepend-7 last">
08         <img width="300" height="193" src="/images/advantages_2016_small.png"/>
09     </div>
10     <div class="span-64">
11         <p><b>Participating Venues:</b></p>
12         <p><?php echo \Cacher::get('Advantages'); ?></p>
13     </div>
14 </div>
#6
+
 /var/www/production/app/controllers/SiteController.php(360): CController->render("advantages")
355     public function actionAdvantages() {
356 //Galaxy code changes to display seo page title and meta description
357         $this->pageTitle = 'Purchase the Advantages Card | GoingOut';
358         $this->pageDescription = 'Get access to great perks at some of the best Restaurants, Bars and Clubs in Boston & Rhode Island through GoingOut Advantages Card. Purchase Now!';
359 
360         $this->render('advantages');
361     }
362 
363     public function actionFreeAdmission() {
364         $this->redirect('/advantages');
365     }
2024-03-19 02:36:51 Apache/2.2.22 (Ubuntu) PHP/5.4.17-5+debphp.org~precise+1 mod_ssl/2.2.22 OpenSSL/1.0.1 Yii Framework/1.1.15