I wanted to save a flexible layout that I've already customized so that I can use it on the other pages on my site. After hitting the save button, I get a pop up with the following message:

Unable to complete operation. Fatal error in modules_dir/panels/plugins/layouts/flexible/flexible.inc on line 1741: Call to undefined function ctools_export_crud_load()

Any idea what I might have done wrong during the installation? or anyone else encountered this problem?

Thanks!

Comments

merlinofchaos’s picture

I haven't heard of that one nor seen it. It could however be masked by difference in configuration.

A highly probable fix is this:

Just prior to the line that it is referencing, can you add this line:

  ctools_include('export');

(Not with the PHP tags)

shane.oliver’s picture

merlinofchaos, that worked!

Thanks!

Any reason why I need to add that snippet of code for it to work?

merlinofchaos’s picture

Category: support » bug

The function exists in ctools/includes/export.inc and that file needs to be included in order to be used.

It's possible that in all my tests, some other code path had already included it so I never crashed because it hadn't been, and your setup doesn't have something else causing it. I'll have to fix the code for this.

merlinofchaos’s picture

Status: Active » Fixed
arnold_mad’s picture

also have that issue.

Status: Fixed » Closed (fixed)

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

afeijo’s picture

Status: Closed (fixed) » Active

This problem just happened to be, into the line 1793 of the same file

I added the suggested code, and it worked

Using drupal 7.7, views 3.0-rc1

Letharion’s picture

Status: Active » Closed (fixed)
suntog’s picture

Version: 6.x-3.7 » 7.x-3.0-alpha3

Thanks for the help, I foolishly left in the php tags and gasped at the errors, then I read you "not with php tags" note. As a further note, you can find your saved panel under "Misc" in the Panel layouts -> Category Dropdown. Thanks you saved me hours of work.

merlinofchaos’s picture

Note that the above line of code is actually in the version you specified, so I'm a little surprised that this hit you at all.