XML-RPC Error (0): Incorrect number of query parameters

  • Kluthe
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 8 months ago #1 by Kluthe
Hi!
I´m big fan of joomdle.
Now, I have a small problem.

When I wanna click in Joomla Backend on component->joomdle->users I get the following error:

XML-RPC Error (0): Error: Incorrect number of query parameters. Expected: 1, get: 0.

So I can´t syncronize the users anymore.

I vae an idea, that this problem is connected with the fact, that I import many users in the Joomla system.

I have checked everything in Moodle and Joomdle configuration. And i found only one thing: When I click in the joomdle configuration on file_get_contents it works. I can go to the User tab in Joomdle and see all the users there. But finally my Hoster don´t accept this file_get_contents in php.ini.

Have you an idea?

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #2 by Antonio Durán
Hi.

Do you mean that it was working with file_get_contents, and not cURL?
Or that it worked when you have fewer users?

I know that there is a problem if there are too many users to process for the available php memory, but the symptoms were different.

To try to narrow the proble, you can add a line to administrator/components/com_joomdle/views/users/view.html.php:
$filter_type = 'joomla';

after:

if ( ($filter_type) && ($filter_type != 'joomla') && ($filter_type != 'moodle') && ($filter_type != 'joomdle') && ($filter_type != 'not_joomdle'))
$filter_type = 0;


And see if that makes any change.

I just tested locally with cURL and is working fine.

Please Log in or Create an account to join the conversation.

  • Kluthe
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 8 months ago #3 by Kluthe
Hi Antonio,
thanks for ultra quick reply. I will try.

Please Log in or Create an account to join the conversation.

  • Kluthe
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 8 months ago #4 by Kluthe
Dear Antonio,
you are amazing! Now everything works fine again and I can go for a coffee with my family...

wish you the best,
Manni


(Note: I always worked with curl...)

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #5 by Antonio Durán
Ok then.

What we did is add a filter type, meaning that you will only get joomla users listed.

If you need to see "moodle-only" users you will need to change that.

The problem lies in the way the users are processed: when selecting "all users" (default option) it makes the full list: if there are many users, PHP memory may run out :(

We know of this bug for some time now, but have yet to think of a good way to solve it.

Please Log in or Create an account to join the conversation.