Guest User

Untitled

a guest
May 26th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.24 KB | None | 0 0
  1. PHP Error
  2.  
  3. include(tuotetietoryhma.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
  4.  
  5. /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/YiiBase.php(421)
  6.  
  7. 409                 {
  8. 410                     foreach(self::$_includePaths as $path)
  9. 411                     {
  10. 412                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
  11. 413                         if(is_file($classFile))
  12. 414                         {
  13. 415                             include($classFile);
  14. 416                             break;
  15. 417                         }
  16. 418                     }
  17. 419                 }
  18. 420                 else
  19. 421                     include($className.'.php');
  20. 422             }
  21. 423             else  // class name with namespace in PHP 5.3
  22. 424             {
  23. 425                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
  24. 426                 if(($path=self::getPathOfAlias($namespace))!==false)
  25. 427                     include($path.'.php');
  26. 428                 else
  27. 429                     return false;
  28. 430             }
  29. 431             return class_exists($className,false) || interface_exists($className,false);
  30. 432         }
  31. 433         return true;
  32. Stack Trace
  33. #0 
  34. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/YiiBase.php(421): YiiBase::autoload()
  35. 416                             break;
  36. 417                         }
  37. 418                     }
  38. 419                 }
  39. 420                 else
  40. 421                     include($className.'.php');
  41. 422             }
  42. 423             else  // class name with namespace in PHP 5.3
  43. 424             {
  44. 425                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
  45. 426                 if(($path=self::getPathOfAlias($namespace))!==false)
  46. #1 
  47. unknown(0): YiiBase::autoload("tuotetietoryhma")
  48. #2 
  49. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php(371): spl_autoload_call("tuotetietoryhma")
  50. 366     {
  51. 367         if(isset(self::$_models[$className]))
  52. 368             return self::$_models[$className];
  53. 369         else
  54. 370         {
  55. 371             $model=self::$_models[$className]=new $className(null);
  56. 372             $model->_md=new CActiveRecordMetaData($model);
  57. 373             $model->attachBehaviors($model->behaviors());
  58. 374             return $model;
  59. 375         }
  60. 376     }
  61. #3 
  62. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/validators/CExistValidator.php(66): CActiveRecord::model("tuotetietoryhma")
  63. 61         if($this->allowEmpty && $this->isEmpty($value))
  64. 62             return;
  65. 63
  66. 64         $className=$this->className===null?get_class($object):Yii::import($this->className);
  67. 65         $attributeName=$this->attributeName===null?$attribute:$this->attributeName;
  68. 66         $finder=CActiveRecord::model($className);
  69. 67         $table=$finder->getTableSchema();
  70. 68         if(($column=$table->getColumn($attributeName))===null)
  71. 69             throw new CException(Yii::t('yii','Table "{table}" does not have a column named "{column}".',
  72. 70                 array('{column}'=>$attributeName,'{table}'=>$table->name)));
  73. 71
  74. #4 
  75. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/validators/CValidator.php(192): CExistValidator->validateAttribute(Tuotetieto, "id_tuotetietoryhma")
  76. 187         else
  77. 188             $attributes=$this->attributes;
  78. 189         foreach($attributes as $attribute)
  79. 190         {
  80. 191             if(!$this->skipOnError || !$object->hasErrors($attribute))
  81. 192                 $this->validateAttribute($object,$attribute);
  82. 193         }
  83. 194     }
  84. 195
  85. 196     /**
  86. 197      * Returns the JavaScript needed for performing client-side validation.
  87. #5 
  88. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/base/CModel.php(152): CValidator->validate(Tuotetieto, null)
  89. 147         if($clearErrors)
  90. 148             $this->clearErrors();
  91. 149         if($this->beforeValidate())
  92. 150         {
  93. 151             foreach($this->getValidators() as $validator)
  94. 152                 $validator->validate($this,$attributes);
  95. 153             $this->afterValidate();
  96. 154             return !$this->hasErrors();
  97. 155         }
  98. 156         else
  99. 157             return false;
  100. #6 
  101. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php(780): CModel->validate(null)
  102. 775      * meaning all attributes that are loaded from DB will be saved.
  103. 776      * @return boolean whether the saving succeeds
  104. 777      */
  105. 778     public function save($runValidation=true,$attributes=null)
  106. 779     {
  107. 780         if(!$runValidation || $this->validate($attributes))
  108. 781             return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes);
  109. 782         else
  110. 783             return false;
  111. 784     }
  112. 785
  113. #7 
  114. –  /projects/koneviesti/tuotetietokanta/intra/kv/protected/controllers/TuoteryhmaController.php(188): CActiveRecord->save()
  115. 183            
  116. 184             if ($tuoteryhma != null && $tuotetieto != null) {
  117. 185
  118. 186                 $tuotetieto->ryhmaesittelyyn = $tuotetieto->ryhmaesittelyyn ? 0 : 1;
  119. 187                                 print get_class($tuotetieto);
  120. 188                 $tuotetieto->save();
  121. 189             }
  122. 190         }
  123. 191     }
  124. 192
  125. 193     public function actionListTuotetietoryhmat() {
  126. #8 
  127. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/actions/CInlineAction.php(50): TuoteryhmaController->actionApplyRyhmaesittelyyn()
  128. 45         $controller=$this->getController();
  129. 46         $method=new ReflectionMethod($controller, $methodName);
  130. 47         if($method->getNumberOfParameters()>0)
  131. 48             return $this->runWithParamsInternal($controller, $method, $params);
  132. 49         else
  133. 50             return $controller->$methodName();
  134. 51     }
  135. 52
  136. 53 }
  137. #9 
  138. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(300): CInlineAction->runWithParams(array("tuotetieto" => "9", "id" => "5"))
  139. 295     {
  140. 296         $priorAction=$this->_action;
  141. 297         $this->_action=$action;
  142. 298         if($this->beforeAction($action))
  143. 299         {
  144. 300             if($action->runWithParams($this->getActionParams())===false)
  145. 301                 $this->invalidActionParams($action);
  146. 302             else
  147. 303                 $this->afterAction($action);
  148. 304         }
  149. 305         $this->_action=$priorAction;
  150. #10
  151. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction)
  152. 129             $filter=$this->itemAt($this->filterIndex++);
  153. 130             Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
  154. 131             $filter->filter($this);
  155. 132         }
  156. 133         else
  157. 134             $this->controller->runAction($this->action);
  158. 135     }
  159. 136 }
  160. #11
  161. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/filters/CFilter.php(41): CFilterChain->run()
  162. 36      */
  163. 37     public function filter($filterChain)
  164. 38     {
  165. 39         if($this->preFilter($filterChain))
  166. 40         {
  167. 41             $filterChain->run();
  168. 42             $this->postFilter($filterChain);
  169. 43         }
  170. 44     }
  171. 45
  172. 46     /**
  173. #12
  174. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(1144): CFilter->filter(CFilterChain)
  175. 1139      */
  176. 1140     public function filterAccessControl($filterChain)
  177. 1141     {
  178. 1142         $filter=new CAccessControlFilter;
  179. 1143         $filter->setRules($this->accessRules());
  180. 1144         $filter->filter($filterChain);
  181. 1145     }
  182. 1146
  183. 1147     /**
  184. 1148      * Generates pagination information.
  185. 1149      * This method can be used to generate pagination information given item count
  186. #13
  187. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
  188. 54      * @param CFilterChain $filterChain the filter chain that the filter is on.
  189. 55      */
  190. 56     public function filter($filterChain)
  191. 57     {
  192. 58         $method='filter'.$this->name;
  193. 59         $filterChain->controller->$method($filterChain);
  194. 60     }
  195. 61 }
  196. #14
  197. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
  198. 126     {
  199. 127         if($this->offsetExists($this->filterIndex))
  200. 128         {
  201. 129             $filter=$this->itemAt($this->filterIndex++);
  202. 130             Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
  203. 131             $filter->filter($this);
  204. 132         }
  205. 133         else
  206. 134             $this->controller->runAction($this->action);
  207. 135     }
  208. 136 }
  209. #15
  210. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(283): CFilterChain->run()
  211. 278             $this->runAction($action);
  212. 279         else
  213. 280         {
  214. 281             $priorAction=$this->_action;
  215. 282             $this->_action=$action;
  216. 283             CFilterChain::create($this,$action,$filters)->run();
  217. 284             $this->_action=$priorAction;
  218. 285         }
  219. 286     }
  220. 287
  221. 288     /**
  222. #16
  223. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl"))
  224. 252         {
  225. 253             if(($parent=$this->getModule())===null)
  226. 254                 $parent=Yii::app();
  227. 255             if($parent->beforeControllerAction($this,$action))
  228. 256             {
  229. 257                 $this->runActionWithFilters($action,$this->filters());
  230. 258                 $parent->afterControllerAction($this,$action);
  231. 259             }
  232. 260         }
  233. 261         else
  234. 262             $this->missingAction($actionID);
  235. #17
  236. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CWebApplication.php(277): CController->run("applyRyhmaesittelyyn")
  237. 272         {
  238. 273             list($controller,$actionID)=$ca;
  239. 274             $oldController=$this->_controller;
  240. 275             $this->_controller=$controller;
  241. 276             $controller->init();
  242. 277             $controller->run($actionID);
  243. 278             $this->_controller=$oldController;
  244. 279         }
  245. 280         else
  246. 281             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
  247. 282                 array('{route}'=>$route===''?$this->defaultController:$route)));
  248. #18
  249. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/web/CWebApplication.php(136): CWebApplication->runController("tuoteryhma/applyRyhmaesittelyyn")
  250. 131             foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
  251. 132                 $_GET[$name]=$value;
  252. 133         }
  253. 134         else
  254. 135             $route=$this->getUrlManager()->parseUrl($this->getRequest());
  255. 136         $this->runController($route);
  256. 137     }
  257. 138
  258. 139     /**
  259. 140      * Registers the core application components.
  260. 141      * This method overrides the parent implementation by registering additional core components.
  261. #19
  262. –  /projects/koneviesti/tuotetietokanta/intra/yii-1.1.8.r3324/framework/base/CApplication.php(158): CWebApplication->processRequest()
  263. 153      */
  264. 154     public function run()
  265. 155     {
  266. 156         if($this->hasEventHandler('onBeginRequest'))
  267. 157             $this->onBeginRequest(new CEvent($this));
  268. 158         $this->processRequest();
  269. 159         if($this->hasEventHandler('onEndRequest'))
  270. 160             $this->onEndRequest(new CEvent($this));
  271. 161     }
  272. 162
  273. 163     /**
  274. #20
  275. –  /projects/koneviesti/tuotetietokanta/intra/kv/index.php(17): CApplication->run()
  276. 12 defined('YII_DEBUG') or define('YII_DEBUG',true);
  277. 13 // specify how many levels of call stack should be shown in each log message
  278. 14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
  279. 15
  280. 16 require_once($yii);
  281. 17 Yii::createWebApplication($config)->run();
  282. 2012-01-17 10:06:14 Apache/2.2.16 (Debian) Yii Framework/1.1.8
Add Comment
Please, Sign In to add comment