albert-gee/yii2-shop

Registration error

Opened this issue · 1 comments

Frontend main config:
`<?php
$params = array_merge(
require DIR . '/../../common/config/params.php',
require DIR . '/../../common/config/params-local.php',
require DIR . '/params.php',
require DIR . '/params-local.php'
);

return [
'id' => 'app-frontend',
'basePath' => dirname(DIR),
'bootstrap' => [
'sointula\shop\frontend\components\events\PartnersBootstrap',
'sointula\shop\frontend\components\events\UserRegistrationBootstrap'
],
'controllerNamespace' => 'frontend\controllers',
'modules' => [
'user' => [
'modelMap' => [
'RegistrationForm' => sointula\shop\common\components\user\models\RegistrationForm::className(),
'RecoveryForm' => sointula\shop\common\components\user\models\RecoveryForm::className(),
'LoginForm' => sointula\shop\common\components\user\models\LoginForm::className(),
'SettingsForm' => sointula\shop\common\components\user\models\SettingsForm::className(),
],
'controllerMap' => [
'registration' => sointula\shop\frontend\components\user\controllers\RegistrationController::className(),
'settings' => sointula\shop\frontend\components\user\controllers\SettingsController::className(),
'security' => sointula\shop\frontend\components\user\controllers\SecurityController::className(),
'recovery' => sointula\shop\frontend\components\user\controllers\RecoveryController::className()
],
'as frontend' => dektrium\user\filters\FrontendFilter::className(),
'enableFlashMessages' => false
],
'shop' => [
'class' => sointula\shop\frontend\Module::className(),
'enableCurrencyConversion' => true,
'partnerManagerEmail' => $params['partnerManagerEmail'],
'senderEmail' => $params['senderEmail'],
'showChildCategoriesProducts' => false
],
],
'components' => [
'request' => [
'csrfParam' => '_csrf-frontend',
],
'user' => [
'identityClass' => sointula\shop\common\components\user\models\User::className(),
'enableAutoLogin' => true,
'identityCookie' => [
'name' => '_frontendIdentity',
'path' => '/',
'httpOnly' => true,
],
'on afterLogin' => function() {
if (Yii::$app->cart->saveToDataBase) Yii::$app->cart->transportSessionDataToDB();
},
'on afterConfirm' => function() {
if (Yii::$app->cart->saveToDataBase) Yii::$app->cart->transportSessionDataToDB();
},
],
'session' => [
// this is the name of the session cookie used for login on the frontend
'name' => 'advanced-frontend',
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'urlManager' => [
'class' => bl\locale\UrlManager::className(),
'baseUrl' => '/',
'showScriptName' => true,
'detectInSession' => false,
'detectInCookie' => false,
'enablePrettyUrl' => true,
'languageProvider' => [
'class' => bl\locale\provider\DbLanguageProvider::className(),
'db' => 'db',
'table' => 'language',
'localeField' => 'lang_id',
'languageCondition' => ['active' => true],
],
'lowerCase' => true,
'useShortSyntax' => false,
'languageKey' => 'language',
'showDefault' => false,
'rules' => [
[
'class' => sointula\shop\UrlRule::className(),
'prefix' => 'shop'
],
[
'class' => bl\seo\UniqueUrlRule::class,
'destination' => 'cart',
'duplicate' => [
'cart/cart/show',
'cart/cart'
]
],
]
],
'partnerMailer' => [
'class' => yii\swiftmailer\Mailer::className(),
'useFileTransport' => false,
'messageConfig' => [
'charset' => 'UTF-8',
],
'viewPath' => '@vendor/albert-sointula/yii2-shop/frontend/views/partner-request/mail',
'htmlLayout' => '@vendor/albert-sointula/yii2-shop/frontend/views/partner-request/mail/layout',
'transport' => [
'class' => 'Swift_SmtpTransport',
'username' => 'info@mail.com',
'password' => '55555555',
'host' => 'pop.mail.com',
'port' => '587',
],
],
],
'params' => $params,
];
`

image

image

Error with registration

same problem