Course Module ID was incorrect
Number of replies: 15The link in this block is pointing to .../moodle/mod/hotpot/view.php?id=3
It should be .../moodle/mod/hotpot/report.php?hp=3
Re: Course Module ID was incorrect
Hi Jean-Pierre,
actually, to me the link looks OK, so I am a little puzzled ...
The link in the "recent activity" block should appear the same as the link to that activity in the main course, and they should both use "id" (which is the id in the "course_module" table) not "hp" (the id in the "hotpot" table)
Would it be possible to send a screen shot, or let me have access to the course so I can see it first hand?
Also, could you say what version of Moodle, and what version of the HotPot module you are using?
cheers
Gordon
Re: Course Module ID was incorrect
The first link is correct: it points to the exercise.
The second link gets added after a student makes the test.
Clicking it gives the 'course module id was incorrect' error.
Moodle 1.5.2 + (2005060222)
$module->version = 2005031418
$module->release = 'v2.0.8'

Re: Course Module ID was incorrect
From what you way, it looks like link that is added after a student takes a test is wrong. I will investigate and report back.
Gordon
Re: Course Module ID was incorrect
Please note that the same error message is displayed when following a HotPot quiz link in the Moodle Features Demo recent activity block.
The link in the recent activity block is http://moodle.org/mod/hotpot/view.php?id=5 whereas the activity link is http://moodle.org/mod/hotpot/view.php?id=4231
Thanks for investigating and a big THANK YOU for the HotPot module.

Re: Course Module ID was incorrect
I have fixed the relevant script, "lib.php", in the Moodle CVS (I think
Thanks again for reporting this!
best regards
Gordon
Re: Course Module ID was incorrect
Martin D. should add your name to the list of 'Particularly helpful Moodlers'.
I believe I have the same issue -- Re: Course Module ID was incorrect
Since converting to 1.52 we've seen a
Course Module ID was incorrect when selecting a news item from our index page at www.tapuniversity.com Is the solution the same, changing 'id' to 'hd'? We would appreciate any insight or direction.
Course Module ID was incorrect |
Re: I believe I have the same issue -- Re: Course Module ID was incorrect
are you sure the symptoms are the same? The error message appears if you have HotPot v2.0.8, when you click on a link to a recently attempted quiz in the "Recent activity" side menu.
If that is your situation, you should download and install the most recent stable version of the HotPot module:
http://download.moodle.org/download.php/modules/stable15/hotpot.zip
If you are getting this error somewhere else, please give more details
all the best
Gordon
Re: I believe I have the same issue -- Re: Course Module ID was incorrect
Thanks for the followup -- it was faster then my reply to your reply.
I actually get it on the index.php page when clicking on a site news message to see the 'entire message'. This occurs with messages created in Moodle 1.46 and coverted over as well as with messages created in 1.52.
Re: I believe I have the same issue -- Re: Course Module ID was incorrect
You said the page was "index.php". Do you mean the very top page of your Moodle site?
Could you possible send the URL of your site to me (gordon at kanazawa hyphen gu dot ac dot jp) so that I can see it for myself?
meny thanks in advance
Gordon
Thank you -- just sent a quick note
Re: Thank you -- just sent a quick note
HI David,
I had a look at your site. The links you are talking about are on the site page, and are links to forums, such as:
- text: Discuss this topic
- url: /mod/forum/discuss.php?d=999
These links are not connected with the HotPot module, so changing "d" to "hp" is unlikely to fix anything
I looked at the forum index on your site, /mod/forum/index.php?id=1, and clicked on the link to the "Site news" forum, /mod/forum/view.php?f=5. The site news index was displayed OK, but I got the "Course module ID was incorrect" error for when clicked on a link for ANY of the discussion threads. I fear the "forum_discussions" table for your site has got messed up somehow.
I am not familiar with how forums work, so I suggest you ask about the error on the forum for the "Forum module",
http://moodle.org/mod/forum/view.php?f=116
as the folks over there are more likely to be able to help you
all the best
Gordon
Re: Thank you -- just sent a quick note
Re: Thank you -- just sent a quick note
I'm sorry Ferdi. There's not enough information, so I can't help you.
Try turing on Moodle debugging: Site administration -> Development -> Debugging
That may tell you at least what part of Moodle is generating the error.
Re: Thank you -- just sent a quick note
After i go to "Administration > Server > Debugging" I Turn on "Display debug messages" and then appears this message :
"Notice: Undefined property: object::$lastname in /.../Peternakan/elearning/theme/aardvark_green/profileblock.php on line 7"