- Posts: 5
Modulo Certificado
- David
- Topic Author
- Offline
- New Member
-
Joomla 2.5
Jomdle R09
Moddle 2.4
Version del modulo Certificado: Release Stable (2013021200)
XML-RPC Error (95042507): Error reading from database | DEBUG INFO: Unknown column 'ci.certdate' in 'field list' SELECT c.name, c.id, ci.certdate FROM mdl_certificate c LEFT JOIN mdl_certificate_issues ci ON c.id = ci.certificateid WHERE ci.userid = 2 AND c.course in (7,15,13,10) ORDER BY ci.certdate DESC [array ( )] | ERRORCODE: dmlreadexception
Aparte en moodle, cuando estoy creando el formulario y lo voy a previsualizar me da error 404 :pinch:
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
He comprobado el código y parece que han cambiado el nombre de una columna en la tabla, por lo que es necesario modificar el módulo de Joomdle para que funcione.
Si quieres arreglarlo, puedes cambiar la consulta que hay en la función my_certificates en moodle/auth/joomdle.auth.php por esta otra:
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
Esto no se a que te refieres.
Please Log in or Create an account to join the conversation.
- David
- Topic Author
- Offline
- New Member
-
- Posts: 5
En la sección de extensiones ---> Certificado: cuando voy a subir la imagen, da error 500 al igual cuando estoy creando y modificando un certificado para algún curso en especifico, al guardar y pre-visualizar da error 500.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
Please Log in or Create an account to join the conversation.
- Ruth Cheesley
- Offline
- Senior Member
-
- Posts: 54
Antonio Durán wrote: Hola, gracias por el reporte de error.
He comprobado el código y parece que han cambiado el nombre de una columna en la tabla, por lo que es necesario modificar el módulo de Joomdle para que funcione.
Si quieres arreglarlo, puedes cambiar la consulta que hay en la función my_certificates en moodle/auth/joomdle.auth.php por esta otra:
Code:$certs = $DB->get_records_sql("SELECT c.name, c.id, ci.timecreated as certdate FROM {$CFG->prefix}certificate c LEFT JOIN {$CFG->prefix}certificate_issues ci ON c.id = ci.certificateid WHERE ci.userid = $user_id AND c.course in ($ids_str) ORDER BY ci.timecreated DESC");
I have the same problem but I can't find this line in auth.php within moodle/auth/joomdle - am I looking in the wrong place?
If I replace the $certs query which was this:
I get the following debug message:
XML-RPC Error (95042507): Error reading from database | DEBUG INFO: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND c.course in () ORDER BY ci.timecreated DESC' at line 5 SELECT c.name, c.id, ci.timecreated as certdate FROM hcmi_certificate c LEFT JOIN hcmi_certificate_issues ci ON c.id = ci.certificateid WHERE ci.userid = AND c.course in () ORDER BY ci.timecreated DESC [array ( )] | ERRORCODE: dmlreadexception
Ruth
Please Log in or Create an account to join the conversation.
- Ruth Cheesley
- Offline
- Senior Member
-
- Posts: 54
Not completely fixed. Need more coffee.
Ruth
Please Log in or Create an account to join the conversation.