Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37669

Problem with non-existent region

$
0
0
by Kieran Briggs.  

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


Viewing all articles
Browse latest Browse all 37669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>