I'm writing an install profile, and Drupal seems to think that modules can only be in the site's root modules (/modules) folder. I have CCK and other modules in /sites/all/modules, and I get the error message: "The cck module is required but was not found. Please move it into the modules subdirectory."

What am I doing wrong? Can't install profile modules be in this directory, as recommended by Drupal?

Comments

Wolfflow’s picture

Hi, would be usefull if you provide some more info.

What about your install-script?

Cheers - Wolfflow
Share your experience with the Open Source Community.
It's not only a choice but a Life Philosophy !!! Adaccs - Do you care?

Contact me for drupal projects in English, German, Italian, Drupal Hosting Support.

tmallen’s picture

What do you mean by "install-script"?

Wolfflow’s picture

Forget about my question. If you want to use an install script and install contributed modules you should think about drive the installation of contributed modules to the default path: sites/all/modules and of course have a procedure in your "install profile" that first create the modules folder and then copy/enpack every contribute module you want in it.

Note: I'm not an expert, this is a guess of what I have understood from your posting.

Edit: Correction: as I have looked up here http://drupal.org/project/Installation+profiles
I just can say that you have to upload first the contributed module in the above mentioned folder before starting
to build an install profile. and more important Drupal have to have at list read access rights to your
sites/all/modules (again is a guess)

Sorry for my confusion in answering ;-(

Cheers - Wolfflow
If you look at word and nouns you do not clearly understand take a look at Common Terminology, Feel free to propose missing Terms

Contact me for drupal projects in English, German, Italian, Drupal Hosting Support.

clintu’s picture

Hi,

Use following code

function default_profile_modules() {
return array(

/*Drupal default core modules*/
'color', 'comment', 'help', 'menu', 'taxonomy', 'dblog',

/*Drupal CCK modules*/
'content','content_copy','content_permissions','fieldgroup');

}