Google Map block says in edit mode

Permalink 3 users found helpful
I have problems with a Google Map block: it always displays "Content disabled in edit mode". Even when not in edit mode!

I looked at the code for this block and it seems this must be a problem with the page:
$c = Page::getCurrentPage();
if ($c->isEditMode()) { ?>
   <div class="ccm-edit-mode-disabled-item" style="height: 400px">
      <div style="padding: 80px 0px 0px 0px"><?php echo t('Content disabled in edit mode.')?></div>
   </div>
<?php  } else { ?>


Why would $c->isEditMode() return true here ? There is nothing else on the page that indicates that it thinks it is in edit mode. Logging out did not help. Closed all my browser windows, still the same.

Do I need to reset something, clean cache somewhere, ... ?

 
TomVdP replied on at Permalink Reply
Ok... clearing the cache did the trick. Should have tried that before writing a msg here, I suppose. :-/
jlackman replied on at Permalink Reply
For those wondering, it's NOT clearing cache in your browswer. This means clearing the cache in C5 by going to Dashboard/Sitewide Settings/ Then on the right, under "speed settings" you see a button for "Clear Cache".

That's where you do it, in C5.

JL
andrew replied on at Permalink Reply
andrew
Additional note: this is a known bug that is fixed in the upcoming version of concrete5