PHP warning
include(Date_Create.php): failed to open stream: No such file or directory /var/www/yii/framework/YiiBase.php(423)
`411 {
412 include($classFile);
413 if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
414 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
415 '{class}'=>$className,
416 '{file}'=>$classFile,
417 )));
418 break;
419 }
420 }
421 }
422 else
423 include($className.'.php');
424 }
425 else // class name with namespace in PHP 5.3
426 {
427 $namespace=str_replace('\\','.',ltrim($className,'\\'));
428 if(($path=self::getPathOfAlias($namespace))!==false)
429 include($path.'.php');
430 else
431 return false;
432 }
433 return class_exists($className,false) || interface_exists($className,false);
434 }
435 return true;
Stack Trace
#0
– /var/www/yii/framework/YiiBase.php(423): YiiBase::autoload()
418 break;
419 }
420 }
421 }
422 else
423 include($className.'.php');
424 }
425 else // class name with namespace in PHP 5.3
426 {
427 $namespace=str_replace('\\','.',ltrim($className,'\\'));
428 if(($path=self::getPathOfAlias($namespace))!==false)
#1
– /var/www/yii/framework/YiiBase.php(298): YiiBase::autoload("Date_Create")
293 array('{alias}'=>$namespace)));
294 }
295
296 if(($pos=strrpos($alias,'.'))===false) // a simple class name
297 {
298 if($forceInclude && self::autoload($alias))
299 self::$_imports[$alias]=$alias;
300 return $alias;
301 }
302
303 $className=(string)substr($alias,$pos+1);
#2
– /var/www/yii/framework/validators/CValidator.php(187): YiiBase::import("Date_Create", true)
182 {
183 $params['attributes']=$attributes;
184 if(isset(self::$builtInValidators[$name]))
185 $className=Yii::import(self::$builtInValidators[$name],true);
186 else
187 $className=Yii::import($name,true);
188 $validator=new $className;
189 foreach($params as $name=>$value)
190 $validator->$name=$value;
191 }
192
#3
– /var/www/yii/framework/base/CModel.php(285): CValidator::createValidator("Date_Create", Informschool, "User_ID, DISTRICT_ID, Vid_Mestnosti, Tip_Uch, Vsego_Uchitel_Uch,...", array(0 => "numerical", "integerOnly" => true))
280 {
281 $validators=new CList;
282 foreach($this->rules() as $rule)
283 {
284 if(isset($rule[0],$rule[1])) // attributes, validator name
285 $validators->add(CValidator::createValidator($rule[1],$this,$rule[0],array_slice($rule,2)));
286 else
287 throw new CException(Yii::t('yii','{class} has an invalid validation rule. The rule must specify attributes to be validated and the validator name.',
288 array('{class}'=>get_class($this))));
289 }
290 return $validators;
#4
– /var/www/yii/framework/base/CModel.php(259): CModel->createValidators()
254 * @return array the validators applicable to the current {@link scenario}.
255 */
256 public function getValidators($attribute=null)
257 {
258 if($this->_validators===null)
259 $this->_validators=$this->createValidators();
260
261 $validators=array();
262 $scenario=$this->getScenario();
263 foreach($this->_validators as $validator)
264 {
#5
– /var/www/yii/framework/base/CModel.php(302): CModel->getValidators("Poln_Naz_Uch")
297 * @param string $attribute attribute name
298 * @return boolean whether the attribute is required
299 */
300 public function isAttributeRequired($attribute)
301 {
302 foreach($this->getValidators($attribute) as $validator)
303 {
304 if($validator instanceof CRequiredValidator)
305 return true;
306 }
307 return false;
#6
– /var/www/yii/framework/web/helpers/CHtml.php(1197): CModel->isAttributeRequired("Poln_Naz_Uch")
1192 */
1193 public static function activeLabelEx($model,$attribute,$htmlOptions=array())
1194 {
1195 $realAttribute=$attribute;
1196 self::resolveName($model,$attribute); // strip off square brackets if any
1197 $htmlOptions['required']=$model->isAttributeRequired($attribute);
1198 return self::activeLabel($model,$realAttribute,$htmlOptions);
1199 }
1200
1201 /**
1202 * Generates a text field input for a model attribute.
#7
– /var/www/yii/framework/web/widgets/CActiveForm.php(563): CHtml::activeLabelEx(Informschool, "Poln_Naz_Uch", array())
558 * @param array $htmlOptions additional HTML attributes.
559 * @return string the generated label tag
560 */
561 public function labelEx($model,$attribute,$htmlOptions=array())
562 {
563 return CHtml::activeLabelEx($model,$attribute,$htmlOptions);
564 }
565
566 /**
567 * Renders a url field for a model attribute.
568 * This method is a wrapper of {@link CHtml::activeUrlField}.
#8
– /var/www/inform_baza/protected/views/informschool/_form.php(34): CActiveForm->labelEx(Informschool, "Poln_Naz_Uch")
29 else {}?>
30 <?php echo $form->error($model,'User_ID'); ?>
31 </div>
32
33 <div class="row">
34 <?php echo $form->labelEx($model,'Poln_Naz_Uch'); ?>
35 <?php echo $form->textarea($model,'Poln_Naz_Uch',array('rows'=>2,'cols'=>50)); ?>
36 <?php echo $form->error($model,'Poln_Naz_Uch'); ?>
37 </div>
38
39 <div class="row">
#9
– /var/www/yii/framework/web/CBaseController.php(127): require("/var/www/inform_baza/protected/views/informscho...")
122 $data=$_data_;
123 if($_return_)
124 {
125 ob_start();
126 ob_implicit_flush(false);
127 require($_viewFile_);
128 return ob_get_clean();
129 }
130 else
131 require($_viewFile_);
132 }
#10
– /var/www/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/inform_baza/protected/views/informscho...", array("model" => Informschool), true)
091 {
092 $widgetCount=count($this->_widgetStack);
093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))
094 $content=$renderer->renderFile($this,$viewFile,$data,$return);
095 else
096 $content=$this->renderInternal($viewFile,$data,$return);
097 if(count($this->_widgetStack)===$widgetCount)
098 return $content;
099 else
100 {
101 $widget=end($this->_widgetStack);
#11
– /var/www/yii/framework/web/CController.php(870): CBaseController->renderFile("/var/www/inform_baza/protected/views/informscho...", array("model" => Informschool), true)
865 */
866 public function renderPartial($view,$data=null,$return=false,$processOutput=false)
867 {
868 if(($viewFile=$this->getViewFile($view))!==false)
869 {
870 $output=$this->renderFile($viewFile,$data,true);
871 if($processOutput)
872 $output=$this->processOutput($output);
873 if($return)
874 return $output;
875 else
#12
– /var/www/inform_baza/protected/views/informschool/update.php(21): CController->renderPartial("_form", array("model" => Informschool))
16 );
17 ?>
18
19 <h1>Редактировать внесенные данные <?php echo $model->Inform_School_ID; ?></h1>
20
21 <?php $this->renderPartial('_form', array('model'=>$model)); ?>
#13
– /var/www/yii/framework/web/CBaseController.php(127): require("/var/www/inform_baza/protected/views/informscho...")
122 $data=$_data_;
123 if($_return_)
124 {
125 ob_start();
126 ob_implicit_flush(false);
127 require($_viewFile_);
128 return ob_get_clean();
129 }
130 else
131 require($_viewFile_);
132 }
#14
– /var/www/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/inform_baza/protected/views/informscho...", array("model" => Informschool), true)
091 {
092 $widgetCount=count($this->_widgetStack);
093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))
094 $content=$renderer->renderFile($this,$viewFile,$data,$return);
095 else
096 $content=$this->renderInternal($viewFile,$data,$return);
097 if(count($this->_widgetStack)===$widgetCount)
098 return $content;
099 else
100 {
101 $widget=end($this->_widgetStack);
#15
– /var/www/yii/framework/web/CController.php(870): CBaseController->renderFile("/var/www/inform_baza/protected/views/informscho...", array("model" => Informschool), true)
865 */
866 public function renderPartial($view,$data=null,$return=false,$processOutput=false)
867 {
868 if(($viewFile=$this->getViewFile($view))!==false)
869 {
870 $output=$this->renderFile($viewFile,$data,true);
871 if($processOutput)
872 $output=$this->processOutput($output);
873 if($return)
874 return $output;
875 else
#16
– /var/www/yii/framework/web/CController.php(783): CController->renderPartial("update", array("model" => Informschool), true)
778 */
779 public function render($view,$data=null,$return=false)
780 {
781 if($this->beforeRender($view))
782 {
783 $output=$this->renderPartial($view,$data,true);
784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false)
785 $output=$this->renderFile($layoutFile,array('content'=>$output),true);
786
787 $this->afterRender($view,$output);
788
#17
– /var/www/inform_baza/protected/controllers/InformschoolController.php(104): CController->render("update", array("model" => Informschool))
099 $this->redirect(array('view','id'=>$model->Inform_School_ID));
100 }
101 $this->render('update',array(
102 'model'=>$model,
103
104 ));
105 }
106
107 /**
108 * Deletes a particular model.
109 * If deletion is successful, the browser will be redirected to the 'admin' page.
#18
unknown(0): InformschoolController->actionUpdate("34")
#19
– /var/www/yii/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(InformschoolController, array("34"))
102 else if($param->isDefaultValueAvailable())
103 $ps[]=$param->getDefaultValue();
104 else
105 return false;
106 }
107 $method->invokeArgs($object,$ps);
108 return true;
109 }
110 }
#20
– /var/www/yii/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(InformschoolController, ReflectionMethod, array("r" => "informschool/update", "id" => "34"))
43 {
44 $methodName='action'.$this->getId();
45 $controller=$this->getController();
46 $method=new ReflectionMethod($controller, $methodName);
47 if($method->getNumberOfParameters()>0)
48 return $this->runWithParamsInternal($controller, $method, $params);
49 else
50 return $controller->$methodName();
51 }
52
53 }
#21
– /var/www/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("r" => "informschool/update", "id" => "34"))
304 {
305 $priorAction=$this->_action;
306 $this->_action=$action;
307 if($this->beforeAction($action))
308 {
309 if($action->runWithParams($this->getActionParams())===false)
310 $this->invalidActionParams($action);
311 else
312 $this->afterAction($action);
313 }
314 $this->_action=$priorAction;
#22
– /var/www/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction)
129 $filter=$this->itemAt($this->filterIndex++);
130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
131 $filter->filter($this);
132 }
133 else
134 $this->controller->runAction($this->action);
135 }
136 }
#23
– /var/www/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
36 */
37 public function filter($filterChain)
38 {
39 if($this->preFilter($filterChain))
40 {
41 $filterChain->run();
42 $this->postFilter($filterChain);
43 }
44 }
45
46 /**
#24
– /var/www/yii/framework/web/CController.php(1146): CFilter->filter(CFilterChain)
1141 */
1142 public function filterAccessControl($filterChain)
1143 {
1144 $filter=new CAccessControlFilter;
1145 $filter->setRules($this->accessRules());
1146 $filter->filter($filterChain);
1147 }
1148
1149 /**
1150 * Returns a persistent page state value.
1151 * A page state is a variable that is persistent across POST requests of the same page.
#25
– /var/www/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
54 * @param CFilterChain $filterChain the filter chain that the filter is on.
55 */
56 public function filter($filterChain)
57 {
58 $method='filter'.$this->name;
59 $filterChain->controller->$method($filterChain);
60 }
61 }
#26
– /var/www/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
126 {
127 if($this->offsetExists($this->filterIndex))
128 {
129 $filter=$this->itemAt($this->filterIndex++);
130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
131 $filter->filter($this);
132 }
133 else
134 $this->controller->runAction($this->action);
135 }
136 }
#27
– /var/www/yii/framework/web/CController.php(292): CFilterChain->run()
287 $this->runAction($action);
288 else
289 {
290 $priorAction=$this->_action;
291 $this->_action=$action;
292 CFilterChain::create($this,$action,$filters)->run();
293 $this->_action=$priorAction;
294 }
295 }
296
297 /**
#28
– /var/www/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete"))
261 {
262 if(($parent=$this->getModule())===null)
263 $parent=Yii::app();
264 if($parent->beforeControllerAction($this,$action))
265 {
266 $this->runActionWithFilters($action,$this->filters());
267 $parent->afterControllerAction($this,$action);
268 }
269 }
270 else
271 $this->missingAction($actionID);
#29
– /var/www/yii/framework/web/CWebApplication.php(283): CController->run("update")
278 {
279 list($controller,$actionID)=$ca;
280 $oldController=$this->_controller;
281 $this->_controller=$controller;
282 $controller->init();
283 $controller->run($actionID);
284 $this->_controller=$oldController;
285 }
286 else
287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
288 array('{route}'=>$route===''?$this->defaultController:$route)));
#30
– /var/www/yii/framework/web/CWebApplication.php(142): CWebApplication->runController("informschool/update")
137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
138 $_GET[$name]=$value;
139 }
140 else
141 $route=$this->getUrlManager()->parseUrl($this->getRequest());
142 $this->runController($route);
143 }
144
145 /**
146 * Registers the core application components.
147 * This method overrides the parent implementation by registering additional core components.
#31
– /var/www/yii/framework/base/CApplication.php(162): CWebApplication->processRequest()
157 */
158 public function run()
159 {
160 if($this->hasEventHandler('onBeginRequest'))
161 $this->onBeginRequest(new CEvent($this));
162 $this->processRequest();
163 if($this->hasEventHandler('onEndRequest'))
164 $this->onEndRequest(new CEvent($this));
165 }
166
167 /**
#32
– /var/www/inform_baza/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10
11 require_once($yii);
12 Yii::createWebApplication($config)->run();`
При попытке создания\редактирования записи на сайте(нажатия соответствующих кнопок), выдаёт ошибку(см. картинку). Другие бд на yii2 работают стабильно.
Современные инструменты для криптотрейдинга: как технологии помогают принимать решения
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости