Hello,
I have created a compact "contents page" course with URLs that are pointing to pages within lessons.
My problem is that brand new users clicking on these links and visiting these pages within lessons for the first time get an error message,
"Error: could not find records"
…however, users who've already been to these lessons who use these links have no problems at all.
Any idea how I can prevent the error message? Or even what forum to ask?
Cheers!
----------
Here's a bit more detail…
Each lesson has different parts – a concepts part, a practical part, and a questions part, and each part is in a separate page in the lesson. Some of our learners will only be interested in say the practice part, or will be coming only for the questions as they've read through the concepts on a printout – so I'm providing hyperlinks to the individual pages within the lessons.
The hyperlinks are like this:
URL 1. http:// ... /mod/lesson/view.php?id=104
- This is the URL that Moodle gives a lesson. This always works
URL 2. http:// ... /mod/lesson/view.php?id=104&pageid=79
- This is a URL for the second page within a lesson.
- It's the normal lesson url with a pageID appended.
There are a number of courses, a "contents page" course, and Course A, Course B, and courses C, D, E, etc.
The Contents Page course is a child course for the other courses, which are meta-courses. So, when I add a new user to the 'contents page course', the new user is automatically registered with courses A, B, etc.
All courses are of Moodle's Topics format. In the "contents page" course, the Topic Summaries have URLs I've put in there linking to lessons and pages within lessons. For example, the first topic's summary has URLs 1 and 2.
This scenario works fine:
- User registers with course, logs in for the first time:
- User clicks on URL 1 – this brings up the lesson
- (user can do whatever they like now – log out, log in again, etc.)
- User clicks on URL 2 – this brings up the second page of the lesson
This scenario results in "Error: could not find records":
- User registers with course, logs in for the first time.
- User clicks on URL 2 – this brings up the error message.
My set up it is a little unusual I think:
I'm temporarily running off a Windows XAMPP package (although we'll be moving to a dedicated CentOs box soon) of Moodle 1.8 (2007021505), with PHP 5.2.0 and my SQL 5.0.27. This error also seems to occur in Moodle 1.9 dev (2007062008)
This error message is very annoying, because it dramatically reduces the usefulness of my contents page course, which I have spent a long time developing!
Any help would be appreciated,
Sacha