- Posts: 8
inserting users error
- Czarina
- Topic Author
- Offline
- New Member
-
Less
More
12 years 1 month ago - 12 years 1 month ago #1
by Czarina
inserting users error was created by Czarina
Last edit: 12 years 1 month ago by Czarina.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 1 month ago #2
by Antonio Durán
Replied by Antonio Durán on topic inserting users error
I guess you solved this then?
www.joomdle.com/en/forum/r09-support/106...current-transa/14674
Can you post to that thread so there is a resolution please?
As for you error: it says the user already exists in Joomla, so you cannot add him again.
www.joomdle.com/en/forum/r09-support/106...current-transa/14674
Can you post to that thread so there is a resolution please?
As for you error: it says the user already exists in Joomla, so you cannot add him again.
Please Log in or Create an account to join the conversation.
- Czarina
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
12 years 1 month ago #3
by Czarina
Replied by Czarina on topic inserting users error
Hi Sir Duran. Yes I cannot add the user who has already joomla account but I cannot add either the ones who don't have.
I can add them when I make a joomla account with the same username and password to the moodle. That's when I only get sso from moodle to joomla and vice versa. :pinch:
I can add them when I make a joomla account with the same username and password to the moodle. That's when I only get sso from moodle to joomla and vice versa. :pinch:
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 1 month ago #4
by Antonio Durán
Replied by Antonio Durán on topic inserting users error
Hi.
I tested in a postgresql and I can replicate the problem.
I will try to fix it when I find some time, and post here when it is ready.
I tested in a postgresql and I can replicate the problem.
I will try to fix it when I find some time, and post here when it is ready.
Please Log in or Create an account to join the conversation.
- Czarina
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
12 years 1 month ago - 12 years 1 month ago #5
by Czarina
Replied by Czarina on topic inserting users error
Yes sir. Thank you.Hopefully, I can find solution as soon as possible.
Last edit: 12 years 1 month ago by Czarina.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 1 month ago #6
by Antonio Durán
Replied by Antonio Durán on topic inserting users error
Ok, I found the problem and the fix is easy.
Edit administrator/components/com_joomdle/helpers/content.php, function create_joomla_user().
Change:
By:
Edit administrator/components/com_joomdle/helpers/content.php, function create_joomla_user().
Change:
Code:
$user->set('lastvisitDate', '0000-00-00 00:00:00');
Code:
$user->set('lastvisitDate', $db->getNullDate());
Please Log in or Create an account to join the conversation.
- Czarina
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
12 years 1 month ago #7
by Czarina
Replied by Czarina on topic inserting users error
It worked!! Thank you!
Please Log in or Create an account to join the conversation.