I tried to copy a large Lesson Activitiy from course-1 into course-2 on the same Moodle instal. I tried to use Import from course-1 into course-2 and also made a backup of course-1 and then restored it into course-2.
The Lesson appears to import and restore OK. I can edit it but when I try to run the Lesson, I get this error message:
Could not find lesson pages
More information about this error
•line 421 of /lib/setuplib.php: moodle_exception thrown
•line 2665 of /mod/lesson/locallib.php: call to print_error()
•line 1299 of /mod/lesson/locallib.php: call to lesson_page_type_manager->load_page()
•line 271 of /mod/lesson/view.php: call to lesson->load_page()
I can see the lesson pages in the database, but Moodle can't find them.