-
Bug
-
Resolution: Fixed
-
Minor
-
4.2, 4.3
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MOODLE_402_STABLE
-
MDL-78937-master -
-
2
-
Team Hedgehog 2023 Sprint 3.3
Error in PHP 8.1:
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /Users/huongnv/Work/stable_master/moodle/lib/classes/component.php on line 1056 |
Steps to replicate
- Create a new LMS instance (if needed).
- Make sure that you're running on PHP 8.1 or 8.2.
- Make sure to turn on the Debugging mode.
- Install the tool_mfa from
MDL-78509or https://github.com/catalyst/moodle-tool_mfa (I'd suggest to install it fromMDL-78509). - Navigate to Site Administration and finish the upgrade process.
- Run this command in the command line: rm -rf admin/tool/mfa
- Run this command in the command line: php admin/cli/purge_caches.php
- Navigate to Site Administration.
- Verify the content of the page.
Expected result:
The user will see the Plugins check page saying that tool_mfa and factors are missing from disk.
Actual result:
A lot of deprecation warnings at the top of the page.
- blocks
-
MDLQA-18411 CLONE - Backup questions from a previous version is restored in the current moodle
- Passed
- Discovered while testing
-
MDL-78509 Add Multi-factor authentication (MFA) plugin
- Closed
- is a regression caused by
-
MDL-78165 PHP 8.2: Dynamic Properties are deprecated for lib classes
- Closed