Scenario:
* Clean Drupal6 install with no preexisting custom content types (just what you get out of the box).
* Core profile module setup with some categories and profile fields.
* Enabled the modules necessary to get the Profile_Migrate settings form to appear: (eg, content, content_profile, text, optionwidgets, link, date)
* Note: fieldgroup module doesn't get installed specifically.
* Select "Fieldgroup" for the import type.
Upon form submission you get an SQL error because the call to fieldgroup_groups() expects a database table (either node_groups, or content_groups, depending on the schema version) to be there, however the schema version is not set, nor does the content_group table get created during module enable — only during module install.
Table 'node_group' doesn't exist query: SELECT * FROM node_group ORDER BY weight, group_name in sites/all/modules/cck/modules/fieldgroup/fieldgroup.module on line 231.
Solution:
- Change the module_enable(array('fieldgroup')) to a drupal_install_modules() call.
- Note this requires an additional include_once.
Patch provided in first comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | profile_migrate-ensure-fieldgroup-install-875780-1.patch | 636 bytes | jwilson3 |
Comments
Comment #1
jwilson3See patchfile for complete code required to replace the module_enable() call.
Comment #2
jwilson3pls review #1.