Edit toolbar blank on some pages

Permalink
Some time ago I updated a site to 5.5.2.1.

Recently, I had to add a page and I found that, after the initial version, when I went back to edit the page, there were no icons on the toolbar...just a blank bar.

All of the pages that were created before the upgrade, the toolbar is as it should be. The pages that were created with composer after the upgrade, the toolbar is as it should be. Any pages created by "add a sub page" the toolbar is blank. I created a page from composer, the toolbar was as it should be. I moved the page to where I really wanted it, the toolbar is blank. I moved it back to the default position for composer, toolbar remains blank.

I do have a custom theme so I switched to the core themes one by one and I get the same results.

bluPaula
 
stavrosatwork replied on at Permalink Reply
stavrosatwork
I experienced a similar problem with a custom theme and traced it back to a javascript bug brought on by a PHP fatal error thrown in /concrete/tools/page_controls_menu_js.php. Firebug console shows an error as below:

$(function() {
         $("#ccm-page-controls-wrapper").html(menuHTML); 
                                                                              sbitem = new ccm_statusBarItem();
               sbitem.setCSSClass('info');
               sbitem.setDescription('<br />
<b>Fatal error</b>:  Call to a member function getUserName() on a non-object in <b>/******/concrete/core/models/workflow/types/basic.php</b> on line <b>69</b><br />


and the corresponding lines in 'page_controls_menu_js.php':
$(function() {
   <?php  if ($c->isEditMode()) { ?>
      $(ccm_editInit);   
   <?php  } ?>
   <?php  
   if (!$dh->inDashboard()) { ?>
      $("#ccm-page-controls-wrapper").html(menuHTML); 
      <?php  if ($cantCheckOut) { ?>
         item = new ccm_statusBarItem();
         item.setCSSClass('info');
         item.setDescription('<?php echo  t("%s is currently editing this page.", $c->getCollectionCheckedOutUserName())?>');
         ccm_statusBar.addItem(item);      
      <?php  } ?>


To resolve, I duplicated the page in the full sitemap and continued on, as this page was not published with guest permissions (I'm using advanced permissions on 5.6.2.1) and there was no harm in this.

I know this is an old topic, but hope this sheds some light.