Can't edit any blocks, and columns show the share button.

Permalink
I log into my concrete5 website (c5 version 5.7.5.13, using the elemental theme) as admin and click the pencil icon to edit the home page.

Oddly, I can't edit any block. Hovering over any column shows the share icon next to the column name (see attached). Clicking on the content block does nothing.

Yesterday, I was able to edit content just fine. What could have happened?

* Note:

I see an error in Chrome developer tools related to underscore.js:

underscore.js:1 Uncaught TypeError: Cannot read property 'replace' of undefined
at Function.x.template (http://www.yi.chizeng.com/concrete/js/underscore.js:1:13153)
at x.(anonymous function) [as template] (http://www.yi.chizeng.com/concrete/js/underscore.js:1:12648)
at d.Area.init (http://www.yi.chizeng.com/concrete/js/app.js:5:17901)
at d.Area (http://www.yi.chizeng.com/concrete/js/app.js:5:17665)
at HTMLDivElement.<anonymous> (http://www.yi.chizeng.com/concrete/js/app.js:5:3700)
at Function.each (http://www.yi.chizeng.com/concrete/js/jquery.js:2:2975)
at m.fn.init.each (http://www.yi.chizeng.com/concrete/js/jquery.js:2:835)
at d.EditMode.scanBlocks (http://www.yi.chizeng.com/concrete/js/app.js:5:3627)
at d.EditMode.init (http://www.yi.chizeng.com/concrete/js/app.js:5:3282)
at d.EditMode (http://www.yi.chizeng.com/concrete/js/app.js:4:28361)

1 Attachment

 
davidfauxfireflies replied on at Permalink Reply 1 Attachment
Yeah, clicking the guide on how to edit content doesn't help. It just shows the popup above the block, but the block is not editable at all.
davidfauxfireflies replied on at Permalink Reply
Ok, I solved the problem by following the advice in this forum.
https://www.concrete5.org/community/forums/5-7-discussion/uncaught-t...

Specifically, I caused this issue of making no blocks editable by surrounding this block of code (within header.php) with an anchor tag (<a>):

<a href='/'>
                  <?php
                    $a = new GlobalArea('Header Site Title');
                    $a->display();
                  ?>
</a>


I solved the problem by using PHP to create the anchor tag instead.

<?php
                    $a = new GlobalArea('Header Site Title');
                    $a->setBlockWrapperStart('<a href="/">');
                    $a->setBlockWrapperEnd('</a>');
                    $a->display();
                  ?>
            </div>
davidfauxfireflies replied on at Permalink Reply
This was rather unexpected ... I would not have expected adding an anchor tag to prevent blocks from being editable.