Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Error when deleting or backing up a course

$
0
0
by Daniel Silva.  

On Moodle 4.1.3, recently upgraded, there is one single course that doesn't complete backup anymore since I restored the entire site from the hosting backup a few days ago. This one course doesn't complete backups anymore and when I try to delete it, it also doesn't get deleted. I'll post below the logs from both actions tried (deleting it/backing it up). Hope someone can help. I can't really mess with max_allowed_packet since I'm on shared hosting and don't have access to the cnf file. But since it was working before the site recovery, max_allowed_packet shouldn't be the problem.

This is the log when trying to delete the course:




Some HTML tags were opened in the body of the page but not closed.


Open header/footer at:

line 2656 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 1453 of /lib/outputrenderers.php: call to xhtml_container_stack->push()

line 1979 of /lib/setuplib.php: call to core_renderer->header()

line 65 of /course/delete.php: call to bootstrap_renderer->__call()

Close header/footer at:

line 2684 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 1515 of /lib/outputrenderers.php: call to xhtml_container_stack->pop()

line 71 of /course/delete.php: call to core_renderer->footer()

Open box at:

line 2656 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 3298 of /lib/outputrenderers.php: call to xhtml_container_stack->push()

line 3286 of /lib/outputrenderers.php: call to core_renderer->box_start()

line 3036 of /lib/outputrenderers.php: call to core_renderer->box()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()

Close box at:

line 2684 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 3310 of /lib/outputrenderers.php: call to xhtml_container_stack->pop()

line 3286 of /lib/outputrenderers.php: call to core_renderer->box_end()

line 3036 of /lib/outputrenderers.php: call to core_renderer->box()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()

line 2700 of /lib/outputlib.php: call to debugging()

line 1586 of /lib/outputrenderers.php: call to xhtml_container_stack->pop_all_but_last()

line 1513 of /lib/outputrenderers.php: call to core_renderer->container_end_all()

line 3062 of /lib/outputrenderers.php: call to core_renderer->footer()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()

There are no more open containers. This suggests there is a nesting problem.


Open header/footer at:

line 2656 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 1453 of /lib/outputrenderers.php: call to xhtml_container_stack->push()

line 1979 of /lib/setuplib.php: call to core_renderer->header()

line 65 of /course/delete.php: call to bootstrap_renderer->__call()

Close header/footer at:

line 2684 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 1515 of /lib/outputrenderers.php: call to xhtml_container_stack->pop()

line 71 of /course/delete.php: call to core_renderer->footer()

Open box at:

line 2656 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 3298 of /lib/outputrenderers.php: call to xhtml_container_stack->push()

line 3286 of /lib/outputrenderers.php: call to core_renderer->box_start()

line 3036 of /lib/outputrenderers.php: call to core_renderer->box()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()

Close box at:

line 2684 of /lib/outputlib.php: call to xhtml_container_stack->log()

line 3310 of /lib/outputrenderers.php: call to xhtml_container_stack->pop()

line 3286 of /lib/outputrenderers.php: call to core_renderer->box_end()

line 3036 of /lib/outputrenderers.php: call to core_renderer->box()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()

line 2671 of /lib/outputlib.php: call to debugging()

line 1515 of /lib/outputrenderers.php: call to xhtml_container_stack->pop()

line 3062 of /lib/outputrenderers.php: call to core_renderer->footer()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()


Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/u929530127/domains/imagineingles.com/public_html/lms/lib/outputrenderers.php on line 1546

Error reading from database

Debug info: MySQLserver has gone away

SELECT count(r.repositoryid)

FROM piwp_files f

LEFT JOIN piwp_files_reference r

ON r.id = f.referencefileid

JOIN piwp_backup_ids_temp bi

ON f.id = bi.itemid

WHERE bi.backupid = ?

AND bi.itemname = 'filefinal'

[array (

0 => '38709d55e699b89a3620c534df2df661',

)]

Error code: dmlreadexception

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 1683 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()

line 1756 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()

line 1967 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()

line 522 of /backup/util/dbops/backup_controller_dbops.class.php: call to moodle_database->count_records_sql()

line 2282 of /backup/moodle2/backup_stepslib.php: call to backup_controller_dbops::backup_includes_file_references()

line 34 of /backup/util/plan/backup_execution_step.class.php: call to backup_store_backup_file->define_execution()

line 186 of /backup/util/plan/base_task.class.php: call to backup_execution_step->execute()

line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute()

line 145 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()

line 567 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()

line 132 of /admin/tool/recyclebin/classes/category_bin.php: call to backup_controller->execute_plan()

line 185 of /admin/tool/recyclebin/lib.php: call to tool_recyclebin\category_bin->store_item()

line 5137 of /lib/moodlelib.php: call to tool_recyclebin_pre_course_delete()

line 78 of /course/delete.php: call to delete_course()

Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 3 and state 3 was requested.

Debug info:

Error code: codingerror

Stack trace:

line 1119 of /lib/pagelib.php: coding_exception thrown

line 1557 of /lib/outputrenderers.php: call to moodle_page->set_state()

line 3062 of /lib/outputrenderers.php: call to core_renderer->footer()

line 389 of /lib/setuplib.php: call to core_renderer->fatal_error()

line ? of unknownfile: call to default_exception_handler()


This is the log when trying to backup the course:


Debug info: MySQL server has gone away

SELECT count(r.repositoryid)

FROM piwp_files f

LEFT JOIN piwp_files_reference r

ON r.id = f.referencefileid

JOIN piwp_backup_ids_temp bi

ON f.id = bi.itemid

WHERE bi.backupid = ?

AND bi.itemname = 'filefinal'

[array (

0 => '8b16b997897dd1c32faa02ffaaa5a762',

)]

Error code: dmlreadexception




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 1683 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()

line 1756 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()

line 1967 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()

line 522 of /backup/util/dbops/backup_controller_dbops.class.php: call to moodle_database->count_records_sql()

line 2282 of /backup/moodle2/backup_stepslib.php: call to backup_controller_dbops::backup_includes_file_references()

line 34 of /backup/util/plan/backup_execution_step.class.php: call to backup_store_backup_file->define_execution()

line 186 of /backup/util/plan/base_task.class.php: call to backup_execution_step->execute()

line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute()

line 145 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()

line 567 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()

line 136 of /backup/util/ui/backup_ui.class.php: call to backup_controller->execute_plan()

line 176 of /backup/backup.php: call to backup_ui->execute()



Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>