When clicking on customize this page (Activating IPE) the following php notice is generated.

php Notice: Undefined offset: 2 in panelizer_panels_cache_get() (line 1187 of panelizer.module).

The same notice is generated when saving your changes in the IPE, canceling or reverting to default. This does not occur when using the panelizer tab. This happen regardless of the content type.

Relavent Modules

Package Name Version
Chaos tool suite Chaos tools (ctools) 7.x-1.6-rc1+3-dev
Chaos tool suite Page manager (page_manager) 7.x-1.6-rc1+3-dev
Development Devel generate (devel_generate) 7.x-1.5
Panels Panelizer (panelizer) 7.x-3.1+99-dev
Panels Panels (panels) 7.x-3.4+19-dev
Panels Panels In-Place Editor (panels_ipe) 7.x-3.4+19-dev

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kepford’s picture

Issue summary: View changes

correcting description

DamienMcKenna’s picture

Issue summary: View changes
DamienMcKenna’s picture

Please try the latest -dev versions of CTools and Panels, and are you using any Panelizer patches or Panopoly modules?

kepford’s picture

Issue summary: View changes

Added module info

kepford’s picture

Damien,

Tested in clean install with the following module and confirm it still persists.

Package Name Version
Chaos tool suite Chaos tools (ctools) 7.x-1.6-rc1+3-dev
Chaos tool suite Page manager (page_manager) 7.x-1.6-rc1+3-dev
Development Devel generate (devel_generate) 7.x-1.5
Panels Panelizer (panelizer) 7.x-3.1+99-dev
Panels Panels (panels) 7.x-3.4+19-dev
Panels Panels In-Place Editor (panels_ipe) 7.x-3.4+19-dev

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
621 bytes

Does this resolve it for you?

DamienMcKenna’s picture

FileSize
812 bytes

Some comments.

DamienMcKenna’s picture

kepford’s picture

Status: Needs review » Reviewed & tested by the community

Patch #7 resolves the issue and applies cleanly.

DamienMcKenna’s picture

Committed.

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

ruloweb’s picture

Status: Closed (fixed) » Needs review
FileSize
581 bytes

I reopen this issue because the new patch cause a new bug xD.

I have panelizer + fpp, both with revision enabled and managed with revisioning. When I try to edit a fpp from a node revision (not the published one) it show me the error "Invalid pane id" using IPE, and without IPE it opens the modal fpp edit form, but pointing the original fpp, not the correct revision.

The bug happens here:

+  list($entity_id, $view_mode) = explode(':', $key);
+  // If this entity supports revisions, and a custom revision is being
+  // displayed, it's possible for the key to also include the revision ID.
+  if ($handler->supports_revisions && strpos($view_mode, ':') !== FALSE) {

for example for the key "3:page_manager:5", $view_node gets just "page_manager" and not "page_manager:5", which is needed for the next if to work.

It gets solved just adding the third parameter "2" to explode. Patch attached :)

Thanks!

ruloweb’s picture

Title: Undefined offset in panelizer_panels_cache_get() in IPE » Undefined offset in panelizer_panels_cache_get() in IPE, and "Invalid pane id" when revision is enabled
DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Thanks.

  • DamienMcKenna committed 2527bbd on 7.x-3.x authored by ruloweb
    Issue #2408691 by ruloweb: Invalid pane id when revisioning is enabled.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.