Users cannot enroll in imported courses

I exported some courses then imported and modified them on the same openedx tutor instance. When users try to enroll in the imported courses they get a blank page (just openedx template/header/footer with no content) and they are not enrolled. However, they can enroll on other courses including original ones that where exported. I haven’t found any error in the browser console or tutor log. I checked all course settings including scheduling dates, I couldn’t find anything wrong with the setting.

Any suggestions?

@Mohammed_Al-Shammaa That’s weird… I haven’t seen this issue before.

Some shot-in-the-dark ideas:

  • Did you see any errors in the logs during course import?
    Maybe the new courses were only partially created and are now in a weird state.
  • Did you use the new authoring frontend or the legacy Studio to import these courses?
    Could be a bug in the authoring frontend’s course import process.
  • Are there any custom XBlocks used in your imported courses?
    No idea why these would break enrollment, but maybe there’s something breaking when the backend tries to load the course itself.
  • Any custom theming in use on your site?
    Again, no idea why the imported courses would be having this problem but not the original courses – just trying to determine how your site may differ from a vanilla install.
  • Are you willing to share one of your exported course tar.gz files so we can try to reproduce the issue?

Thank you @jill for your reply.
Attached are the tar.gz files of the original course and the imported course. Users can enroll in the original course but cannot enroll in the imported course.

We are using indigo theme with discovery and android plugins enabled in addition to google-document XBlock.

I used Import option from the tool menu, so I guess this is the new authoring frontend? I don’t know any other way to import a course.

original course.tar.gz (669.4 KB)
imported course.tar.gz (795.5 KB)

@Mohammed_Al-Shammaa I imported your original course.tar.gz into my tutor dev stack, and found that (for some reason) the course outline was empty.

To regenerate it, I ran these commands from the CMS shell:

# Force-regenerate all of the course outlines
./manage.py cms backfill_course_outlines --force
# Clear the cache so we can see the regenerated outlines
./manage.py cms shell -c "from django.core.cache import cache; cache.clear();"

Now, I didn’t have any trouble enrolling in the imported course even without its outline – so I don’t know if this is related to the issue you’re seeing. But it did show me an empty initial Course page when I did enrol in it.

Also, when I imported your imported course.tar.gz, it generated its outline just fine, and I had no trouble enrolling in or viewing that course.

Let me know if these commands don’t fix the issue, and I’ll keep digging.

Hi @Mohammed_Al-Shammaa Were you able to fix these courses?