"You do not have access to this content. Try logging in"
Submitted by egregg on Fri, 12/21/2018 - 13:48
Forums:
Hi,
We have created a few H5P interactives and embedded them in our moodle courses.
Certain accounts can view the interactives without problems but others get the error message "You do not have access to this content. Try logging in.”.
there seems to be no correlation between the type of account (i.e teacher/student) and the error message as some teachers can view without issue, others cannot.
Screenshots attached.
Need help with this ASAP please.
Thanks,
otacke
Mon, 12/24/2018 - 05:43
Permalink
Hi egregg!I assume that the
Hi egregg!
I assume that the course that you're trying to embed the content from is not publicly accessible. In that case, any user that is not a learner/teacher in that course will not be able to access the H5P interaction just like any other content of the course.
Best,
Oliver
21cccs
Thu, 12/27/2018 - 20:26
Permalink
Moodle iframe embed: You do not have access to this content
Hello,
We're all of a sudden having the same issue. Admin can see the Moodle-made embedded iframe H5P activity content, but no one else can (teachers/students)- they see the "you do not have access..." message.
The H5P activity was created as follows:
I dont recall this being an issue the last few months... All users can see the activity directly, but not when embedded using the iframe: ie: https://school.21cccs.org/mod/hvp/embed.php?id=573017 ... (iframe src="https://school.21cccs.org/mod/hvp/embed.php?id=577796" allowfullscreen="allowfullscreen" width="733" height="302" frameborder="0")
Any suggestions on how to trouble shoot this?
EDIT:
All users can see the H5P activity, even in Stealth mode: https://school.21cccs.org/mod/hvp/view.php?id=580414
When "view" is in the URL, no issues. But when "embed" is in the URL (in place of the word "view"), it tells the users they should try loggin in, despite being logged in and having full access to that class and activity. Once the embed code is grabbed, then they *student and teachers* cannot see that same activity:
<iframe src="https://school.21cccs.org/mod/hvp/embed.php?id=580414" width="953" height="231" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
I'm using Moodle 3.4.6 and H5P version 1.12
jbach1203
Tue, 01/29/2019 - 04:50
Permalink
Having same issue
I was wondering if this has progressed at all, I am having the same issue.
Admin can see the Moodle-made embedded iframe H5P activity content, but no one else can (teachers/students)- they see the "you do not have access..." message.
Thanks,
Jayne.
Christywyler
Tue, 09/24/2019 - 21:53
Permalink
I am having the same issue.
I am having the same issue. How would I know if I am embededing content is not publicly accessible? I am using cohorts for my 2 types of users, would that cause an issue? I need to get this content to display for my users. Thanks
otacke
Wed, 09/25/2019 - 11:36
Permalink
Hi Christy!On moodle, your
Hi Christy!
On moodle, your H5P content will not be publicly available if the course it is to be found in is not publicly available. That's not a restriction that H5P is imposing, but moodle does.
If you want H5P contents to be publicly accessible/embeddable, you will have to
Please note that these settings may interfere with how the rest of the site is intended to be used.
Best,
Oliver
21cccs
Tue, 01/29/2019 - 16:52
Permalink
You do not have access -- cloned course
So it turns out that this is what happended:
1 - Teacher created a course, including H5P activities. She included some embed links from the H5P activities into her course Lessons
2 - I cloned the course.
3 - Students enrolled in the cloned course couldn't see the embedded H5P activities. This is becuase they were embed links that were attempting to show the H5P activities from the original course, the ones these students were not enrolled in.
So even though cloning a course creates a new instance of the H5P Activities, it does not update the embed links to match these new activities. So once I went intot the lessons and updated the ID number to match the H5P activies for that course, then all was fine...
BV52
Wed, 01/30/2019 - 06:32
Permalink
Hi 21cccs,I'm glad it's
Hi 21cccs,
I'm glad it's working for you now and thank you for getting back to us. This should help anyone that may be encountering the same problem in the future.
-BV52
dgmorrow
Mon, 04/01/2019 - 15:30
Permalink
Helped me, too - Thanks!
I had the same problem. Copied a course in Moodle that included H5P activity embeded within the course. Forgot to update the embed code in the new course. Received emails asking why participants were getting the "...try loggin in" message. Searched and found this answer in less than a minute.
Thanks!
David
geckonet
Wed, 08/14/2019 - 07:36
Permalink
You do not have access to this content. Try logging in.
I updated to the most recent version of moodle, and now have this error, when I didn't before the update.
My course is set out like follows:
I am not aware of any other pemissions settings, but when logged in as a student I get the error message
You do not have access to this content. Try logging in.
I have already gone back and cut and pasted the embed code into the moodle lesson, but the error message is the same.
I re-iterate that I didn't get this issue before the moodle update. None of the lessons were cloned or duplicated.
BV52
Wed, 08/14/2019 - 18:35
Permalink
Hi geckonet,Would you mind
Hi geckonet,
Would you mind providing the following:
-BV52
21cccs
Fri, 09/27/2019 - 01:31
Permalink
access to this content. Try logging in.
When you say: "5 different h5p course presentation modules - hidden from student using edit/common module settings" do you mean put into Stealth Mode ('hidden but available') or do you mean actually 'hidden' -- hidden will prevent your iframe from displaying to students where as stealth mode would allow that iframe to be visible.
Christywyler
Tue, 09/24/2019 - 21:56
Permalink
Having same issues
I am not sure how to fix this on my end. It is not a cloned course. I am using cohorts to put users into two different types of courses. Any solutions anyone can share for this frustrating problem? Thanks so much