- Posts: 1
Users - XML-RPC Error (0): ERROR
- Kamil Frydryszek
- Topic Author
- Offline
- New Member
-
Less
More
14 years 3 months ago #1
by Kamil Frydryszek
Users - XML-RPC Error (0): ERROR was created by Kamil Frydryszek
Good morning,
I've just tried this solution:
www.joomdle.com/en/forum/r06-support/603...umber-of-query-param
but I still have this problem.
When I open "Users" in Joomdle backend I have error:
XML-RPC Error (0): ERROR: Incorrect number of query parameters. Expected 2, got 0.
Thank you in advance
Best regards,
Kamil Frydrszek
I've just tried this solution:
www.joomdle.com/en/forum/r06-support/603...umber-of-query-param
but I still have this problem.
When I open "Users" in Joomdle backend I have error:
XML-RPC Error (0): ERROR: Incorrect number of query parameters. Expected 2, got 0.
Thank you in advance
Best regards,
Kamil Frydrszek
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 3 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Users - XML-RPC Error (0): ERROR
Hi.
Do you have all green in system check?
Do you have many users?
Do you have all green in system check?
Do you have many users?
Please Log in or Create an account to join the conversation.
- Kamil Frydryszek
- Offline
- New Member
-
Less
More
- Posts: 1
14 years 3 months ago #3
by Kamil Frydryszek
Replied by Kamil Frydryszek on topic Re: Users - XML-RPC Error (0): ERROR
Thank you for the answer. I forgot my password and I was unable to write here. More over "remind password" function does not work on this portal (token is not accepted). That's why I have registered once again.
I hav all green in system check.
I have tested Joomdle with 3 or 4 users both in Moodle and Joomla.
Thank you,
Best regards
Kamil
I hav all green in system check.
I have tested Joomdle with 3 or 4 users both in Moodle and Joomla.
Thank you,
Best regards
Kamil
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 3 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Users - XML-RPC Error (0): ERROR
Thanks for letting us know about the "remind password" problem. Not sure if we will fix it now, though, as we are planning on upgrading the site...we may wait for that.
Anyway, as for your problem: a client had this problem, and just this week we traced it down to the "concat" function not being available on postgres databases. I guess you are running postgres?
To fix it, I changed the queries that contain the concat, to get the fields separated, and then join them in PHP.
For example:
I changed it by:
And then, did the concat in PHP:
You will need to search moodle/auth/joomdle/auth.php and replace the queries.... or better yet, you may prefer for me to have a fixed file (guess tomorrow) and can send it to you if you write me at antonio@joomdle.com
Anyway, as for your problem: a client had this problem, and just this week we traced it down to the "concat" function not being available on postgres databases. I guess you are running postgres?
To fix it, I changed the queries that contain the concat, to get the fields separated, and then join them in PHP.
For example:
Code:
$users = $DB->get_records_sql("SELECT id, username, email, concat(firstname, ' ', lastname) as name,auth
FROM {$CFG->prefix}user
WHERE deleted = 0
AND auth != 'webservice'
AND (username not in ($userlist))");
Code:
$users = $DB->get_records_sql("SELECT id, username, email,firstname, lastname, auth
FROM {$CFG->prefix}user
WHERE deleted = 0
AND auth != 'webservice'
AND (username not in ($userlist))");
Code:
$u[$i]['name'] = $user->firstname . ' ' . $user->lastname;
You will need to search moodle/auth/joomdle/auth.php and replace the queries.... or better yet, you may prefer for me to have a fixed file (guess tomorrow) and can send it to you if you write me at antonio@joomdle.com
Please Log in or Create an account to join the conversation.