restored course - course id is wrong

restored course - course id is wrong

by Support Support -
Number of replies: 2

Hi,

I recently restored a course from our test server to our live server, which is missing links and files.

when i hover over the course I see a path in the status bar at the bottom of the page:

/moodle/course/view.php?id=200

on the old server it says /moodle/course/view.php?id=5

In the url address bar, if I replace 200 with 5 all my files appear!

How do I change the ID of the course from 200 to 5? Where is this stored?

Please advise

Cheers

Average of ratings: -
In reply to Support Support

Re: restored course - course id is wrong

by Greg Wathke -
Are the broken links you are experiencing in the Section Summary areas of the course, or somewhere else? Also, when you look at the broken url on the live server, is the link pointing to the live server name or the test server name? From the way you described putting in the 5 in the url to get the links to work, I suspect it may be pointing to the test server.