This would normally indicate that the lib.php hasn't yet been included yet.
In reply to Michael Hughes
Re: Problem with Theme lib.php not loading - Moodle 3.11+
by Dave Emsley -
My thoughts too but I was under the impression that the themename->lib.php was automatically included?
Cheers
Dave
Cheers
Dave
In reply to Dave Emsley
Re: Problem with Theme lib.php not loading - Moodle 3.11+
by Richard Oelmann -
Just checked one of my older themes (3.7) and it has
// Call the theme lib file. require_once(__DIR__ . '/lib.php');
in the theme config.php, so I don't think the lib file is called automatically.