Lessons need blessing before you can visit individual pages?

Lessons need blessing before you can visit individual pages?

by Sacha Brostoff -
Number of replies: 1

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:

  1. User registers with course, logs in for the first time:
  2. User clicks on URL 1 – this brings up the lesson
  3. (user can do whatever they like now – log out, log in again, etc.)
  4. User clicks on URL 2 – this brings up the second page of the lesson

This scenario results in "Error: could not find records":

  1. User registers with course, logs in for the first time.
  2. 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

Average of ratings: -
In reply to Sacha Brostoff

Re: Lessons need blessing before you can visit individual pages?

by Chris Collman -
Picture of Documentation writers
Hi Sacha,
We will need an expert to give us the answer to your question.

My wild guess is that when a student visits the first page, this creates a record in the database that says this student has started this lesson. Evidently the entering the second page first does not create the necessary record. Which MySQL table has the record(s) or which php file has the code that triggers this is way beyond me.

Internal linking has undergone some changes since 1.5. I played around with the concept you have described for hours, jumping between courses and activities and specific lesson pages, with html links in the content of a page. Our teachers did not follow up my "wow, look what we can do" with action. When I put my Xampp site though an upgrade (I think it was 1.7) my demo course of this concept lost some functionality. Glad to hear you and I suspect many others are using this trick.

Best - Chris