Closed (fixed)
Project:
Profile Generator
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
25 Nov 2010 at 08:29 UTC
Updated:
20 Dec 2010 at 09:40 UTC
Hi, im getting following error while trying to install a Profile generated with the Profilegenerator:
"Fatal error: Call to undefined function install_include()"
any suggestions how to solve the problem?
Comments
Comment #1
dsnoeck commentedHi,
I just have comment this line out and the installation works just fine.
This line is just after the hook_profile_tasks(&$task, $url) in your profile file.
Comment #2
n20 commentedThis dont really helped in my case, i also got errors for install_add_format(), install_add_role(), install_add_permissions() and so on.
Comment #3
n20 commentedNote to myself: RTFM!! I found in the documentation of the required "install_profile_api" module followoing:
1. Copy crud.inc to your profiles directory (optionally, anywhere in your drupal root)
2. Use a line at the top of your .profile file to include it: include_once('profiles/crud.inc');
that fixed all issues...
Comment #4
dsnoeck commentedThanks N20,
Except that's for the version 6.x-2.1 of install profile, you only have to:
1. Put "install_profile_api" in your profile's hook_profile_modules() array.
2. In your profile's hook_profile_tasks(), call install_include() like so:
function foo_profile_tasks() {
install_include(foo_profile_modules());
// Whatever else you need to do...
}