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

invalid reference lastvisit_at #65

Open
nickGermi opened this issue Nov 12, 2013 · 3 comments
Open

invalid reference lastvisit_at #65

nickGermi opened this issue Nov 12, 2013 · 3 comments

Comments

@nickGermi
Copy link

Just noticed while the mysql database scheme contains lastvisit column, all the references to this column are as lastvisit_at.

Changing the column name in database fixes the problem.

@schmunk42
Copy link
Contributor

Use the migrations to setup the database.
see also https://github.com/mishamx/yii-user/blob/master/migrations/m110810_162301_userTimestampFix.php

@nickGermi
Copy link
Author

I tried to install it that way at first but received the error 'migration directory doesn't exist', could investigate but chose to install it manually since it's a new yii project.

Noticed some typos in the code too, file: protected/modules/user/controllers/LoginController.php
lastVisit(); is misspelled at some places.

Also, I believe ajax validation hasn't been implemented in the code I had to edit above mentioned file to get back JSON response even though my form had ajaxvalidation set to true

Thanks,

@masiorama
Copy link
Contributor

For the first part of your last comment, make sure to use the migrate functionality with the yiic created inside your application, and not the one inside the framework folder. That should should.

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

3 participants