Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
In case a developer is looking in to this,
 
/path/to/moodle/mod/hvp/editor/h5peditor.class.php:633

// Check if icon is available locally:
if ($local_lib->has_icon) {
// Create path to icon:
$library_folder = H5PCore::libraryToFolderName([
'machineName' => $local_lib->machine_name,
'majorVersion' => $local_lib->major_version,
'minorVersion' => $local_lib->minor_version,
'patchVersion' => $local_lib->patch_version,
'patchVersionInFolderName' => $local_lib->patch_version_in_folder_name h5p->h5pF->getLibraryFileUrl($library_folder, 'icon.svg'); Line 633
}

/path/to/moodle/mod/hvp/library/h5p.classes.php on line 3296

  /**
   * Print JSON headers with UTF-8 charset and json encode response data.
   * Makes it easier to respond using JSON.
   *
   * @param mixed $data
   * @param null|int $status_code Http response code
   */  
  private static function printJson($data, $status_code = NULL) {
    header('Cache-Control: no-cache');
    header('Content-Type: application/json; charset=utf-8'); Line 3296
    print json_encode($data);
  }

Picture of Particularly helpful Moodlers Picture of Translators
Did the obvious things like Purge all caches.

No JS errors:
 
The logs at Developer level show:
x.x.x.x - - [05/Aug/2025:20:46:17 +0200] "POST /lib/ajax/service-nologin.php?info=25-method-calls&cachekey=1754419542 HTTP/1.1" 200 1833 "https://mysite/course/modedit.php?add=hvp&type&course=791&section=0&return=0&beforemod=0" 
x.x.x.x - - [05/Aug/2025:20:46:17 +0200] "GET /theme/image.php/moove/tiny_equation/1754419542/icon HTTP/1.1" 200 1164 "https://mysite/course/modedit.php?add=hvp&type&course=791&section=0&return=0&beforemod=0" 
 
The error logs have:
[Tue Aug 05 21:22:24.594286 2025] [php:warn] [pid 2625252:tid 2625252] [client x.x.x.x:37177] PHP Warning:  Cannot modify header information - headers already sent by (output started at /path/to/moodle/mod/hvp/editor/h5peditor.class.php:633) in /path/to/moodle/mod/hvp/library/h5p.classes.php on line 3296, referer: https://mysite/course/modedit.php?add=hvp&type&course=3684&section=0&return=0&beforemod=0
Picture of Particularly helpful Moodlers Picture of Translators
Big question: Why do the error messages talk of "./h5p/h5plib/v124/joubel/core/h5p.classes.php" when there is no ./h5p/h5plib/v124/? There is only a ./h5p/h5plib/v127/ !
 
From ./h5p/h5plib/v127/version.php:
$plugin->version   = 2024100700;
$plugin->requires  = 2024100100;
$plugin->component = 'h5plib_v127'; 
 
And,
Picture of Particularly helpful Moodlers Picture of Translators
I find your explanation vague: What is "a startup local install of moodle"? What are the "certain info about usets"?

Anyway, if your issue has been resolved, you can mark it as such. See Moodle.org: Code of conduct > Provide feedback.
Picture of Particularly helpful Moodlers Picture of Translators
A unique constraint called mdl_quescate_consta_uix, literally? Probably an invention of your Catalan predecessor!
wink 

Try dropping it for the upgrade. As always don't forget to take a clean backup before a direct database manipulation.