Closed (fixed)
Project:
Scheduler
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2022 at 00:06 UTC
Updated:
5 Oct 2022 at 21:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
narendra.rajwar27Hi @Christopher Riley,
though couldn't reproduce the issue, its working fine for me with Drupal 9.5.x and PHP 8.0
Still adding patch if someone else face this issue in future.
Comment #3
Christopher Riley commentedI am running it on 8.1, however I went ahead and applied your patch. I will let you know if I see anything else acting up.
Thanks
Comment #4
kbriand commentedWhen creating a new vocabulary, $type->label() is null. Therefore, in $params, both @type and %type keys are null. The second one triggers the strtolower() error, while the first one trigger an htmlspecialchars() error since PHP 8.1. Both need to be fixed. I add the patch.
Comment #5
jatingupta40 commentedI will review this patch.
Comment #8
jonathan1055 commentedThanks narendra.rajwar27 for the initial patch and thanks kbriand for the update. I confirm that these are problems in php8.1 and this change fixes both of them.
I've pushed a MR and running against php8.1 will probably find other failures too.
Comment #9
jonathan1055 commentedThe known problems in Scheduler code are now fixed with this second commit. The 6 remaining failures for PHP8.1 are all in the Rules tests, because Rules 8.x-3.0-alpha7 (the newest tagged release) has not been updated for php8.1. However, the changes have been committed to Rules dev. We can update the version of Rules via a container_command in drupalci.yml which (if it works) will show that Scheduler tests can pass in PHP8.1
Comment #11
jonathan1055 commentedThanks narendra.rajwar27 and kbriand.
The change to get dev version of Rules can stay in until the next tagged Rules release.