GlobalArea disapearing in C5.7

Permalink
Hello C5 community!

I have a problem with Conrete5 5.7.
I just imported the html files in the theme folder and installed my theme (empty theme).
When I created a footer and placed the GlobalArea code in it I thought I could place some text in the footer.
So what I did: I created a "Area" 2 colum, placed two blocks of content on each side, put some test text in it and saved it.
After saving and approving it everything disappeared and it got back to what it was before.
Text and colums were gone.

I tried several times but everytime it disappeared.
This problem only persists in "GlobalAreas".

nesoor
 
jvermeer replied on at Permalink Reply
jvermeer
I am having the same issue AND when I go tohttp://site/index.php/dashboard/pages/types/output/...

I received the following error when I try to edit defaults:
-----------------------------------
An unexpected error occurred.
Call to a member function forceControlsToDisplay() on a non-object
-----------------------------------

forceControlsToDisplay() is an inherited member of the Area class for GlobalArea, ergo the area is not instantiated in edit mode....

I am declaring the area as:
<?php  
      $a = new GlobalArea('Navigation'); 
      $a->display($c);                          
?>


Is there something I am missing? I will search free templates for the moment...
nesoor replied on at Permalink Reply
nesoor
Hey jvermeer,

The issue has been resolved for me in a later version of concrete 5.7.
Are you still running an old version?
jvermeer replied on at Permalink Reply
jvermeer
# concrete5 Version
Core Version - 5.7.3.1
Version Installed - 5.7.3.1
Database Version - 20150109000000
jvermeer replied on at Permalink Reply
jvermeer
?php
$stack = Stack::getByName('Navigation');
$stack->display();
?>


That does work... but is not an area...

Nonetheless, I cannot edit the default... the above error remains
nesoor replied on at Permalink Reply
nesoor
Hello jvermeer,

I am not a great support for you but I can just tell you how the "Globalareas' look like on my websites.

<?php  
$a = new GlobalArea('nav');
$a->display();
?>


I do not have a ($c) in the globalareas.
Maybe that is causing the error?
oaknorth replied on at Permalink Reply
I am having a similar issue with a 5.7.4 website. I have a global area in the footer, implemented as so:
<?php
$a = new GlobalArea('Footer Legal');
$a->display();
?>

Which sometimes appears and sometimes doesn't. The area is a simple content block with legal info. Fairly standard stuff. If it disappears I can sometimes force it back by editing a page.. but sooner or later it will disappear again.

Other global areas haven't yet been problematic, just this one.

Not sure if it's of any relevance, but this is the last area/global area in my template.
mesuva replied on at Permalink Reply
mesuva
This behaviour sometimes happens when you had in the past a plain editable Area with the same handle.

So perhaps you had in the past:
$a = new Area('Footer Legal');
$a->display();

and you simply changed it to:
$a = new GloablArea('Footer Legal');
$a->display();

?

If so, that kind of error is going to pop up. You may have success by renaming the area handle something you've never used before, e.g.
$a = new GlobalArea('Legal Footer');
$a->display();

(if you do you'll just need to copy your blocks or re-place the content)

What you've described here is I think a different problem than the original poster.
oaknorth replied on at Permalink Reply
This could well be the case, thanks for the feedback. I've implemented a change to the global areas's name and so far so good. If it disappears again I'll feedback, but I'm anticipating that this was indeed the issue. Thanks.