If I put a mini panel into the sidebar, and display it alongside a panel page, I get the following JS error on page load and when I click on "Customize this page", nothing happens.

Comments

mr.andrey’s picture

The js error is "cfg is undefined"

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Can you quote the whole error, including line number and file it is in?

mr.andrey’s picture

Status: Postponed (maintainer needs more info) » Active

Here is the full error:

Error: cfg is undefined
Source File: /sites/all/modules/panels/panels_ipe/js/panels_ipe.js?I
Line: 97
mr.andrey’s picture

Here's that part of the file:

 76 function DrupalPanelsIPE(cache_key, cfg) {
 77   var ipe = this;
 78   this.key = cache_key;
 79   this.state = {};
 80   this.control = $('div#panels-ipe-control-' + cache_key);
 81   this.initButton = $('div.panels-ipe-startedit', this.control);
 82   this.cfg = cfg;
 83   this.changed = false;
 84   this.sortableOptions = $.extend({
 85     revert: 200,
 86     dropOnEmpty: true, // default
 87     opacity: 0.75, // opacity of sortable while sorting
 88     // placeholder: 'draggable-placeholder',
 89     // forcePlaceholderSize: true,
 90     items: 'div.panels-ipe-portlet-wrapper',
 91     handle: 'div.panels-ipe-draghandle',
 92     tolerance: 'pointer',
 93     cursorAt: 'top',
 94     update: this.setChanged,
 95     scroll: true
 96     // containment: ipe.topParent,
 97   }, cfg.sortableOptions || {});
bryancasler’s picture

subscribe

elly’s picture

This is happening to me as well - on a site using panels everywhere with panels pages. There's a bunch of custom code so it may be conflicting. I am investigating but wanted to throw in a "me too!"

drtrueblue’s picture

Also happening to me using quicktabs embedded in flexible panels. I haven't yet tried to reproduce the error with other panel layouts.
I am not certain if it is an issue with panels or quicktabs but I looked at the quicktabs issues queue and did not find a similar error report.
Thank you for taking the time to review. Panels is fantastic!

sepla’s picture

Same there, subscribing...

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)

No instructions for reproducing in here.

Letharion’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)