UNIMOODLE / moodle-local_coursetransfer

Lote P3.2 - Restauración de cursos entre plataformas
2 stars 2 forks source link

Uncontrolled error in origin_restore_category.php #33

Open juacas opened 1 month ago

juacas commented 1 month ago

In an unconfigured installation of CourseTransfer. Version 2024061800

From main course browsing page https://moodle3.local/moodle403/course/index.php?categoryid=2, a secondary menu "Origin Restore Category" is shown.

When clicking on it the following error occurs:

Error reading from database

[More information about this error](http://docs.moodle.org/403/en/error/moodle/dmlreadexception)

Debug info: Unknown column 'csr.origin_category_requests' in 'field list'
SELECT
csr.id, csr.siteurl, csr.origin_course_id, csr.origin_category_id, csr.status,
csr.origin_category_requests, csr.error_code, csr.error_message, csr.userid,
csr.timemodified, csr.timecreated
FROM mdl_local_coursetransfer_request csr
WHERE target_category_id = ? AND direction = ? AND type = ?
ORDER BY timemodified DESC LIMIT 0, 200
[array (
0 => '2',
1 => 0,
2 => 1,
)]
Error code: dmlreadexception×Dismiss this notification
Stack trace:
line 494 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
line 1398 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
line 2185 of /lib/tablelib.php: call to mysqli_native_moodle_database->get_records_sql()
line 2207 of /lib/tablelib.php: call to table_sql->query_db()
line 118 of /local/coursetransfer/classes/output/origin_restore_category/origin_restore_category_page.php: call to table_sql->out()
line 85 of /local/coursetransfer/classes/output/origin_restore_category/origin_restore_category_page.php: call to local_coursetransfer\output\origin_restore_category\origin_restore_category_page->get_restore_table()
line 274 of /local/coursetransfer/classes/output/renderer.php: call to local_coursetransfer\output\origin_restore_category\origin_restore_category_page->export_for_template()
line 495 of /lib/outputrenderers.php: call to local_coursetransfer\output\renderer->render_origin_restore_category_page()
line 86 of /local/coursetransfer/origin_restore_category.php: call to plugin_renderer_base->render()
xpazv commented 5 days ago

Could you please elaborate about what does "unconfigured installation" mean in this context? Did you configure target and origin sites?