This forum post has been removed
Number of replies: 3Probably... you can no longer use the name of a class as the method name for the constructor. You have to change its name to __constructor(). Should be as simple as that.
If you didn't write the module then best to get in touch with the maintainer.
<pre>
Several changes in Moodle core, standard plugins and third party libraries to
ensure compatibility with PHP7. All plugins are recommended to perform testing
against PHP7 as well. Refer to https://docs.moodle.org/dev/Moodle_and_PHP7 for more
information. The following changes may affect you:
* Class moodleform, moodleform_mod and some module classes have been changed to use
__construct() for the constructor. Calling parent constructors by the class
name will display debugging message. Incorrect: parent::moodleform(),
correct: parent::__construct()
...
</pre>
(From lib/upgrade.txt).