Coding error detected, after cloning theme

Coding error detected, after cloning theme

by Lastern Nom -
Number of replies: 3

Hi, I'm using Moodle 3.6 version.


I tried follow this tutorial. But i missed the warning it would only work for Boxxie,

To mess around I tried to clone the Clean template. 


After doing this however, i now get the following error:


Coding error detected, it must be fixed by a programmer: page layout file [dirroot]/theme/base/layout/general.php does not contain the main content placeholder, please include "<?php echo $OUTPUT->main_content() ?>" in theme layout file.


I also tried deleting my Clone theme, however this changes nothing.


Also the error mentions this 

[dirroot]/theme/base/layout/general.ph

But on my server there is no theme called "base" 


I think somehow my moodle want to open a theme called base that doesn't excist.

How do i fix this ?



Average of ratings: -
In reply to Lastern Nom

Re: Coding error detected, after cloning theme

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

I am thinking you must install the Boxxie theme first.  Also, that is a VERY old as the warning at the top of the page suggests:

Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable

If you are looking to build a theme I would start out on this page: https://docs.moodle.org/dev/Themes

And to keep things close to core as possible, I would base any child theme on Boost.  There are some really great things coming to Boost as Moodle HQ continues to refine and make usability improvements.

In reply to Chris Kenniburg

Re: Coding error detected, after cloning theme

by Lastern Nom -

I can't install anything, i can't do anything.


What I did is, make a clone and refreshed my website, now i'm unable to do anything. The whole site seems to be broken and keep giving the same error. I deleted the clone but the site keep returning errors.


My question is how do i change my site so it works again. 



In reply to Lastern Nom

Re: Coding error detected, after cloning theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

In your Moodle data folder, delete the contents of 'localcache/theme'.

Average of ratings: Useful (1)