Global Areas Dissapper in a theme i made

Permalink
Hi,

I developed a theme for myself, and used a Global Area in a sidebar element, included in every page type. But there is a problem adding a content to that Global Area. When i add the page list to that area which shows Categories on my site, first i can see that Global Area works well, but when i visit other pages, Global Area doesn't get the page list, so that area becomes empty.

After i saw this problem, i tried to add the page list again, but this time i got this error "Unable to retrieve block object. If this block has been moved please reload the page." in edit mode. Then i published the site with this warning or error whatever it is. After that Global Area seemed to be working, but again if i visit other page, page list in that Global Area dissappears again. So this circle continues endlessly.

Is there any solution for that problem?

P.S. Also there are 2 more Global Areas in that sidebar element. But they work very well.

Thanks.

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
It would be helpful if you posted your sidebar code so we can take a look..
memomem replied on at Permalink Reply
Hi,

Here is my sidebar.php code

<aside id="sidebar">
                                    <section class="widget">
                                        <h3 class="title">Son Yazılar</h3>
                                        <?php
                                 $a = new GlobalArea("EnSon Yazılar");
                                 $a->display($c);
                              ?>
                                    </section>
                                    <section class="widget"><h3 class="title">E-Posta Listesi</h3> 
                                              <p>Duyurular için E-Posta Listemize katılın.</p>                           
                                        <div class="newsletter">
                                 <?php
                                    $a = new GlobalArea("Haber Listesi");
                                    $a->display($c);
                                 ?>


Global Area that i have problem with is "Kategoriler"...
goldhat replied on at Permalink Best Answer Reply
Sometimes issues like this happen to global areas if a regular area of the same name existed earlier. Like if you accidentally make "New Area" a regular area, then later change it to global "New Area" that area will have some serious glitchiness. Try changing the name of the area and if that's the problem just don't use that area name again.

There is a way to "clean up" areas that being worked on but it's an addon under development right now. For now if you mess up an area name, it stays in the database and you really can't do anything about it unless you manually clear the database tables.