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
To use Heroku Stack 22 this needs to be updated to PHP 8.1. This also is good for keeping up with security updates. This will document some things we need to do.
Get instance running
Upgrade Docker to php 8.1
Run composer upgrade process
Run tests (Tests pass)
Upgrade Heroku Stack heroku stack:set heroku-22 -a udoit-um-test-env and redeploy
2024-09-20T20:19:23.781041+00:00 app[web.1]: [20-Sep-2024 20:19:23 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /app/public/index.php on line 43
Suggested to use this pattern $main_action = filter_input(INPUT_POST, 'main_action'); $main_action = htmlspecialchars($main_action, ENT_QUOTES, 'UTF-8');
or $main_action = filter_input(INPUT_POST, 'main_action', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
2024-10-03T20:40:11.081119+00:00 app[web.1]: [03-Oct-2024 20:40:11 UTC] PHP Warning: Undefined array key "mwej" in /app/lib/ims-blti/blti.php on line 74
To use Heroku Stack 22 this needs to be updated to PHP 8.1. This also is good for keeping up with security updates. This will document some things we need to do.
heroku stack:set heroku-22 -a udoit-um-test-env
and redeployCurrent warnings to resolve
E_WARNING: Undefined variable $footer_scripts {"code":2,"message":"Undefined variable $footer_scripts","file":"/app/templates/template.php","line":50}
Fixed this and used isset to check
2024-09-20T20:19:23.781041+00:00 app[web.1]: [20-Sep-2024 20:19:23 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /app/public/index.php on line 43
Suggested to use this pattern
$main_action = filter_input(INPUT_POST, 'main_action'); $main_action = htmlspecialchars($main_action, ENT_QUOTES, 'UTF-8');
or
$main_action = filter_input(INPUT_POST, 'main_action', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
2024-10-03T20:40:11.081119+00:00 app[web.1]: [03-Oct-2024 20:40:11 UTC] PHP Warning: Undefined array key "mwej" in /app/lib/ims-blti/blti.php on line 74
There's a new warning in PHP 8.1 for undefined keys.. These need to be checked.
The text was updated successfully, but these errors were encountered: