Problem/Motivation

Install both Panelizer module (7.x-3.0-rc1 or 3.0-dev) and Entity Cache (7.x-1.1). Click on a panelizer tab, and should see the error below. After a Cache clear the tab will work once, but will fail afterward. Disable Entity Cache module and panelizer tab works correctly.

Fatal error: Call to undefined function ctools_export_crud_load() in .../profiles/panopoly/modules/contrib/panelizer/plugins/entity/PanelizerEntityDefault.class.php on line 1242,

Proposed resolution

Don't have a solution, but if entity cache is not supported or recommended documentation should be updated.

CommentFileSizeAuthor
#6 entity_cache-1787398-6.patch679 bytesmatt v.

Comments

dixon_’s picture

I can confirm this issue. Disabling Entity Cache module fixes the issue.

I haven't looked into the Panelizer code enough yet, but I know that CTools/Panels provides a very clever caching logic itself. I don't know exactly how Panelizer utilizes this, but it could be so that Entity Cache module is redundant in this setup.

dixon_’s picture

Version: 7.x-3.0-rc1 » 7.x-3.x-dev

This should apply to the dev version as well.

mirzu’s picture

Problem is that there isn't a granular way to turn on or off entity cache per entity, or at least it's not surfaced in the admin. So if you have content types that don't use panalizer combined with ones that do you might be sad.

merlinofchaos’s picture

My guess is that entity cache is causing a piece of code to be bypassed that is normally always run, and that piece of code includes a ctools_include('export') -- and because that is bypassed, the crash is happening.

Adding that include just prior to the failure will probably correct the problem. Someone using entity cache would probably have to doublecheck that. There may be other issues as well.

socialnicheguru’s picture

merlinofchaos, that is in fact the case

once I wrote ctools_include('export') above the line with the error everything was ok

matt v.’s picture

Status: Active » Needs review
StatusFileSize
new679 bytes

Here's a patch that adds the ctools_include('export'); line mentioned by SocialNicheGuru above.

merlinofchaos’s picture

Status: Needs review » Fixed

Simple enough. Committed and pushed.

Status: Fixed » Closed (fixed)

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