Hi
I am stuck with profile installation.
I've putted the default mysql information in sites/settings.php and it's working fine. The thing now is that I need to set the language of the site, create the admin account and ask the user some questions (meaning forms) in the installation, and I don't really know how to do that. The only thing I know is that I have to do all this in the function myprofile_profile_final() .
I reminds you that I started with all this drupal thing yesterday. I am a xoops converted!!

I have putted the ecommerce modules in the default_profile_modules function and its not working. I have the following error from php:

Fatal error: Call to undefined function: drupal_get_path() in / the whole path to product module /product.install on line 4

I think that bootstrap is not included in the installation or something like that, but I don't have this problem with the others modules.

Can someone give me a hint?
Thanks

Comments

marcingy’s picture

I have just had the same issue. One solution is place the following line of code round the line causing the problem:

if(function_exists('drupal_get_path')){
  require_once (drupal_get_path('module', 'xxx') .'xxx');
}

This also affects:
product
ec_anon

This will cause the these files to be used normally after the initial install

-----------