New "Invalid Area" when editing a block

Permalink
When I click on "edit block" I only get an "Invalid Area" message. Can anyone tell me what that means?

This is a block I wrote and have been using for many months, and this message is new (and I have not touched the block code).

I get no error message in the console or log when I press edit, just text in teh edit box that says "invalid area", but when I try to add a new block in my console I am seeing

GET http://test.istand.tv/index.php/ccm/system/dialog...d_block?cID=636&btID=482&arHandle=EpisodeSidebar 500 Internal Server Error 3.94s   
jquery.js (line 5) "NetworkError: 500 Internal Server Error -http://test.istand.tv/index.php/ccm/system/dialogs/page/add_block?c...


which is new, and in the log file I am seeing

[Sun Jun 26 22:34:06 2016] [error] [client 181.229.114.111] FastCGI: server "/var/lib/apache2/fastcgi/php5.fastcgi" stderr: PHP message: PHP Fatal error:  Call to a member function isGlobalArea() on a non-object in /home/jw/sites/test/web/concrete/controllers/dialog/page/add_block.php on line 35, referer: http://test.istand.tv/index.php?cID=636&ctask=check-out&ccm_token=1467000872:f1e4329bfeca2a4c785e11ae6ca046cb


Which implies there is no object there, but in live mode it works fine, so there must be, no? The am simply passing the controller from edit.php

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$bObj=$controller;
?>
<?php $this->inc('form_setup_html.php', array('bObj' => $bObj)); ?>


And it has been this ways for a very long time, and I have done no updates... so, any ideas what the issues is with "Invalid Area" or non-object?

Thanks

ntisithoj
 
ntisithoj replied on at Permalink Reply
ntisithoj
bump
ketaz replied on at Permalink Reply
ketaz
I managed to reproduce this. It happened to me when I changed case in content area name after having added blocks to it.

$a = new Area('Main content area'); -> Add block -> $a = new Area('Main Content Area'); (note the capital C and A) -> edit block = Invalid Area error -> $a = new Area('Main content area'); -> edit block = OK