When editing a page via "Customize this page" Nothing appears when I click "Add new Pane" under the left column "Add New Content" It's Blank with none of the normal buttons showing.

Also Reusable content does not show under "Add existing content".

I am running on Drupal 7.54, Updating to Pano 7x-1.49 doesn't solve this issue either.

I am seeing these two errors in my Reports

Location: /panels/ajax/ipe/select-content/panel_context%3Apage-panopoly_demo_panel%3A%3Apage_panopoly_demo_panel_panel_context%3A%3A%3A%3A/contentheader

Message: Warning: Invalid argument supplied for foreach() in include() (line 21 of /srv/bindings/5aa3fada92314d5b82c0f26d7bc66b11/code/sites/all/themes/radix/templates/panel/panels-add-content-modal.tpl.php).

---------------------------------------------------------------------------------------------------------------------

Location: panels/ajax/ipe/select-content/panel_context%3Apage-panopoly_demo_panel%3A%3Apage_panopoly_demo_panel_panel_context%3A%3A%3A%3A/contentheader

Message: Notice: Undefined variable: root_content_array in include() (line 21 of /srv/bindings/5aa3fada92314d5b82c0f26d7bc66b11/code/sites/all/themes/radix/templates/panel/panels-add-content-modal.tpl.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sloyer807 created an issue. See original summary.

sloyer807’s picture

Trying on a fresh page. Same errors

Location: panels/ajax/ipe/select-content/panelizer%3Anode%3A44%3Apage_manager%3A49/contentmain

Message: Warning: Invalid argument supplied for foreach() in include() (line 21 of /srv/bindings/5aa3fada92314d5b82c0f26d7bc66b11/code/sites/all/themes/radix/templates/panel/panels-add-content-modal.tpl.php).

----------------------------------------

Location: /panels/ajax/ipe/select-content/panelizer%3Anode%3A44%3Apage_manager%3A49/contentmain

message: Notice: Undefined variable: root_content_array in include() (line 21 of /srv/bindings/5aa3fada92314d5b82c0f26d7bc66b11/code/sites/all/themes/radix/templates/panel/panels-add-content-modal.tpl.php).

sloyer807’s picture

Template for file its referencing

<?php
/**
 * @file
 * Template to control the add content modal.
 */
?>
<div class="panels-add-content-modal row">
  <div class="panels-section-column panels-section-column-categories col-md-2">
    <div class="inside">
      <div class="panels-categories-box">
        <h5><?php print t('Add existing content'); ?></h5>
        <ul class="nav nav-pills nav-stacked">
          <?php foreach ($categories_array as $category): ?>
            <li><?php print $category; ?></li>
          <?php endforeach; ?>
        </ul>
      </div>
      <div class="panels-root-content-box">
        <h5><?php print t('Add new content'); ?></h5>
        <ul class="nav nav-pills nav-stacked">
          <?php foreach ($root_content_array as $root_content): ?>
            <li><?php print $root_content; ?></li>
          <?php endforeach; ?>
        </ul>
      </div>
    </div>
  </div>

  <?php print $messages; ?>

  <?php if (!empty($header)): ?>
    <div class="panels-categories-description col-md-10">
      <div class="inner">
        <?php print $header; ?>
      </div>
    </div>
  <?php endif; ?>

  <?php if (!empty($columns)): ?>
  <div class="panels-section-columns col-md-10">
    <div class="row">
      <?php foreach ($columns as $column_id => $column): ?>
        <div class="panels-section-column col-md-6 col-sm-12 col-xs-12">
          <div class="inside">
            <?php print $column; ?>
          </div>
        </div>
      <?php endforeach; ?>
    </div>
  </div>
  <?php endif; ?>
</div>

sloyer807’s picture

Im not sure but this appears to be a database setting somewhere.

My local worked fine and as it should till I cloned down the prod DB and uploaded it now my local environment is suffering the same fate.

Any ideas would be helpful this is a major blocker.

I have tried deleting the files it refers too but no matter what I do, deleting them and clearing cache its always dead set on finding those files and throwing the same error (Deleted whole theme as well)

dsnopek’s picture

What version of Radix do you have? Not recently, but there's been a couple of times where updates to Panopoly needed to be paired with updates to Radix in order for everything to keep working.

Also, and this will sound weird, can you try saving a page via the IPE where you're experiencing this problem? There are some Panels/IPE caches that don't get cleared until you save a page in the IPE, because the cache data is actually kept on the in progress display. This is just a random guess, but worth a try!

sloyer807’s picture

Thanks for the reply,

I am running Radix theme Version 7.x-3.6. I installed it and created the sub theme via drush.
I gave a shot saving the page via IPE, adding content, removing, swapping to other radix layouts, swapping to a custom, no luck.

The errors stayed consistent throughout out trying those things though.

sloyer807’s picture

So an update here, I disabled the radix theme and sub theme. Now I no longer get the errors for whatever reason when I go to Add content through Panopoly BUT I still see no options to add content besides "Blocks, Entity, Menus, Node"

sloyer807’s picture

Checked all perms, Admin has access to all.

dsnopek’s picture

Maybe all the widgets have gotten disabled somehow? Try going to /admin/panopoly/panes and check

sloyer807’s picture

I had to give up on this, I did a new install and migrated content, we got it working.
Im going to account this on user error as I have read no one reproducing.

Cheers and thanks for the help.

sloyer807’s picture

Status: Active » Closed (cannot reproduce)