Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2009 at 16:44 UTC
Updated:
5 Sep 2009 at 09:19 UTC
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
Comment #1
merlinofchaos commentedA quick fix would be to add
before that line.
Comment #2
merlinofchaos commentedThis was fixed in Panels.
Comment #3
Estrangheros commentedHi 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)
Comment #4
kmontyI'm sure you can update to .dev and fix the issue.
Comment #5
Estrangheros commentedI'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!
Comment #6
merlinofchaos commentedJust download 6.x-1.0-beta2, I released it a few minutes ago, you'll find it on the project page.
Comment #7
Estrangheros commentedplease 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
Comment #8
Estrangheros commentedCool! Guess, I already find it - Its the new ctools, you released, right :-)?
Comment #9
Estrangheros commentedI already installed it, but the error message still persists :-(
Comment #10
merlinofchaos commentedSorry, 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 690The answer is to go to that file and just before that line add the line:
ctools_include('content');Comment #11
Estrangheros commentedThank 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";
Comment #13
claypole commentedI have the same error, what did you do to fix this? Thanks!
Comment #14
claypole commented