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

dsnoeck’s picture

Hi,
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.

n20’s picture

This dont really helped in my case, i also got errors for install_add_format(), install_add_role(), install_add_permissions() and so on.

n20’s picture

Status: Active » Fixed

Note 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...

dsnoeck’s picture

Thanks 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...
}

Status: Fixed » Closed (fixed)

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