-
-
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
Call to a member function validateCsrfToken() on string #18154
Comments
Can you confirm which version you are on? If you are on .15 can you update to .35 and test again. |
updated to .35 but still the same error |
Would you please provide full error message including file, line and stracktrace? |
Do you have an If so you need to call |
true, it seems solved |
I have the same issue, but my SiteController doesn't have an |
Does your |
Yes. I have just found what my issue was. Thank you. |
I upgraded from 2.015 to 2.0.35 and also had this problem Thanks, that solves my problem |
I upgraded from |
Please use the Forum if you have any questions. |
i have a problem after ((Controller::$request and $response)) change
in beforeAction when we print (( $this->validateCsrfToken() )) it returns : 'request' not an object
it seems $this->validateCsrfToken() has not the same value as Yii::$app->getRequest()->validateCsrfToken()
and this problem stops my controllers
please resolve this
Additional info
The text was updated successfully, but these errors were encountered: