Version: Ctools and Panels3 dev April 24th
Filepath: /admin/build/pages/edit-panel-page/special_reports/move
Action: I was attempting to switch by panel layout from 2 col to 1 col. It brought me to the migration screen (select where to move old regions too) and then when I saved, it spit out this fatal error.

Fatal error: Call to undefined function ctools_get_content_type() in /sites/all/modules/panels/panels.module on line 690

Comments

merlinofchaos’s picture

A quick fix would be to add

  ctools_include('content');

before that line.

merlinofchaos’s picture

Status: Active » Fixed

This was fixed in Panels.

Estrangheros’s picture

Hi merlinofchaos!

I received exactly the same error message ("Fatal error: require_once() [function.require]: Failed opening required './modules/ctools/includes/plugins.inc'"). Please could you tell me, in which file I need to add that code you wrote?
(Sorry for that dumb question :-S)

kmonty’s picture

I'm sure you can update to .dev and fix the issue.

Estrangheros’s picture

I'm sorry, buddyy, I'm bloody new on drupal (6 days). I don't understand that message :-(! Please could you tell me the exactly path, where that file is located? Or is this just an update, I need to run somewhere? Thank you for your help!

merlinofchaos’s picture

Just download 6.x-1.0-beta2, I released it a few minutes ago, you'll find it on the project page.

Estrangheros’s picture

please would you be so nice, and send me the link? I tried to locate it, but thre are too many options available, so I'm not sure, what file exactly I need to download :-S

Estrangheros’s picture

Cool! Guess, I already find it - Its the new ctools, you released, right :-)?

Estrangheros’s picture

I already installed it, but the error message still persists :-(

merlinofchaos’s picture

Sorry, the problem is actually in panels.module not CTools, so I misread what to do.

The original problem is this:
Call to undefined function ctools_get_content_type() in /sites/all/modules/panels/panels.module on line 690

The answer is to go to that file and just before that line add the line:

ctools_include('content');

Estrangheros’s picture

Thank you for that nice explanation :-)! I did as you said, but I still get the same error message. I'll paste the full error message below, maybe that helps to see, what's going on:

"Warning: require_once(./modules/ctools/includes/plugins.inc) [function.require-once]: failed to open stream: No such file or directory in /mySite/modules/ctools/ctools.module on line 84

Fatal error: require_once() [function.require]: Failed opening required './modules/ctools/includes/plugins.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php:/mySite/modules/activitystream/PEAR') in mySite/public_html/modules/ctools/ctools.module on line 84"

I checked the line, and its saying:

require_once './' . drupal_get_path('module', 'ctools') . "/includes/$file.inc";

Status: Fixed » Closed (fixed)

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

claypole’s picture

I have the same error, what did you do to fix this? Thanks!

claypole’s picture