Using Page Manager without Panels enable, I ran into this the following error while trying to change the context settings of a page:

Fatal error in /home/robert/Sites/sites-6/all/modules/ctools/includes/ on line 364: Call to undefined function panels_get_path()

I suppose the line 364 of

  // @todo -- this CSS is actually dependent upon the plugins which means
  // the plugins need to be able to add it.

should implies a dependencies[] = panels within the file or (better to my own opinion) should be removed/avoid using a Panels function within CTools.

As a quick fix I wrapped the lines above with a if(module_exists('panels')) { and it works again like a charm.

All the best and thanks for the awesome modules,


merlinofchaos’s picture

Oh yeah, that should definitely not be in there.

suzanne.aldrich’s picture

I was trying to un-install Page Manager and I got to that fatal error. I tried wrapping the code referenced above in the if(){} statement, but that didn't work. I re-enabled Panels, un-installed Page Manager, got another error:

Invalid argument supplied for foreach() in /var/www/ on line 322.

But Page Manager got un-installed successfully, it looks like. I'll check my db tables and variables to make sure it's really gone. Seems like Panels should be a dependency, for sure, but there's another bug in there too.

sdboyer’s picture

Status: Active » Fixed

Fixed this by simply removing the offending line. The css it's trying to add is added via a preprocess function by looking at the task handler's 'admin css' value.

Status: Fixed » Closed (fixed)

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