-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.1, 4.2
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MOODLE_401_STABLE
-
MDL-77081-401 -
With the META about these cases already closed (MDL-75976), adding this new issue straight under the PHP 8.1 epic.
It seems that there is one more case of PHP functions being called with unexpected null values. Curiously, the case was not there 1-2 weeks ago when some complete runs were performed.
Can be reproduced running Behat (goutte):
- Link: https://ci.moodle.org/view/Testing/job/DEV.81%20-%20PHP%208.1%20Behat%20(non-js)%20-%20master/105/
- Failure:
--- Failed steps:
001 Scenario: Choose rubric as grading strategy # /var/www/html/mod/workshop/tests/behat/grading_strategy.feature:94
When I click on "Assessment form" "link" # /var/www/html/mod/workshop/tests/behat/grading_strategy.feature:98
Moodle exception: Exception - Unknown error type: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in [dirroot]/lib/formslib.php on line 3198More information about this error
Exception - Unknown error type: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in [dirroot]/lib/formslib.php on line 3198
More information about this error
Debug info:
Error code: generalexceptionmessage
×
Dismiss this notification
* line 157 of /lib/behat/lib.php: Exception thrown
* line ? of unknownfile: call to behat_error_handler()
* line 3198 of /lib/formslib.php: call to str_replace()
* line 232 of /lib/form/group.php: call to
MoodleQuickForm_Renderer->startGroup()
* line 1642 of /lib/pear/HTML/QuickForm.php: call to
MoodleQuickForm_group->accept()
* line 1996 of /lib/formslib.php: call to HTML_QuickForm->accept()
* line 1685 of /lib/pear/HTML/QuickForm.php: call to
MoodleQuickForm->accept()
* line 445 of /lib/pear/HTML/Common.php: call to HTML_QuickForm->toHtml()
* line 1027 of /lib/formslib.php: call to HTML_Common->display()
* line 82 of /mod/workshop/editform.php: call to moodleform->display()
(Exception)
Adding both the "Forms" and "Workshop" components because I've not looked which one the responsibility is.