I recently moved my Drupal databases to a dedicated MySQL server; after restoring the databases, all Panels panes display as empty. However, the Panels layout is still visible (screenshot attached), and the panes' content is still available when editing the panes. Even the Panels built-in preview displays as empty. Clearing all caches (something like drush cc [all] or through admin_menu), or re-saving the Panels did not bring the content display back.

This applies sytematically to roughly 20 Drupal 6.30 sites (actually, it's Pressflow); all Panels are affected, including the home pages and landing pages. Views embedded in the panels run normally when run separately. All other site content appears to be available and accessible, as in the old installation. This appears to be an isolated Panels issue that does not affect any other parts of the Drupal sites.

I have migrated Drupal sites with Panels before and never encountered anything remotely similar.

Checks made so far:

  • ./admin/reports/status does not report any issues; especially Panels claims to "operate normally" and the "CTools CSS Cache" says: "available";
  • Apache's error logs do not show anything related to Panels, especially no "PHP fatal error";
  • Pressflow has been updated to the latest version available on Github (equivalent to Drupal 6.30);
  • All contributed modules have been updated to the latest versions;
  • Caching appears to run smoothly; I'm using Memcached and APC; no new caching layers have been introduced so far, especially no reverse proxy (like Varnish) is involved;
  • Drupal's Watchdog log is an issue for itself; the amount it logs depends heavily on the setting "error_reporting" in php.ini and ranges from "nothing" to "totally unreadable". My current setting is error_reporting = E_ERROR & E_RECOVERABLE_ERROR & E_WARNING which reports nothing related to Panels or Ctools (Debian's default is error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT, which makes the log unusable since any Drupal module appears to emit some annoyances)
  • Most of the Panels pages are really simple (used for layout stuff) and do not include conditions that might check for a hosts IP address; I don't think that these Panels pages should even notice that they have been moved.

The existing Panel pages can be edited normally; new content can be added to the panes, but does not display in preview, like the old content. The same applies to newly created Panels pages: they can be created as before, but display no content, neither in preview nor when accessing their URL.

Versions:

panels   6.x-3.10     2012-Jan-18  Supported, Recommended, Security, Installed
ctools    6.x-1.11     2014-Feb-12  Supported, Recommended, Security, Installed

The Panel pages code is rendered like this in the browser; this fragment of the complete page has not been alted or reformatted:

…
<div class="panel-region-separator"></div><div class=" prosper-lightgraybackground-border" 7>
  <div class="inner">
    
    
    
    <div class="pane-content content">
          </div>

    
      </div>
</div>
<div class="panel-region-separator"></div><div class=" prosper-lightgraybackground-border" 8>
  <div class="inner">
    
    
    
    <div class="pane-content content">
          </div>

    
      </div>
</div>
<div class="panel-region-separator"></div><div class=" prosper-lightgraybackground-border" 9>
  <div class="inner">
    
    
    
    <div class="pane-content content">
          </div>

    
      </div>
</div>
…

I have no working Panels page for comparison, but the generated code looks broken (numbers at the end of closing tags?)

I'm pretty much out of ideas; any suggestions?

Thanks!

CommentFileSizeAuthor
empty-panels-pane.jpg17.49 KBasb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

asb’s picture

When working with Drush, on one site I got an interesting output:

…
WD php: Notice: Undefined variable: classes in include() (line 26 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).                  [error]
WD php: Notice: Undefined variable: admin_links in include() (line 28 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).              [error]
WD php: Notice: Undefined variable: title in include() (line 34 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).                    [error]
WD php: Notice: Undefined variable: feeds in include() (line 38 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).                    [error]
WD php: Notice: Undefined variable: content in include() (line 45 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).                  [error]
WD php: Notice: Undefined variable: links in include() (line 48 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).                    [error]
WD php: Notice: Undefined variable: more in include() (line 54 of /var/www/drupal/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php).                     [error]
…

(Those messages are repeated multiple times)

Indeed, I'm using a Fusion based subtheme and did not check with Garland. Switching default theme to Garland and disabling Fusion: Slightly different output, but not a Fusion issue :-(

…
WD php: Notice: Undefined variable: content in include() (line 38 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).                   [error]
WD php: Notice: Undefined variable: links in include() (line 41 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).                     [error]
WD php: Notice: Undefined variable: more in include() (line 47 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).                      [error]
WD php: Notice: Undefined index: base theme in system_find_base_themes() (line 977 of /var/www/drupal/modules/system/system.module).                            [error]
WD php: Notice: Undefined variable: classes in include() (line 20 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).                   [error]
WD php: Notice: Undefined variable: admin_links in include() (line 21 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).               [error]
WD php: Notice: Undefined variable: title in include() (line 27 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).                     [error]
WD php: Notice: Undefined variable: feeds in include() (line 31 of /var/www/drupal/sites/all/modules/panels/templates/panels-pane.tpl.php).                     [error]
…

(Again, those messages are repeated multiple times)

asb’s picture

Status: Active » Closed (duplicate)

The solution to this problem is available at least since December 7, 2012 (no. #21 in #1334574: Panel Content Not Showing ). It's "just" an ampersand missing in the last recommended release.

An updated official release, including the fixes from dev, would have saved me many hours. According to the mentioned issue, the fix lives in dev for more than a year. Panels 6.x-3.10 was released on January 18th, 2012. That was over two years ago and would really justify an update.

cakka’s picture

@asb, thanks for your help. It was helped me.

I have the same problem too. I am still using Drupal 6, because it is lighter. When I was finished migrate my site to other hosting provider my panels page become blank. It didn't load any node. After I add '&' in line 1127 of panels.module (function template_preprocess_panels_pane($vars)) it was become normal.