I am using moodle for the first time today. I am to look at a site that was built with it. I was getting a blank white screen after login. Then I googled and put a debug line and now it says an error
Fatal error: Call to undefined method core_renderer_maintenance::get_header() in /.../../public_html/theme/genesis/layout/header.php on line 7
New to php too. What is the steps i need to take? ANy help is appreciated. Thanks. If you have questions, please ask.
Be sure to have code that calls the core of moodle:
require_once (dirname ( dirname ( dirname ( __FILE__ ) ) ) . '/config.php');
(the amount of dirname depends on where you are) then you can use the the global variables like $OUTPUT, $PAGE without problem.
echo $OUTPUT->header ();
(your code)
echo $OUTPUT->footer ();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.