Topic-icon 1062 error

Active Subscriptions:

None
10 years 7 months ago #55533 by pulcinella
1062 error was created by pulcinella
Hi,
I use easy social with jfbconnect but our user that subscribe the site with Facebook have this error 1062 DUPLICATE ENTRY
I wait yours.
Best
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #55537 by pulcinella
Replied by pulcinella on topic 1062 error
any news?
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #55538 by pulcinella
Replied by pulcinella on topic 1062 error
the error complete is
1062
DUPLICATE ENTRY '115' FOR KEY 'PRIMARY' SQL=INSERT INTO `Y8SEV_SOCIAL_USERS` (`USER_ID`,`STATE`) VALUES ('115','1')
The topic has been locked.
Support Specialist
10 years 7 months ago #55553 by alzander
Replied by alzander on topic 1062 error
Thanks for your patience. We hadn't seen this error before, but we were able to recreate it based on your settings in EasySocial on our development system and determine a fix. To test, can you please edit the /plugins/socialprofiles/easysocial/easysocial.php file. Around line 192, you'll see:
public function onNewUserSave()
    {
        $this->importSocialAvatar();
Please update that by adding the 4 new lines below:
public function onNewUserSave()
    {
        $model = FD::model('Users');
        if (!$model->metaExists($this->joomlaId)) {
            $model->createMeta($this->joomlaId);
        }

        $this->importSocialAvatar();

Please let us know if that helps. We're evaluating the change, but it should be in future releases so you won't have to do this again.

Thanks,
Alex
The topic has been locked.