Using the user.save method I receive the following error:

user warning: Duplicate entry '' for key 2 query: INSERT INTO users (created, access) VALUES (1254426886, 1254426886) in htdocs/modules/user/user.module on line 327.

I'm using Drupal 6.14 and the lastest version of AMFPHP and the Services module.

I've done several searches through the forums, and tried executing several of the suggested fixes, but no success yet. (I already have a user established with an ID of 0, and it is already set to "auto-increment" as some of the existing postings have suggested. I've tried a fresh-install, too. Still no luck.)

One clue here is that the duplicate entry is actually listed as empty ( '' ) which is a little puzzling but might be a clue.

Nothing I've tried seems to work, so any help getting past this problem would appreciated.

Comments

zbricoleur’s picture

Can you post the code where you use the function?

Toadstool’s picture

I receive the error trying to run the command from the Services page in the admin area (admin/build/services/browse/user.save).

I was originally trying to implement this through Flash but it wasn't working, so I went back and tried it on the Services page and found that error. Assuming something had been broken as I was building and testing the other parts of my project, I did a clean install of Drupal and the Services module and tried again, only to get the same error.

zbricoleur’s picture

You should post this in the issues queue for Services, I think.
http://drupal.org/project/issues/services