Required parameter contentId is missing

When trying to add a video on H5P installed on Moodle, I get the following feedback:

Required parameter contentId is missing

I already increased the upload_max_filesize and post_max_size parameters.

What can it be?

BV52's picture

Hi pierresi,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  11. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV 

When trying to add a video on H5P installed on Moodle, I get the following feedback:

Required parameter contentId is missing

I already increased the upload_max_filesize and post_max_size parameters.

What can it be?

  1. Detailed steps to reproduce the bug (2.25.2020)
  2. Platform and version number.Moodle 3.8
  3. Desktop
  4. Browser: Brave
  5. H5P plugin version: latest
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)

No any changes with browser

 
otacke's picture

Hi Robert!

You quoted "A required parameter (contentId) was missing" before.

This is not an error message from H5P but from moodle, cmp. https://github.com/moodle/moodle/blob/master/lang/en/error.php#L392. I don't know what it's supposed to indicate though.

Best,
Oliver

papi Jo's picture

@Robert, could it be a problem due to the "exotic" Brave browser you are using? Have you tried with a more standard browser?

If as suggested by Oliver this is a Moodle problem, I suggest you post to the relevant Moodle forum at https://moodle.org/mod/forum/view.php?id=8603

Hey thanks for reply, Now I tried with Chrome also but it didn't work

I already increased the upload_max_filesize and post_max_size parameters.

I already increased the upload_max_filesize and post_max_size parameters.

Hi

Is any one found the solution for the same?

i am also having the same issue

I am also having the same problem. Please advise. IF anyone has got a solution to this.

Hello everyone,
I had the same problem and I solved it by following the recommendations. My Moodle is hosted on WampServer. I modified the values of php.ini as follows:
upload_max_filesize = 1000M (previously 32M)
post_max_size = 1000M (previously 32M)
And of course, think about "restarting the services".

This solution isn't working for me. My php.ini file is:

max_execution_time = 60000

max_input_time = 60000

max_input_vars = 60000

memory_limit = 1000M

post_max_size = 1000M

upload_max_filesize = 1000M

and I have some the problem 

 

Attachments: 

Hi all.

Is anyone found the solution for the same?

I am also having the same issue

 

Hi all, Is anyone found the solution? I'm also having the same issue with Advent Calendar :(

Best, Margit


otacke's picture

Hi Margit!

This is not an error message from H5P but from moodle, cmp. https://github.com/moodle/moodle/blob/master/lang/en/error.php#L392. I don't know what it's supposed to indicate though. You may be better off asking on the moodle forums at https://moodle.org/mod/forum/view.php?id=8603

Best,
Oliver