Possibly in the short term it should, though its not a fix, it just hides the problem a little, so a real solution would be best.
David Scotson
Posts made by David Scotson
If you have access to the server you should be able to switch the theme from the command line, though to be honest I don't know how.
You can hardcode some setting in the config.php but a quick google doesn't turn up the format that you'd need to use to change the theme (if you can).
I just tried this in config.php and it worked (though only after I logged out, but that might be because I use session themes while developing, if you can't log out, try accessing your site from a browser you've not used for a while)
$CFG->theme = 'arialist';
You can hardcode some setting in the config.php but a quick google doesn't turn up the format that you'd need to use to change the theme (if you can).
I just tried this in config.php and it worked (though only after I logged out, but that might be because I use session themes while developing, if you can't log out, try accessing your site from a browser you've not used for a while)
$CFG->theme = 'arialist';
According to the stack trace you posted, you're hitting the same bug that I mentioned earlier.
If you have access to the server you could try making this change to the file mentioned in your error message:
https://github.com/bmbrands/theme_bootstrap/pull/125/files
edit: I see a picture of this change is posted above, too.
But, as far as my experience goes, this bug does not result in a white/blank page. It all works fine before you log in, and then (if you happen to have a message waiting for you that doesn't have a sender) you'll get the coding error warning.
If you have access to the server you could try making this change to the file mentioned in your error message:
https://github.com/bmbrands/theme_bootstrap/pull/125/files
edit: I see a picture of this change is posted above, too.
But, as far as my experience goes, this bug does not result in a white/blank page. It all works fine before you log in, and then (if you happen to have a message waiting for you that doesn't have a sender) you'll get the coding error warning.
Moodle in English -> Themes -> Elegance Theme Released -> Re: Some blocking bug
i le David Scotson -
I see this same error with Bas's Bootstrap 3 theme, though I seem to be the only one. I didn't get to the bottom of it but there's some details of what I found here:
https://github.com/bmbrands/theme_bootstrap/issues/103
https://github.com/bmbrands/theme_bootstrap/issues/103
I believe that the "add a block" block gets added to the "default region". If you look at the config.php file in the root directory of your folder you should see an array called $theme->layouts.
On the pages that have two (or more) block regions
regions' => array('side-pre', 'side-post'),
You can change the default region to the opposite one:
'defaultregion' => 'side-post',
becomes
'defaultregion' => 'side-pre',
At least that's the general principal.