Hi all,
I have a theme which i added a new region into it called 'notices' I noticed that when I edited a block I got the follwing in my error log.
PHP Notice: Undefined index: regions in /Users/wheelz24/Sites/m2/lib/outputlib.php on line 1267
PHP Warning: Invalid argument supplied for foreach() in /Users/wheelz24/Sites/m2/lib/outputlib.php on line 1267
So I took the region out of my theme but I'm still getting the error.
Firstly I thought I had added my region in correctly by putting the $hasnotices to check if the notices area existed then
if ($hasnotices) {
echo $OUTPUT->blocks_for_regions('notices');
}
and then in the cofig I had
'course' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post', 'notices'),
'defaultregion' => 'side-pre',
),
Why am I getting this error?
Thanks
Kieran