Advertisement:

Author Topic: New user doesn't get created, existing user works fine?  (Read 1097 times)

nCo

  • Newbie
  • *
  • Posts: 2
New user doesn't get created, existing user works fine?
« on: September 08, 2014, 12:00:27 pm »
Running 3.4.1 and plugin 1.4.1.

If I try to login with Connect using an account thats not already in Osclass it hangs somewhere after Facebook and I dont get redirected back. If I look in the database, there is no user created. Also if I try to reach Osclass, the page is not reachable until I close the browser and reopen it, must be some sort of session problem? The admin page is always working.

If I first create a user in Osclass and then try to login with Connect it says "user merged" and everything works perfect.

Anyone have any ideas what could be causing this?

UPDATE

Chrome shows this:
This webpage has a redirect loop
The webpage at http://xxx/#_=_ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Learn more about this problem.
Error code: ERR_TOO_MANY_REDIRECTS

UPDATE 2

Turned on debug and query logging and found the error.

Error number: 1364
Error description: Field 's_username' doesn't have a default value
**************************************************
INSERT INTO oc_t_user (s_name, s_email, s_password, dt_reg_date, s_secret) VALUES

The Facebook plugin is trying to create a new user without setting the s_username. Bug?
« Last Edit: September 11, 2014, 12:24:10 am by nCo »