You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
having "Display debug messages" activated and the "Debug messages" set to DEVELOPER:
add an assign activity (in our setup Turnitin was even not enabled)
submit a pdf as a student
open the assign activity as a teacher or manager
click on Grade button
The pdf is opened for annotation but a dialog is poped up as follows:
Looking in to XHR requests on this page, you find a request to r.php/api/rest/v2/user/current/preferences with the request parameter {"preferences":{"assign_filter":""}} with the following response:
<br/>
<b>Fatal error</b>
: Declaration of Katzgrau\KLogger\Logger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void in
<b>/home/mdl/src/moodle/plagiarism/turnitinsim/vendor/katzgrau/klogger/src/Logger.php</b>
on line
<b>209</b>
<br/>
Reason
Moodle 4.5 provides the very last version of Psr\Log 3.x (to be found under lib/psr/). In this version, the signature is different:
Steps to reproduce
having "Display debug messages" activated and the "Debug messages" set to DEVELOPER:
Looking in to XHR requests on this page, you find a request to
r.php/api/rest/v2/user/current/preferences
with the request parameter{"preferences":{"assign_filter":""}}
with the following response:Reason
Moodle 4.5 provides the very last version of
Psr\Log
3.x (to be found underlib/psr/
). In this version, the signature is different:Apparently the
Psr\Log
provided in Moodle is considered inKatzgrau\KLogger\Logger
The text was updated successfully, but these errors were encountered: