Error

Call to a member function previous() on null

/home/klient.dhosting.pl/dobratorba/projektb.com.pl/public_html/protected/controllers/SiteController.php(141)

129                 $this->pageTitle = 'Wirtualne spacery, Panoramy, wirtualne wycieczki, częstochowa, śląsk';
130                 break;
131             case 'STRONY WWW':
132                 $this->pageTitle = 'Strony internetowe www, Projektowanie stron www, sklepy, Częstochowa';
133                 break;
134             case 'ZDJĘCIA OBROTOWE 360 STOPNI':
135                 $this->pageTitle = 'Fotografia Produktowa 360 / 3D - Zdjęcia obrotowe, Częstochowa, Śląsk';
136                 break;
137             default :
138                 $this->pageTitle = 'Fotografia produktowa, packshot, reklama, zdjęcia, częstochowa, śląsk';
139         }
140 
141         $previous = $model->previous($model->sort)->find();
142         $next = $model->next($model->sort)->find();
143         $others = Zdjecia::model()->with('butyRodzaje', 'files', 'czapkiDetales:one')->findAll('buty_rodzaje_id=:cat_id and t.id != :id',
144             array(':cat_id'=> $model->buty_rodzaje_id, ':id' => $model->id ));
145         
146         $this->render('gallery_item', array('model' => $model, 'previous' => $previous, 'next' => $next, 'others' => $others));
147     }
148 
149     /**
150      * This is the action to handle external exceptions.
151      */
152     public function actionError()
153     {

Stack Trace

#9
+
 /home/klient.dhosting.pl/dobratorba/projektb.com.pl/public_html/index.php(14): CApplication->run()
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 error_reporting(E_PARSE);
12 ini_set('display_errors', '1');
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 10:30:23 LiteSpeed Yii Framework/1.1.13