Hello,
On a 3.9 platform, we've got an error after a migration when loading a scorm page from a singleactivity course format. The error was "Object of class stored_file could not be converted to string".
Following this, we could find at the line 2307 from /lib/filelib.php that "$buffercontents = ob_get_clean();" return a single space instead of a null value, issuing to enter the condition next line. The "$file" from the error log L.2309 here is then an object that generate the error we encounter.
At line 2318 of the same file you check if $file is an object. This check should probably be done before the error log instead of after.
Sincerely
- duplicates
-
MDL-72582 readfile_accel() error handler may cause Object of class stored_file could not be converted to string
- Development in progress