So PHP is reporting Call to undefined function on a line containing a comment? I think the next step would be to update to Moodle 4.2.6 (the latest 4.2.x version) to make sure you have all available fixes. If the problem still occurs we'll try to come up with more suggestions.