XML-RPC error
13 years 4 months ago
Topic Author
XML-RPC error #1
Hi,
I have a Joomla 1.7 install with Joomdle 0.61. I have tested the site with a Moodle 1.9, 2.0 and 2.1 and everything has worked fine (hosted on the same and different domains. I have now connected with our private providers Moodle site that is on a separate domain but are having some issues. They installed the Moodle Joomdle software and I have configured it. In Joomdle on Joomla I get everything ticked green in the system check and if I click on "Course Requests" I get the correct listing pulled out of Moodle, however, if I click on "Users" the screen goes blank and just shows an error "XML-RPC Error (0): Error reading from database" Any ideas?
regards
Mike
I have a Joomla 1.7 install with Joomdle 0.61. I have tested the site with a Moodle 1.9, 2.0 and 2.1 and everything has worked fine (hosted on the same and different domains. I have now connected with our private providers Moodle site that is on a separate domain but are having some issues. They installed the Moodle Joomdle software and I have configured it. In Joomdle on Joomla I get everything ticked green in the system check and if I click on "Course Requests" I get the correct listing pulled out of Moodle, however, if I click on "Users" the screen goes blank and just shows an error "XML-RPC Error (0): Error reading from database" Any ideas?
regards
Mike
Please Log in or Create an account to join the conversation.
13 years 4 months ago
XML-RPC error #2
Hi.
This seems to be a combination of:
- Some strange data you may have
- Joomdle not handling it right
To debug this locally, I would just launch a sniffer and watch the traffic to see the error, but I guess you have not that option.
So, I would go doing this: in file administrator/components/com_joomdle/views/users/view.html.php, there is a big if/else statment based on filter_type.
Just before this line:
if ($filter_type)
Add:
$filter_type = "moodle";
Then, check if that changes anything. If not, change by "joomla", "joomdle", "not_joomdle"...
The goal is to find the function that is failing so you can keep on debugging from there.
This seems to be a combination of:
- Some strange data you may have
- Joomdle not handling it right
To debug this locally, I would just launch a sniffer and watch the traffic to see the error, but I guess you have not that option.
So, I would go doing this: in file administrator/components/com_joomdle/views/users/view.html.php, there is a big if/else statment based on filter_type.
Just before this line:
if ($filter_type)
Add:
$filter_type = "moodle";
Then, check if that changes anything. If not, change by "joomla", "joomdle", "not_joomdle"...
The goal is to find the function that is failing so you can keep on debugging from there.
Please Log in or Create an account to join the conversation.
13 years 4 months ago
Topic Author
XML-RPC error #3
Hi Antonio,
Sorry but I cannot find the line you are talking about - just this bit below - Am I in the correct file? I am not a PHP developer - if needed can we contract someone to help us getting Joomdle fully functional?
regards
Mike
// jimport('joomla.html.pagination');
$db =& JFactory::getDBO();
$search = $this->state->get ('filter.search');
if ($search)
$searchEscaped = $db->Quote( '%'.$db->getEscaped( $search, true ).'%', false );
else $searchEscaped = "";
switch ($filter_type)
{
case 'moodle':
$total = JoomdleHelperContent::getMoodleUsersNumber ($search);
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getMoodleUsers ($limitstart, $limit,$filter_order, $filter_order_Dir, $search);
break;
case 'joomla':
$total = JoomdleHelperContent::getJoomlaUsersNumber ($searchEscaped);
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getJoomlaUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
break;
case 'joomdle':
$total = count (JoomdleHelperContent::getJoomdleUsers (0, 0, $filter_order, $filter_order_Dir, $searchEscaped));
echo $total;
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getJoomdleUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
break;
case 'not_joomdle':
$total = count (JoomdleHelperContent::getNotJoomdleUsers (0, 0, $filter_order, $filter_order_Dir, $search));
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getNotJoomdleUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
default:
$total = JoomdleHelperContent::getAllUsersNumber ($search);
$this->users = JoomdleHelperContent::getAllUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
}
parent::display($tpl);
}
}
?>
Sorry but I cannot find the line you are talking about - just this bit below - Am I in the correct file? I am not a PHP developer - if needed can we contract someone to help us getting Joomdle fully functional?
regards
Mike
// jimport('joomla.html.pagination');
$db =& JFactory::getDBO();
$search = $this->state->get ('filter.search');
if ($search)
$searchEscaped = $db->Quote( '%'.$db->getEscaped( $search, true ).'%', false );
else $searchEscaped = "";
switch ($filter_type)
{
case 'moodle':
$total = JoomdleHelperContent::getMoodleUsersNumber ($search);
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getMoodleUsers ($limitstart, $limit,$filter_order, $filter_order_Dir, $search);
break;
case 'joomla':
$total = JoomdleHelperContent::getJoomlaUsersNumber ($searchEscaped);
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getJoomlaUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
break;
case 'joomdle':
$total = count (JoomdleHelperContent::getJoomdleUsers (0, 0, $filter_order, $filter_order_Dir, $searchEscaped));
echo $total;
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getJoomdleUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
break;
case 'not_joomdle':
$total = count (JoomdleHelperContent::getNotJoomdleUsers (0, 0, $filter_order, $filter_order_Dir, $search));
$pagination = new JPagination( $total, $limitstart, $limit );
$this->users = JoomdleHelperContent::getNotJoomdleUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
default:
$total = JoomdleHelperContent::getAllUsersNumber ($search);
$this->users = JoomdleHelperContent::getAllUsers ($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
}
parent::display($tpl);
}
}
?>
Please Log in or Create an account to join the conversation.
13 years 4 months ago
Topic Author
XML-RPC error #4
Just realised that the code you gave me was for changing the older version of Joomdle - not the new one for 1.6 / 1.7. Anyway I swapped over the view.html.php file just to see what I would get.... this is the result:
With "moodle" the result is:
XML-RPC Error (623): Calling parameters do not match signature
With "joomla" the result is:
Fatal error: Call to a member function get() on a non-object in /var/home/......./administrator/components/com_joomdle/views/users/tmpl/default.php on line 13
With "joomdle" the result is:
Fatal error: Call to a member function get() on a non-object in /var/home/......./administrator/components/com_joomdle/views/users/tmpl/default.php on line 13
With "not_joomdle" the result is:
XML-RPC Error (0): Error reading from database
does this help?
regards
Mike
With "moodle" the result is:
XML-RPC Error (623): Calling parameters do not match signature
With "joomla" the result is:
Fatal error: Call to a member function get() on a non-object in /var/home/......./administrator/components/com_joomdle/views/users/tmpl/default.php on line 13
With "joomdle" the result is:
Fatal error: Call to a member function get() on a non-object in /var/home/......./administrator/components/com_joomdle/views/users/tmpl/default.php on line 13
With "not_joomdle" the result is:
XML-RPC Error (0): Error reading from database
does this help?
regards
Mike
Please Log in or Create an account to join the conversation.
13 years 4 months ago
XML-RPC error #5
Hi Mike.
We are available for doing contract work on Joomdle if needed. Just send an email to This email address is being protected from spambots. You need JavaScript enabled to view it.. For sure this would be the fastest way to troubleshoot, as I would be directly debugging on your server.
The new errors don't report much info, as they all are failing.
Antonio
We are available for doing contract work on Joomdle if needed. Just send an email to This email address is being protected from spambots. You need JavaScript enabled to view it.. For sure this would be the fastest way to troubleshoot, as I would be directly debugging on your server.
The new errors don't report much info, as they all are failing.
Antonio
Please Log in or Create an account to join the conversation.