Exception - Undefined constant "viewurl"

Exception - Undefined constant "viewurl"

لە لایەن Colin G -
Number of replies: 2
In Moodle 4.3 php8 When i go to create a new course with the scheduler i get the following error when trying to add time slots Exception - Undefined constant "viewurl"
تێکرایى نمرەپێدراوەکان: -
In reply to Colin G

Re: Exception - Undefined constant "viewurl"

لە لایەن Peter Traenkle -
Yep, same issue here.
After minor update to 4.1.9 and PHP 8.1 when trying to add a new slot (same for single slot and repeated slot) in a newly created scheduler activity, there is the error:


When adding a new slot in a scheduler activity, where a slot has already been added, a new slot is added but I also get the following debug message (full debugging activated):
Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/mod/scheduler/classes/model/appointment.php on line 136


Just created a ticket on Moodle Bug-Tracker:
https://tracker.moodle.org/browse/CONTRIB-9504

Please feel free to vote for it! زەردەخەنە