Fatal error: Call to a member function isGlobalArea() on a non-object...

Permalink
I have an area called Specials & Events in my sidebar.

When I try to add a block to it, I get this error:

Fatal error: Call to a member function isGlobalArea() on a non-object in /concrete/tools/edit_block_popup.php on line 6


This is how I'm placing that area on the page...same way I do anything else:

<?php  
         $as = new Area('Specials & Events');
         $as->display($c);
?>


I'm able to place a block in any other area of the page just fine...except for this one. Any thoughts?

leinteractive
 
JohntheFish replied on at Permalink Reply
JohntheFish
Just a wild guess. Could it be the ampersand?

The area name is only ever seen by site editors, so you could try a plain text name for the area and see if it makes a difference.
leinteractive replied on at Permalink Best Answer Reply
leinteractive
Nevermind...I figured it out.

Apparently it didn't like the & symbol in the name of my Area. Changed it from '&' to 'and'

Works just fine now.