-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to verify your data submission. #3886
Comments
Please update your main layout file by adding this line in the section: . This change is needed because yii\web\View no longer automatically generates CSRF meta tags due to issue #3358. |
I setup basic and avanced projects from composer today and ran into mysql connection errors due to /Application/MAMP/tmp/mysql.sock not pointing to /tmp/mysql.sock where I have MySQL5.4.4. Once I fixed these and restarted Apache, opened both frontend and backend side by side with basic in chrome browser. However , during first signup i saw same error - "Unable to verify your data submission". I checked that my latest View already had the Html::csrfMetaTags() lines. A full refresh of page fixed it however. There after been running randomly into above error upon logging in with admin/admin in basic and new user created in frontend/backend. Also getting this error on login at times - "Method Not Allowed. This url can only handle the following request methods: POST. Method Not Allowed (#405) |
Hi! Mr. Qiangxue, what happens if I have that line and still receive this error? What do I have to change? |
Then please create a new issue and include detailed issue reproduction information. |
I opened the issue. It can be found here: #5808 . Thank you for the assistance. |
Hi
After the recent update of Yii2 using composer i have been getting the following error. Please guide me how to resolve the same -
exception 'yii\web\BadRequestHttpException' with message 'Unable to verify your data submission.' in /home/maverick/Lampstack/apache2/htdocs/lems/vendor/yiisoft/yii2/web/Controller.php:109
Stack trace:
#0 /home/maverick/Lampstack/apache2/htdocs/lems/vendor/yiisoft/yii2/base/Controller.php(146): yii\web\Controller->beforeAction(Object(yii\base\InlineAction))
#1 /home/maverick/Lampstack/apache2/htdocs/lems/vendor/yiisoft/yii2/base/Module.php(429): yii\base\Controller->runAction('logout', Array)
#2 /home/maverick/Lampstack/apache2/htdocs/lems/vendor/yiisoft/yii2/web/Application.php(82): yii\base\Module->runAction('site/logout', Array)
#3 /home/maverick/Lampstack/apache2/htdocs/lems/vendor/yiisoft/yii2/base/Application.php(367): yii\web\Application->handleRequest(Object(yii\web\Request))
#4 /home/maverick/Lampstack/apache2/htdocs/lems/frontend/web/index.php(17): yii\base\Application->run()
#5 {main}
The text was updated successfully, but these errors were encountered: