PHP Error

Description

Trying to get property of non-object

Source File

/home/data/web/vhosts/saxophone.org/protected/controllers/MuseumController.php(356)

00344:     }
00345:     
00346:     /********************************
00347:      * 
00348:      * Publication Actions 
00349:      */
00350:     
00351:     public function actionPublications()
00352:     {
00353:         $Manufacturers = MuseumManufacturer::model()->scopeOrder("`order`,`name` ASC")->findAll();
00354:         if(isset($_GET['id'])) {
00355:             $Publication = ManufacturerPublication::model()->findByPk($_GET['id']);
00356: $view = ((count($Publication->subPublications)<1)||isset($_GET['viewHead'])) ? 'publications/view' : 'publications/group';
00357: $this->pageTitle = $Publication->name." | Saxophone.org"; 00358: $this->render($view,array( 00359: 'ManufacturerPublication' => $Publication, 00360: 'Manufacturers' => $Manufacturers, 00361: )); 00362: } 00363: elseif(isset($_GET['manufacturer'])) { 00364: $Manufacturer = MuseumManufacturer::model()->findByPk($_GET['manufacturer']); 00365: $this->pageTitle = $Manufacturer->name." Publications | Saxophone.org"; 00366: $this->render('publications/manufacturerPublications',array( 00367: 'Manufacturer' => $Manufacturer, 00368: 'Manufacturers' => $Manufacturers,

Stack Trace

#0 /home/data/web/vhosts/saxophone.org/framework/web/actions/CInlineAction.php(32): MuseumController->actionPublications()
#1 /home/data/web/vhosts/saxophone.org/framework/web/CController.php(300): CInlineAction->run()
#2 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilterChain.php(129): MuseumController->runAction()
#3 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilter.php(41): CFilterChain->run()
#4 /home/data/web/vhosts/saxophone.org/protected/components/Controller.php(281): CheckActiveUserFilter->filter()
#5 /home/data/web/vhosts/saxophone.org/framework/web/filters/CInlineFilter.php(59): MuseumController->filterCheckActiveUser()
#6 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilterChain.php(126): CInlineFilter->filter()
#7 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilter.php(41): CFilterChain->run()
#8 /home/data/web/vhosts/saxophone.org/protected/components/Controller.php(287): UserFilter->filter()
#9 /home/data/web/vhosts/saxophone.org/framework/web/filters/CInlineFilter.php(59): MuseumController->filterUserFilter()
#10 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilterChain.php(126): CInlineFilter->filter()
#11 /home/data/web/vhosts/saxophone.org/framework/web/CController.php(283): CFilterChain->run()
#12 /home/data/web/vhosts/saxophone.org/framework/web/CController.php(257): MuseumController->runActionWithFilters()
#13 /home/data/web/vhosts/saxophone.org/framework/web/CWebApplication.php(324): MuseumController->run()
#14 /home/data/web/vhosts/saxophone.org/framework/web/CWebApplication.php(121): WebApplication->runController()
#15 /home/data/web/vhosts/saxophone.org/framework/base/CApplication.php(135): WebApplication->processRequest()
#16 /home/data/web/vhosts/saxophone.org/index.php(36): WebApplication->run()
2024-03-28 08:52:08 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.3