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

validateCsrfToken() issue #29

Open
paskuale75 opened this issue Jul 16, 2020 · 3 comments
Open

validateCsrfToken() issue #29

paskuale75 opened this issue Jul 16, 2020 · 3 comments

Comments

@paskuale75
Copy link

paskuale75 commented Jul 16, 2020

I don't know if it is the fault of the new version but I have not used the utility for more than 24 days, today strangely after a clone and composer update, as soon as I point to the url / miaApp / utility I have this return error:

Call to a member function validateCsrfToken() on string

in /var/www/html/motorizzazione/vendor/yiisoft/yii2/web/Controller.php

line 203
Schermata da 2020-07-16 17-52-18

@paskuale75
Copy link
Author

looking a little on the net I found this site

Then I tried to add

return parent::init();

at and of vendor/c006/yii2-migration-utility/controllers/DefaultController.php init function and seems to work ...

@paskuale75
Copy link
Author

paskuale75 commented Jul 18, 2020

Upgrade from Yii 2.0.35

  • If you have any controllers that override the init() method, make sure they are calling parent::init() at
    the beginning, as demonstrated in the component guide

@paskuale75
Copy link
Author

Hi @c006 do you have any way to update the code? So we close this issue? Thank you

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

1 participant