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

Error "Identifier 'user' is not defined" #332

Closed
brickcamp opened this issue Apr 12, 2019 · 3 comments
Closed

Error "Identifier 'user' is not defined" #332

brickcamp opened this issue Apr 12, 2019 · 3 comments

Comments

@brickcamp
Copy link

Hi there,
first things first: Thanks for doing such an amazing job with grav and it's plugins - I love it!

But, last night, I had a lot of troubles with the releases of grav and the form plugin. After installing both of them, my site stopped working immediately by throwing this error message on every page:

Identifier "user" is not defined.
Bildschirmfoto-20190412220316-941x516
Download ZIP-file containing error page

Today, I came up with the solution: I hadn't installed the login plugin and system.session was set to false. I changed both of it and now everything works again.

So, please add a dependency to the "login" plugin. Or fix the coding there... 😄

@rhukster
Copy link
Member

It's not really a login dependency, as form should not require anything else, however, it is a bug in Grav's trait to ensure that user is available. Also, flash forms to support the ajax uploads will not work without a session, but I added a safety check so it does not error out.

getgrav/grav@d502ff0

@brickcamp brickcamp changed the title Missing dependency on plugin "login" (else: "Identifier 'user' is not defined") Error "Identifier 'user' is not defined" Apr 14, 2019
@brickcamp
Copy link
Author

Looks good - I removed the "dependency" thing from the issue title

@brickcamp
Copy link
Author

Finally, I tested this now - this fixed it, thank you! 👍 Case closed

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

No branches or pull requests

1 participant