-
Bug
-
Resolution: Fixed
-
Major
-
3.11.4, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
This has been detected while checking the error logs as part of the 4.0 release process @ MDL-72815.
To reproduce:
- Set web server and CLI to use PHP 8.0.x.
- Init Behat
- Run Behat with --tags '@mod_lti&&@core_completion'
Expected behavior:
No notices or warnings happen
Current behavior:
Some PHP Notices (10 times, 2 per scenario, it seems) happen (maybe visible in the browser, maybe only in web server logs). With content:
22:378831:[Sat Oct 30 06:56:32.393254 2021] [php:notice] [pid 3779] [client 172.29.0.5:42592] Default exception handler: Exception - Warning: Trying to access array offset on value of type bool in [dirroot]/mod/lti/OAuth.php on line 455 Debug:
|
Error code: generalexceptionmessage
|
* line 157 of /lib/behat/lib.php: Exception thrown
|
* line 455 of /mod/lti/OAuth.php: call to behat_error_handler()
|
* line 431 of /mod/lti/OAuth.php: call to moodle\\mod\\lti\\OAuthRequest->get_normalized_http_url()
|
* line 149 of /mod/lti/OAuth.php: call to moodle\\mod\\lti\\OAuthRequest->get_signature_base_string()
|
* line 519 of /mod/lti/OAuth.php: call to moodle\\mod\\lti\\OAuthSignatureMethod_HMAC->build_signature()
|
* line 514 of /mod/lti/OAuth.php: call to moodle\\mod\\lti\\OAuthRequest->build_signature()
|
* line 3224 of /mod/lti/locallib.php: call to moodle\\mod\\lti\\OAuthRequest->sign_request()
|
* line 680 of /mod/lti/locallib.php: call to lti_sign_parameters()
|
* line 714 of /mod/lti/locallib.php: call to lti_get_launch_data()
|
* line 88 of /mod/lti/launch.php: call to lti_launch_tool()
|
, referer: http://webserver768231fe5b483824/behatrun3/mod/lti/view.php?id=188000
|
Note that, while this has been detected only for 4.0dev (with PHP 8.0), it may apply to older (stable) branches too.
- will help resolve
-
MDL-72815 Fix problems reported in apache logs before 4.0 release
- Closed