Hi,
In regard to this import error, I posted here on 2 December without response:
http://moodle.org/mod/forum/discuss.php?d=182312
Here's what I posted, including the debugging trace:
Hi,
I posted this issue/question elsewhere in October without any reply. Hope to have better luck with this thread.
Our teachers receive the error message "error/decode_rule_mappings_incorrect_count," bringing everything to a halt, when trying to duplicate, restore, or import. Visually, it appears the operation failed. However, as soon as the teacher creates a new resource (such as a Book) in the course, all the items miraculously appear as would have been expected in the first place.
The same behavior is seen repeatedly during testing with various courses on our production
server (Moodle 2.1.2+ (Build: 20111012)) as well as our sandbox (Moodle 2.1.3 (Build: 20111128)).
All three (duplicate, restore, import) seem to fail in /backup/util/helper/restore_decode_rule.class.php.
Any ideas?
Here's the trace from a restore:
error/decode_rule_mappings_incorrect_count
More information about this error
Stack trace:
line 157 of /backup/util/helper/restore_decode_rule.class.php: restore_decode_rule_exception thrown
line 49 of /backup/util/helper/restore_decode_rule.class.php: call to restore_decode_rule->validate_params()
line 101 of /mod/presenter/backup/moodle2/restore_presenter_activity_task.class.php: call to restore_decode_rule->__construct()
line ? of unknownfile: call to restore_presenter_activity_task::define_decode_rules()
line 143 of /backup/util/helper/restore_decode_processor.class.php: call to call_user_func()
line 422 of /backup/moodle2/restore_stepslib.php: call to restore_decode_processor::register_link_decoders()
line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_decode_interlinks->define_execution()
line 153 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
line 148 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
line 302 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
line 130 of /backup/import.php: call to restore_controller->execute_plan()
Thanks for any help you can provide.