Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PHP Error
- include(tuotetietoryhma.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
- /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/YiiBase.php(421)
- 409 {
- 410 foreach(self::$_includePaths as $path)
- 411 {
- 412 $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
- 413 if(is_file($classFile))
- 414 {
- 415 include($classFile);
- 416 break;
- 417 }
- 418 }
- 419 }
- 420 else
- 421 include($className.'.php');
- 422 }
- 423 else // class name with namespace in PHP 5.3
- 424 {
- 425 $namespace=str_replace('\\','.',ltrim($className,'\\'));
- 426 if(($path=self::getPathOfAlias($namespace))!==false)
- 427 include($path.'.php');
- 428 else
- 429 return false;
- 430 }
- 431 return class_exists($className,false) || interface_exists($className,false);
- 432 }
- 433 return true;
- Stack Trace
- #0
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/YiiBase.php(421): YiiBase::autoload()
- 416 break;
- 417 }
- 418 }
- 419 }
- 420 else
- 421 include($className.'.php');
- 422 }
- 423 else // class name with namespace in PHP 5.3
- 424 {
- 425 $namespace=str_replace('\\','.',ltrim($className,'\\'));
- 426 if(($path=self::getPathOfAlias($namespace))!==false)
- #1
- unknown(0): YiiBase::autoload("tuotetietoryhma")
- #2
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php(371): spl_autoload_call("tuotetietoryhma")
- 366 {
- 367 if(isset(self::$_models[$className]))
- 368 return self::$_models[$className];
- 369 else
- 370 {
- 371 $model=self::$_models[$className]=new $className(null);
- 372 $model->_md=new CActiveRecordMetaData($model);
- 373 $model->attachBehaviors($model->behaviors());
- 374 return $model;
- 375 }
- 376 }
- #3
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/validators/CExistValidator.php(66): CActiveRecord::model("tuotetietoryhma")
- 61 if($this->allowEmpty && $this->isEmpty($value))
- 62 return;
- 63
- 64 $className=$this->className===null?get_class($object):Yii::import($this->className);
- 65 $attributeName=$this->attributeName===null?$attribute:$this->attributeName;
- 66 $finder=CActiveRecord::model($className);
- 67 $table=$finder->getTableSchema();
- 68 if(($column=$table->getColumn($attributeName))===null)
- 69 throw new CException(Yii::t('yii','Table "{table}" does not have a column named "{column}".',
- 70 array('{column}'=>$attributeName,'{table}'=>$table->name)));
- 71
- #4
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/validators/CValidator.php(192): CExistValidator->validateAttribute(Tuotetieto, "id_tuotetietoryhma")
- 187 else
- 188 $attributes=$this->attributes;
- 189 foreach($attributes as $attribute)
- 190 {
- 191 if(!$this->skipOnError || !$object->hasErrors($attribute))
- 192 $this->validateAttribute($object,$attribute);
- 193 }
- 194 }
- 195
- 196 /**
- 197 * Returns the JavaScript needed for performing client-side validation.
- #5
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/base/CModel.php(152): CValidator->validate(Tuotetieto, null)
- 147 if($clearErrors)
- 148 $this->clearErrors();
- 149 if($this->beforeValidate())
- 150 {
- 151 foreach($this->getValidators() as $validator)
- 152 $validator->validate($this,$attributes);
- 153 $this->afterValidate();
- 154 return !$this->hasErrors();
- 155 }
- 156 else
- 157 return false;
- #6
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php(780): CModel->validate(null)
- 775 * meaning all attributes that are loaded from DB will be saved.
- 776 * @return boolean whether the saving succeeds
- 777 */
- 778 public function save($runValidation=true,$attributes=null)
- 779 {
- 780 if(!$runValidation || $this->validate($attributes))
- 781 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes);
- 782 else
- 783 return false;
- 784 }
- 785
- #7
- – /projects/koneviesti/tuotetietokanta/intra/kv/protected/controllers/TuoteryhmaController.php(188): CActiveRecord->save()
- 183
- 184 if ($tuoteryhma != null && $tuotetieto != null) {
- 185
- 186 $tuotetieto->ryhmaesittelyyn = $tuotetieto->ryhmaesittelyyn ? 0 : 1;
- 187 print get_class($tuotetieto);
- 188 $tuotetieto->save();
- 189 }
- 190 }
- 191 }
- 192
- 193 public function actionListTuotetietoryhmat() {
- #8
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/actions/CInlineAction.php(50): TuoteryhmaController->actionApplyRyhmaesittelyyn()
- 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 }
- #9
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(300): CInlineAction->runWithParams(array("tuotetieto" => "9", "id" => "5"))
- 295 {
- 296 $priorAction=$this->_action;
- 297 $this->_action=$action;
- 298 if($this->beforeAction($action))
- 299 {
- 300 if($action->runWithParams($this->getActionParams())===false)
- 301 $this->invalidActionParams($action);
- 302 else
- 303 $this->afterAction($action);
- 304 }
- 305 $this->_action=$priorAction;
- #10
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/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 }
- #11
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/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 /**
- #12
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(1144): CFilter->filter(CFilterChain)
- 1139 */
- 1140 public function filterAccessControl($filterChain)
- 1141 {
- 1142 $filter=new CAccessControlFilter;
- 1143 $filter->setRules($this->accessRules());
- 1144 $filter->filter($filterChain);
- 1145 }
- 1146
- 1147 /**
- 1148 * Generates pagination information.
- 1149 * This method can be used to generate pagination information given item count
- #13
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/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 }
- #14
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/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 }
- #15
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(283): CFilterChain->run()
- 278 $this->runAction($action);
- 279 else
- 280 {
- 281 $priorAction=$this->_action;
- 282 $this->_action=$action;
- 283 CFilterChain::create($this,$action,$filters)->run();
- 284 $this->_action=$priorAction;
- 285 }
- 286 }
- 287
- 288 /**
- #16
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl"))
- 252 {
- 253 if(($parent=$this->getModule())===null)
- 254 $parent=Yii::app();
- 255 if($parent->beforeControllerAction($this,$action))
- 256 {
- 257 $this->runActionWithFilters($action,$this->filters());
- 258 $parent->afterControllerAction($this,$action);
- 259 }
- 260 }
- 261 else
- 262 $this->missingAction($actionID);
- #17
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CWebApplication.php(277): CController->run("applyRyhmaesittelyyn")
- 272 {
- 273 list($controller,$actionID)=$ca;
- 274 $oldController=$this->_controller;
- 275 $this->_controller=$controller;
- 276 $controller->init();
- 277 $controller->run($actionID);
- 278 $this->_controller=$oldController;
- 279 }
- 280 else
- 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
- 282 array('{route}'=>$route===''?$this->defaultController:$route)));
- #18
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CWebApplication.php(136): CWebApplication->runController("tuoteryhma/applyRyhmaesittelyyn")
- 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
- 132 $_GET[$name]=$value;
- 133 }
- 134 else
- 135 $route=$this->getUrlManager()->parseUrl($this->getRequest());
- 136 $this->runController($route);
- 137 }
- 138
- 139 /**
- 140 * Registers the core application components.
- 141 * This method overrides the parent implementation by registering additional core components.
- #19
- – /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/base/CApplication.php(158): CWebApplication->processRequest()
- 153 */
- 154 public function run()
- 155 {
- 156 if($this->hasEventHandler('onBeginRequest'))
- 157 $this->onBeginRequest(new CEvent($this));
- 158 $this->processRequest();
- 159 if($this->hasEventHandler('onEndRequest'))
- 160 $this->onEndRequest(new CEvent($this));
- 161 }
- 162
- 163 /**
- #20
- – /projects/koneviesti/tuotetietokanta/intra/kv/index.php(17): CApplication->run()
- 12 defined('YII_DEBUG') or define('YII_DEBUG',true);
- 13 // specify how many levels of call stack should be shown in each log message
- 14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
- 15
- 16 require_once($yii);
- 17 Yii::createWebApplication($config)->run();
- 2012-01-17 10:06:14 Apache/2.2.16 (Debian) Yii Framework/1.1.8
Add Comment
Please, Sign In to add comment