Skip to content
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

Closed
maverick3609 opened this issue Jun 15, 2014 · 5 comments
Closed

Unable to verify your data submission. #3886

maverick3609 opened this issue Jun 15, 2014 · 5 comments

Comments

@maverick3609
Copy link

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}

@qiangxue
Copy link
Member

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.

@fortm
Copy link

fortm commented Aug 30, 2014

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)
"

@AresD
Copy link

AresD commented Oct 29, 2014

Hi!

Mr. Qiangxue, what happens if I have that line and still receive this error? What do I have to change?

@qiangxue
Copy link
Member

Then please create a new issue and include detailed issue reproduction information.

@AresD
Copy link

AresD commented Oct 29, 2014

I opened the issue. It can be found here: #5808 . Thank you for the assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants