open-lms-open-source / moodle-mod_hsuforum

13 stars 45 forks source link

Undefined constant "mod_hsuforum\FORUM_DISALLOWSUBSCRIBE" #33

Open anh-crl opened 2 years ago

anh-crl commented 2 years ago

We get this error, when students subscribes to a forum, with optional subscription. Same error is shown when we want to see the overview of the subscriptions as admin. We assume that the error was there before, but since we are on php 8 it is shown and the execution is interrupted. odpen-forum-1

System: Moodle 3.11.10 php 8.0 Openforum 2022060600

We assume, that in the file subscriptions.php the wrong CONSTANT is used. In the lib.php no "FORUM_DISALLOWSUBSCRIBE" ist defined, but the CONSTANT "HSUFORUM_DISALLOWSUBSCRIBE" ist defined. Perhaps it's a remnants from the original forum.