-
Notifications
You must be signed in to change notification settings - Fork 640
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
NameError: `@' is not allowed as an instance variable name #765
Comments
I see the error is happening when there is a DB connection problem. Looks like Authlogic is expecting the connection to be properly configured and if not the case it fails with this cryptical error. It would be better if Authlogic confirms the connection is stable or at least failing with another more explanatory error message. |
I saw this error and realized my server had no Postgres add-on provisioned at heroku.
|
Having the same problem here... not sure where to begin debuging. |
It definitely fails if there is no connection to the database or you are missing tables. You can verify it like @la-ruby did |
I ran into this error using 6.4.3 and can confirm that it was a database issue. Took a while to pinpoint the exact problem, but I had Puma server started up and running as an Ubuntu service. The DB credentials were in the environment variables initialized from the user profile, but because Puma was running as a service it could not see the environment variables. I fixed it by moving the DB credentials environment variables to a This was tricky to figure out because running Rails Console loaded the environment variables from the user profile and I couldn't tell that they were missing in the Puma server until I added special lines in the app to have them output to the Rails log. It was then I noticed the DB credentials were missing in Puma. The error message led me down the wrong path because by looking at the source code I couldn't find figure out where Authlogic makes a DB call related to its retrieval of |
Expected Behavior
No error
Actual Behavior
The application works good until it doesn't any more :/
When I try to access to the website I see this error:
I see in the code here:
authlogic/lib/authlogic/session/base.rb
Line 1127 in 8e31cc0
that
password_field
may be empty an there for we are executing this:This is my code affected line:
This is my FrontSession implementation:
This is in my FrontUser:
The text was updated successfully, but these errors were encountered: