Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/topic.php on line 737
Форумы портала PHP.SU :: Yii framework

 PHP.SU

Программирование на PHP, MySQL и другие веб-технологии
PHP.SU Портал     На главную страницу форума Главная     Помощь Помощь     Поиск Поиск     Поиск Яндекс Поиск Яндекс     Вакансии  Пользователи Пользователи


 Страниц (1): [1]   

> Описание: проблема с установкой модуля Rights
nordghost
Отправлено: 01 Июня, 2012 - 22:37:55
Post Id



Посетитель


Покинул форум
Сообщений всего: 319
Дата рег-ции: Окт. 2011  


Помог: 3 раз(а)




include(User.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

вот такая ошибкаа хотя всё вроде правильно расположено!


-----
<a href="http://netbeans[dot]org/">Моя любимая IDE</a> :3
 
My status
 Top
sKaa
Отправлено: 02 Июня, 2012 - 01:09:56
Post Id



Частый посетитель


Покинул форум
Сообщений всего: 979
Дата рег-ции: Окт. 2011  
Откуда: Россия г. Нижний Новгород


Помог: 25 раз(а)

[+]


nordghost, соболезную...
 
 Top
etoYA
Отправлено: 02 Июня, 2012 - 02:35:08
Post Id



Участник


Покинул форум
Сообщений всего: 1859
Дата рег-ции: Июль 2011  
Откуда: Крым


Помог: 21 раз(а)





sKaa, флудер Подмигивание
 
 Top
sKaa
Отправлено: 02 Июня, 2012 - 03:15:25
Post Id



Частый посетитель


Покинул форум
Сообщений всего: 979
Дата рег-ции: Окт. 2011  
Откуда: Россия г. Нижний Новгород


Помог: 25 раз(а)

[+]


etoYA, а как еще я должен реагировать на подобные сообщения если уважаемый nordghost не предоставляет почти никакой информации ?
 
 Top
nordghost
Отправлено: 02 Июня, 2012 - 12:13:48
Post Id



Посетитель


Покинул форум
Сообщений всего: 319
Дата рег-ции: Окт. 2011  


Помог: 3 раз(а)




PHP:
скопировать код в буфер обмена
  1.  
  2.  
  3.  
  4. <?PHP
  5.  
  6. // uncomment the following to define a path alias
  7. // Yii::setPathOfAlias('local','path/to/local-folder');
  8.  
  9. // This is the main Web application configuration. Any writable
  10. // CWebApplication properties can be configured here.
  11. return array(
  12.         'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  13.         'name'=>'La2Test',
  14.  
  15.         // preloading 'log' component
  16.         'preload'=>array('log'),
  17.  
  18.         // autoloading model and component classes
  19.         'import'=>array(
  20.                 'application.models.*',
  21.                 'application.components.*',
  22.                 'application.modules.user.*',
  23.                 'application.modules.user.components.*',
  24.                 'application.modules.rights.*',
  25.                 'application.modules.rights.components.*',
  26.         ),
  27.  
  28.         'modules'=>array(
  29.                 // uncomment the following to enable the Gii tool
  30.                 /*
  31.                 'gii'=>array(
  32.                         'class'=>'system.gii.GiiModule',
  33.                         'password'=>'Enter Your Password Here',
  34.                         // If removed, Gii defaults to localhost only. Edit carefully to taste.
  35.                         'ipFilters'=>array('127.0.0.1','::1'),
  36.                 ),
  37.                 */
  38.                 'user'=>array(
  39.                 'tableUsers' => 'tbl_users',
  40.                 'tableProfiles' => 'tbl_profiles',
  41.                 'tableProfileFields' => 'tbl_profiles_fields',
  42.         ),
  43.         'rights'=>array(
  44.                 'install'=>true,
  45.         ),
  46.                
  47.         ),
  48.  
  49.         // application components
  50.         'components'=>array(
  51.                 'user'=>array(
  52.                         'class'=>'RWebUser',
  53.                 ),
  54.                 'authManager'=>array(
  55.                         'class'=>'RDbAuthManager',
  56.                 ),
  57.                 // uncomment the following to enable URLs in path-format
  58.                 /*
  59.                 'urlManager'=>array(
  60.                         'urlFormat'=>'path',
  61.                         'rules'=>array(
  62.                                 '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  63.                                 '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  64.                                 '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
  65.                         ),
  66.                 ),
  67.                 */
  68.                 /*
  69.                 'db'=>array(
  70.                         'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
  71.                 ),
  72.                 */
  73.                 // uncomment the following to use a MySQL database
  74.                
  75.                 'db'=>array(
  76.                         'connectionString' => 'mysql:host=localhost;dbname=la2',
  77.                         'emulatePrepare' => true,
  78.                         'username' => 'site',
  79.                         'password' => 'site',
  80.                         'charset' => 'utf8',
  81.                 ),
  82.        
  83.                 'errorHandler'=>array(
  84.                         // use 'site/error' action to display errors
  85.             'errorAction'=>'site/error',
  86.         ),
  87.                 'log'=>array(
  88.                         'class'=>'CLogRouter',
  89.                         'routes'=>array(
  90.                                 array(
  91.                                         'class'=>'CFileLogRoute',
  92.                                         'levels'=>'error, warning',
  93.                                 ),
  94.                                 // uncomment the following to show log messages on web pages
  95.                                 /*
  96.                                 array(
  97.                                         'class'=>'CWebLogRoute',
  98.                                 ),
  99.                                 */
  100.                         ),
  101.                 ),
  102.         ),
  103.  
  104.         // application-level parameters that can be accessed
  105.         // using Yii::app()->params['paramName']
  106.         'params'=>array(
  107.                 // this is used in contact page
  108.                 'adminEmail'=>'webmaster@example.com',
  109.         ),
  110. );
  111.  
  112.  


Вот конфиг

модуль rights лежит в папке modules

Вот вся страница с ошибкой:
PHP:
скопировать код в буфер обмена
  1.  
  2. include(User.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
  3.  
  4. C:\VertrigoServ\www\yii\framework\YiiBase.php(418)
  5.  
  6. 406                 {
  7. 407                     foreach(self::$_includePaths as $path)
  8. 408                     {
  9. 409                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
  10. 410                         if(is_file($classFile))
  11. 411                         {
  12. 412                             include($classFile);
  13. 413                             break;
  14. 414                         }
  15. 415                     }
  16. 416                 }
  17. 417                 else
  18. 418                     include($className.'.php');
  19. 419             }
  20. 420             else  // class name with namespace in PHP 5.3
  21. 421             {
  22. 422                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
  23. 423                 if(($path=self::getPathOfAlias($namespace))!==false)
  24. 424                     include($path.'.php');
  25. 425                 else
  26. 426                     return false;
  27. 427             }
  28. 428             return class_exists($className,false) || interface_exists($className,false);
  29. 429         }
  30. 430         return true;
  31.  
  32. Stack Trace
  33. #0      
  34.  C:\VertrigoServ\www\yii\framework\YiiBase.php(418): YiiBase::autoload()
  35.  
  36. 413                             break;
  37. 414                         }
  38. 415                     }
  39. 416                 }
  40. 417                 else
  41. 418                     include($className.'.php');
  42. 419             }
  43. 420             else  // class name with namespace in PHP 5.3
  44. 421             {
  45. 422                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
  46. 423                 if(($path=self::getPathOfAlias($namespace))!==false)
  47.  
  48. #1      
  49. unknown(0): YiiBase::autoload("User")
  50. #2      
  51.  C:\VertrigoServ\www\yii\framework\db\ar\CActiveRecord.php(378): spl_autoload_call("User")
  52.  
  53. 373     {
  54. 374         if(isset(self::$_models[$className]))
  55. 375             return self::$_models[$className];
  56. 376         else
  57. 377         {
  58. 378             $model=self::$_models[$className]=new $className(null);
  59. 379             $model->_md=new CActiveRecordMetaData($model);
  60. 380             $model->attachBehaviors($model->behaviors());
  61. 381             return $model;
  62. 382         }
  63. 383     }
  64.  
  65. #3      
  66.  C:\VertrigoServ\www\tutor\protected\modules\rights\components\RAuthorizer.php(295): CActiveRecord::model("User")
  67.  
  68. 290
  69. 291         $criteria = new CDbCriteria();
  70. 292         $criteria->addInCondition(Rights::module()->userIdColumn, $userIdList);
  71. 293
  72. 294         $userClass = Rights::module()->userClass;
  73. 295         $users = CActiveRecord::model($userClass)->findAll($criteria);
  74. 296         $users = $this->attachUserBehavior($users);
  75. 297
  76. 298         $superusers = array();
  77. 299         foreach( $users as $user )
  78. 300             $superusers[] = $user->name;
  79.  
  80. #4      
  81.  C:\VertrigoServ\www\tutor\protected\modules\rights\controllers\InstallController.php(61): RAuthorizer->getSuperusers()
  82.  
  83. 56                     'confirm',
  84. 57                     'run',
  85. 58                     'error',
  86. 59                     'ready',
  87. 60                 ),
  88. 61                 'users'=>$this->_authorizer->getSuperusers(),
  89. 62             ),
  90. 63             array('deny', // Deny all users
  91. 64                 'users'=>array('*'),
  92. 65             ),
  93. 66         );
  94.  
  95. #5      
  96. +
  97.  C:\VertrigoServ\www\yii\framework\web\CController.php(1145): InstallController->accessRules()
  98. #6      
  99. +
  100.  C:\VertrigoServ\www\yii\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
  101. #7      
  102. +
  103.  C:\VertrigoServ\www\yii\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
  104. #8      
  105. +
  106.  C:\VertrigoServ\www\yii\framework\web\CController.php(292): CFilterChain->run()
  107. #9      
  108. +
  109.  C:\VertrigoServ\www\yii\framework\web\CController.php(266): CController->runActionWithFilters(CInlineAction, array("accessControl"))
  110. #10    
  111. +
  112.  C:\VertrigoServ\www\yii\framework\web\CWebApplication.php(276): CController->run("")
  113. #11    
  114. +
  115.  C:\VertrigoServ\www\yii\framework\web\CWebApplication.php(135): CWebApplication->runController("rights")
  116. #12    
  117. +
  118.  C:\VertrigoServ\www\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
  119. #13    
  120.  C:\VertrigoServ\www\tutor\index.php(13): CApplication->run()
  121.  
  122. 08 defined('YII_DEBUG') or define('YII_DEBUG',true);
  123. 09 // specify how many levels of call stack should be shown in each log message
  124. 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
  125. 11
  126. 12 require_once($yii);
  127. 13 Yii::createWebApplication($config)->run();
  128.  
  129.  
  130.  

(Отредактировано автором: 02 Июня, 2012 - 12:17:31)



-----
<a href="http://netbeans[dot]org/">Моя любимая IDE</a> :3
 
My status
 Top
Страниц (1): [1]
Сейчас эту тему просматривают: 0 (гостей: 0, зарегистрированных: 0)
« Вопросы новичков »


Все гости форума могут просматривать этот раздел.
Только зарегистрированные пользователи могут создавать новые темы в этом разделе.
Только зарегистрированные пользователи могут отвечать на сообщения в этом разделе.
 



Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB