Joomla 1.5.24 and Moodle 2.1 - No Joomdle Web Services

More
14 years 8 months ago #1 by Chris
I have set up Joomla 1.5.24 and Moodle 2.1, and installed Joomdle 0.61. All works perfectly on both ends, and Joomdle can see Moodle. However, when I perform a system health check, "Joomdle Web Services" is not being seen on Joomla's end, even though it's running properly on the Moodle side. There is no error message given, and I have run the entire system health checklist from the wiki. I'm not really sure what's going on here, since they can clearly see each other (if I make a change in Moodle settings, Joomdle can see it immediately).

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

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

Not sure what you mean: you have an X on Web services system check, but no additional error is given?
For what you tell, this could mean that Joomla can connect to Moodle, but Moodle can't connect to Joomla, although I am not sure, as it is strange that no error is reported.
Recheck config on Moodle side.

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

More
14 years 8 months ago #3 by Chris
I've gone over the installation guide twice to verify that I didn't overlook anything on either side, and everything is as it should be. It's very odd; there was never any other problem except this one item, and with no error message, I'm clueless. The only thing that could point at a possible solution is the fact that when I log into Joomla, and then open a new tab in the same browser and go to my Moodle instance, it kicks back an error message every time that my session has timed out and to log in again. I turned off "Force log in" in Moodle, and it lets me go to my home page, but attempting to log in gives the same error.

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

More
14 years 8 months ago #4 by Antonio Durán
I don't think the session message gives any hints...

You could try adding some debugging to the code if you know PHP, to try to find out what is happening.

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

More
14 years 8 months ago #5 by Anand
hi

did you got some way to get rid of this issue.
I am also facing the same issue.
I am using joomla 1.5.25 and Moodle 2.0.5 with joomdle 0.61.

Is there any compatibility issue with these versions ??

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

More
14 years 7 months ago #6 by Luis
A mi me pasa lo mismo, estoy con Joomla 1.5.x y Moodle 2.1.2, monté la instalación en local y el system check me decía que todo correcto, pero al montarlo en un servidor de preproducción me sale la cruz en Joomdle Web Services pero no muestra ningún mensaje de error...


Tengo Joomdle activado en Moodle, en Manage Authentication.
Identificación de la Red Moodle ('Moodle Network') activado
He agregado la ip publica del servidor a XML-RPC hosts list
Las URLS están correctas

No se que estará fallando :s

GRacias.

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

More
14 years 7 months ago - 14 years 7 months ago #7 by Antonio Durán
Hi all.

Not sure what the problem may be...
You can add some code to try to debug it: in administrator/components/com_joomdle/helper/content.php, at the end of check_joomdle_system() function add:
print_r ($response);
Last edit: 14 years 7 months ago by Antonio Durán.

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

More
14 years 7 months ago #8 by Luis
he metido el codigo que decias, y he sacado esto:
Array ( [faultCode] => 0 [faultString] => Invalid external api response: test_data (Tipo Scalar esperado, matriz u objeto recibido.) )

pero no tengo claro por donde van los tiros, los web services están activados

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

More
14 years 7 months ago #9 by Antonio Durán
Hola.

Eso indica que la respuesta que da Joomla a Moodle es errónea por algun motivo (en vez de una cadena, es un array, así que seguramente sea un error lo que devuelve).

El problema es que Moodle 2.0 es muy estricto con los valores devueltos por los servicios web.

Puedes intentar una cosa para ver si sacamos algo en claro: en moodle/auth/joomdle/auth.php, función system_check().Hay:
$data = $this->call_method ("test");
$system = $data;

Cambialo por:
$data = $this->call_method ("test");
$system = serialize ($data);

A ver si asi podemos ver lo que devuelve Joomla.

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

More
14 years 7 months ago #10 by Luis
HOla,

gracias por la ayuda, parece que ahora sale cosas diferentes:

Array (
[joomdle_auth] => 1
[mnet_auth] => 1
[joomdle_configured] => 1
[test_data] => a:2:{s:9:"faultCode";i:1;s:11:"faultString";s:27:"Access Denied:: 192.168.1.1";}
)

eso me sale por la web, y ahora al lado de la cruz roja, donde antes no me salía nada me sale este error: "Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle"

Sin embargo la URL de Joomla si que está bien puesta en moodle, en:
/ ► Administración del sitio / ► Extensiones / ► Identificación / ► Joomdle

En local me salia todo correcto, pero al repetir la instalación en un servidor de preproduccion me está dando estos problemas.:S
¿Alguna idea de a que puede ser debido ese contenido para [test_data]?

Muchas gracias!

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