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

After upgrade to Leaf 3.7.1 from 3.5 started Leaf::View or CSRF errors #262

Open
VT-nkumar opened this issue Nov 4, 2024 · 4 comments
Open

Comments

@VT-nkumar
Copy link

Describe the bug

After upgrading to 3.7.1 then it started showing Leaf View error (class not found). After commenting that line in index.php then it started throwing install CSRF. After installing CSRF then it started showing token missing error.

To Reproduce

Install 3.5 version then upgrade to 3.7.1 (latest version)

Expected behavior

It must upgrade without any issues. If any changes required then it is better to mention in documentation clearly

@mychidarko
Copy link
Member

Hi @VT-nkumar no extra changes should be required to update Leaf on it's own, but for context, are you using Leaf MVC?

@mychidarko
Copy link
Member

If you are using Leaf MVC, can you make sure that all modules are also updated to the latest version?

@mychidarko
Copy link
Member

For the Leaf\View line in the index.php file, you will need to change that to Leaf\Config::attachView(\Leaf\Blade::class);

And if you run into any other view issues, you can refer to this file https://github.com/leafsphp/leafMVC/blob/v3.x/config/view.php

@mychidarko
Copy link
Member

Hi @VT-nkumar, checking up on this issue

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

2 participants