Cannot create new course - blank page

Cannot create new course - blank page

by Mark Hayes -
Number of replies: 7

Unable to create a new course in moodle 2.8.5 on ubuntu 14.04

If I click on -
site admin > courses > manage courses and categories
and then click on 
Create new course

Result is a blank page (html source for the page contains just empty head and body elements).
I turned on Debug in moodle and no error message is displayed.

I looked in /var/log/apache2/error.log and no errors.

Average of ratings: -
In reply to Mark Hayes

Re: Cannot create new course - blank page

by Jeff Shrek -

Did you turn on debug mode to the highest "DEVELOPER: extra debug Moodle mesages"?

And did you also check the box Display Debug Messages?


In reply to Jeff Shrek

Re: Cannot create new course - blank page

by Mark Hayes -

Thank you for pointing out the check option Jeff. Was not checked.

Here is the error message:

Fatal error: Cannot redeclare class theme_bootstrap_core_renderer_maintenance in /var/www/moodle/theme/shoehorn/renderers/maintenance_renderer.php on line 0

I am using the More theme.

In reply to Mark Hayes

Re: Cannot create new course - blank page

by Jeff Shrek -

Can you quickly switch to the Clean theme, see if you can create the new course, then switch back to More theme?

This would confirm it is a theme issue.

In reply to Jeff Shrek

Re: Cannot create new course - blank page

by Mark Hayes -

When I click on 'Change theme' I get the following -

Fatal error: Cannot redeclare class theme_bootstrap_core_renderer_maintenance in /var/www/moodle/theme/bootstrap/renderers/maintenance_renderer.php on line 0

In reply to Mark Hayes

Re: Cannot create new course - blank page

by Jeff Shrek -

Okay well unfortunately I do not know what that error means so cannot assist anymore. Hopefully somebody else can give you some more ideas.

In reply to Mark Hayes

Re: Cannot create new course - blank page

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Delete the optional theme you (probably) installed.

In reply to Howard Miller

Re: Cannot create new course - blank page

by Mark Hayes -

Fixed.
I removed the Flexibase theme and its underlying Bootstrap theme (not bootstrapbase) and now I can change themes and add a new course.

Many thanks Jeff and Howard.