You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are Signup model file and after it, down - error that I take. If I comment the added validation rules part - everything are working. Any thoughts?
--------------------------------------------------------------------------- end of file.
Here the error:
PHP User Error – yii\base\ErrorException
Exception 'ReflectionException' with message 'Class requed does not exist'
in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/di/Container.php:415
Stack trace:
#0 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/di/Container.php(415): ReflectionClass->__construct('requed')
#1 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/di/Container.php(358): yii\di\Container->getDependencies('requed')
#2 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/di/Container.php(151): yii\di\Container->build('requed', Array, Array)
#3 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('requed', Array, Array)
#4 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/validators/Validator.php(206): yii\BaseYii::createObject(Array)
#5 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Model.php(441): yii\validators\Validator::createValidator('requed', Object(frontend\models\SignupForm), Array, Array)
#6 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Model.php(405): yii\base\Model->createValidators()
#7 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Model.php(185): yii\base\Model->getValidators()
#8 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Model.php(768): yii\base\Model->scenarios()
#9 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(688): yii\base\Model->activeAttributes()
#10 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(210): yii\widgets\ActiveField->getClientOptions()
#11 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(200): yii\widgets\ActiveField->begin()
#12 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2-bootstrap/ActiveField.php(188): yii\widgets\ActiveField->render(NULL)
#13 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(156): yii\bootstrap\ActiveField->render()
#14 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/frontend/views/site/signup.php(22): yii\widgets\ActiveField->__toString()
#15 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php(325): require('/home/kerych74/...')
#16 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php(247): yii\base\View->renderPhpFile('/home/kerych74/...', Array)
#17 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/kerych74/...', Array, Object(frontend\controllers\SiteController))
#18 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Controller.php(371): yii\base\View->render('signup', Array, Object(frontend\controllers\SiteController))
#19 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/frontend/controllers/SiteController.php(162): yii\base\Controller->render('signup', Array)
#20 [internal function]: frontend\controllers\SiteController->actionSignup()
#21 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)
#22 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array)
#23 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('signup', Array)
#24 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('site/signup', Array)
#25 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request))
#26 /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/frontend/web/index.php(18): yii\base\Application->run()
#27 {main}
1. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/ErrorHandler.php at line 299
290291292293294295296297298299300301302303304305306307308 /**
* Converts an exception into a PHP error.
*
* This method can be used to convert exceptions inside of methods like `__toString()`
* to PHP errors because exceptions cannot be thrown inside of them.
* @param \Exception $exception the exception to convert to a PHP error.
*/
public static function convertExceptionToError($exception)
{
trigger_error(static::convertExceptionToString($exception), E_USER_ERROR);
}
/**
* Converts an exception into a simple string.
* @param \Exception $exception the exception being converted
* @return string the string representation of the exception.
*/
public static function convertExceptionToString($exception)
{
2. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/widgets/ActiveField.php at line 158 – yii\base\ErrorHandler::convertExceptionToError()
3. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php at line 22 – yii\widgets\ActiveField::__toString()
4. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php at line 325 – unknown()
5. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile()
6. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/View.php at line 149 – yii\base\View::renderFile()
7. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Controller.php at line 371 – yii\base\View::render()
8. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/frontend/controllers/SiteController.php at line 162 – yii\base\Controller::render()
156157158159160161162163164165166167168 }
}
}
return $this->render('signup', [
'model' => $model,
]);
}
/**
* Requests password reset.
*
* @return mixed
9. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – frontend\controllers\SiteController::actionSignup()
10. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array:{/home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/InlineAction.php:55}()
11. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Controller.php at line 151 – yii\base\InlineAction::runWithParams()
12. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Module.php at line 455 – yii\base\Controller::runAction()
13. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\base\Module::runAction()
14. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest()
15. in /home/kerych74/rubystack-2.2.3-3/apache2/htdocs/mafia-yii2/frontend/web/index.php at line 18 – yii\base\Application::run()
12131415161718 require(__DIR__ . '/../../common/config/main-local.php'),
require(__DIR__ . '/../config/main.php'),
require(__DIR__ . '/../config/main-local.php')
);
$application = new yii\web\Application($config);
$application->run();
--------------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
There are Signup model file and after it, down - error that I take. If I comment the added validation rules part - everything are working. Any thoughts?
/frontend/models/SignupForm.php
--------------------------------------------------------------------------- end of file.
Here the error:
The text was updated successfully, but these errors were encountered: