Closed Linet3GithubApiUser closed 9 years ago
PHP notice
Trying to get property of non-object
C:\Program Files (x86)\linet\apache\htdocs\protected\controllers\DocsController.php(86)
74 75 76 /* 77 * Creates a new model. 78 * If creation is successful, the browser will be redirected to the 'view' page. 79 / 80 public function actionCreate($type = 1) { 81 $type = (isset($_POST['Docs']['doctype'])) ? (int) $_POST['Docs']['doctype'] : $type; 82 $model = new Docs(); 83 84 $model->doctype = $type; 85 $model->docType = Doctype::model()->findByPk($type); 86 if(!is_null($model->docType->oppt_account_type)) 87 $model->scenario="opppt_req"; 88 89 if($model->docType->id==9)//invrcpt 90 $model->scenario="invrcpt"; 91 92 93 // Uncomment the following line if AJAX validation is needed 94 $this->performAjaxValidation($model); 95 96 97 if (isset($_POST['Docs'])) { 98 $model->attributes = $_POST['Docs']; Stack Trace
unknown(0): DocsController->actionCreate("6")
– C:\Program Files (x86)\linet\apache\htdocs\protected\modules\rights\components\RController.php(36): CFilter->filter(CFilterChain) 31 / 32 public function filterRights($filterChain) 33 { 34 $filter = new RightsFilter; 35 $filter->allowedActions = $this->allowedActions(); 36 $filter->filter($filterChain); 37 } 38 39 / 40 * @return string the actions that are always allowed separated by commas. 41 /
– C:\Program Files (x86)\linet\apache\htdocs\index.php(23): CApplication->run() 18 $config=require_once($load); 19 }else{ 20 $config=dirname(FILE).'/protected/config/main.php'; 21 } 22 23 Yii::createWebApplication($config)->run(); 2015-10-04 15:10:43 Apache Yii Framework/1.1.14
PHP notice
Trying to get property of non-object
C:\Program Files (x86)\linet\apache\htdocs\protected\controllers\DocsController.php(86)
74
75
76 /* 77 * Creates a new model. 78 * If creation is successful, the browser will be redirected to the 'view' page. 79 / 80 public function actionCreate($type = 1) { 81 $type = (isset($_POST['Docs']['doctype'])) ? (int) $_POST['Docs']['doctype'] : $type; 82 $model = new Docs(); 83
84 $model->doctype = $type; 85 $model->docType = Doctype::model()->findByPk($type); 86 if(!is_null($model->docType->oppt_account_type)) 87 $model->scenario="opppt_req"; 88
89 if($model->docType->id==9)//invrcpt 90 $model->scenario="invrcpt"; 91
92
93 // Uncomment the following line if AJAX validation is needed 94 $this->performAjaxValidation($model); 95 96
97 if (isset($_POST['Docs'])) { 98 $model->attributes = $_POST['Docs']; Stack Trace
0
unknown(0): DocsController->actionCreate("6")
1
2
3
4
5
6
– C:\Program Files (x86)\linet\apache\htdocs\protected\modules\rights\components\RController.php(36): CFilter->filter(CFilterChain) 31 / 32 public function filterRights($filterChain) 33 { 34 $filter = new RightsFilter; 35 $filter->allowedActions = $this->allowedActions(); 36 $filter->filter($filterChain); 37 } 38 39 / 40 * @return string the actions that are always allowed separated by commas. 41 /
7
8
9
10
11
12
13
14
– C:\Program Files (x86)\linet\apache\htdocs\index.php(23): CApplication->run() 18 $config=require_once($load); 19 }else{ 20 $config=dirname(FILE).'/protected/config/main.php'; 21 } 22 23 Yii::createWebApplication($config)->run(); 2015-10-04 15:10:43 Apache Yii Framework/1.1.14