PHP Error

Description

Undefined index: type

Source File

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

01007:         //echo 'RUNNING';
01008:         $MuseumManufacturer = MuseumManufacturer::model()->findByPk($_GET['id']);
01009:         if(!is_object($MuseumManufacturer))
01010:             throw new HttpMissingContentException(HttpMissingContentCodes::MUSEUM);
01011:         
01012:         $this->breadcrumbs = array(
01013:             'Museum' => array('/museum'),
01014:             $MuseumManufacturer->name." factsheet"
01015:         );
01016:         $this->render('manufacturer', array(
01017:             'MuseumManufacturer' => $MuseumManufacturer,
01018:             'User' => User::getCurrentUser(),
01019: 'type' => $_GET['type']
01020: )); 01021: } 01022: 01023: public function actionSerialNumberLookup() { 01024: $SerialLookupForm = new SerialLookupForm(); 01025: $performedSearch = false; 01026: $MuseumSerialNumbers = null; 01027: if(isset($_POST['SerialLookupForm'])) { 01028: $SerialLookupForm->attributes = $_POST['SerialLookupForm']; 01029: $this->performAjaxValidation($SerialLookupForm); 01030: if($SerialLookupForm->validate()) { 01031: $performedSearch = true;

Stack Trace

#0 /home/data/web/vhosts/saxophone.org/framework/web/actions/CInlineAction.php(32): MuseumController->actionManufacturer()
#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-19 04:48:40 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.3