Coding error detected, it must be fixed by a programmer: Invalid string identifier. The identifier cannot be empty. Please fix y

Hi

Im getting this error when trying to save a content type. And it happened on all content types except for iframe embedder:

 

Coding error detected, it must be fixed by a programmer: Invalid string identifier. The identifier cannot be empty. Please fix your get_string() call.

More information about this error

×Debug info: 32767
Error code: codingerror×Stack trace:
  • line 7042 of /lib/moodlelib.php: coding_exception thrown
  • line 469 of /mod/hvp/classes/framework.php: call to get_string()
  • line 1690 of /mod/hvp/library/h5p.classes.php: call to mod_hvp\framework->t()
  • line 2057 of /mod/hvp/library/h5p.classes.php: call to H5PExport->createExportFile()
  • line 95 of /mod/hvp/classes/view_assets.php: call to H5PCore->filterParameters()
  • line 64 of /mod/hvp/classes/view_assets.php: call to mod_hvp\view_assets->getfilteredparameters()
  • line 44 of /mod/hvp/view.php: call to mod_hvp\view_assets->__construct()
BV52's picture

Hi lesterstoffels,

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. Moodle version: 
  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

Note: You can try disabling other plugins in Moodle. If this doesn't work and if this is a new installation you can uninstall/reinstall the plugin.

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

-BV52

Hi

Thanks for your quick reply. Please see my answers in bold below next to each question of yours.

  1. Detailed steps to reproduce the bug (exactly how and when did it happen): When opening H5P Interactive Content and then i choose maybe "Audio Recorder" and after completing all the necessary info i press "Save and display" and then im getting that error.
  2. Platform and version number. Moodle version:  Moodle version is 3.2.1
  3. Mobile or Desktop: Macbook
  4. Browser: Chrome, Firefox, Safari etc:  Chrome
  5. H5P plugin version: 1.12
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.:  All content types except Iframe Embedder
  7. Any browser console errors: No
  8. Any PHP errorsNotice:     Undefined index: Cannot read file. Either the file does not exist or there is a permission problem. in /home/theblhix/public_html/mod/hvp/classes/framework.php on line 469
  9. Screenshots if it's a visual problem: Im uploading the screenshot attached.

Hi 

Ive deleted the plugin but now ive lost all the info. Is there a way to get it back after reinstallation?

Regards

BV52's picture

Hi lesterstoffels,

Are you pertaining to the error message or contents created? I'm sorry both cannot be retrieved once you uninstalled the plugin.

Did you a lot of contents created? What happened after reinstallation?

-BV52