Open maria-saarnilearning opened 1 week ago
From Totara Support " Given that the problem is related to the Moodle H5P plugin, our best advice would be to raise an issue with the plugin maintainer via their GitHub page because we don’t provide support for issues that arise as a result of third-party plugin.
As a best guess at the moment, the error suggests that the round() function in PHP is receiving a string as its first argument but it expects an integer or a float. Looking at the line in the stack trace before the round(), it would appear that grade_floatval() in H5P might be the cause, which is causing some conflict.
Given that the PHP version for the Totara site is 8.1, there is a strong possibility that enforcement of strict types could be at play and if you do raise this with the plugin maintainer, I’d recommend letting them know the PHP version."
Our customer is trying to update (add content) already existing H5P course presentation content in Totara course. They are getting an error message when trying to save the changes.