Hello,
We're building out a Drupal installation profile and have recently added entityconnect as a dependency for the profile. There are two issues we're running into, the first is solvable, the second I have a workaround for.
The first issue is that at installation, we're getting
'Notice: Undefined index: value in theme_status_report() (line 2577 of modules/system/system.admin.inc).'
Upon some quick investigation, I found hook_requirements() to be missing a ['value'] index. I also noticed a few grammatical errors in the description.
The second issue is that this module is uninstallable as a profile dependency, as it does not explicitly define dependencies[] in the .info file because it requires one OR the other module, and that's a limitation of the Drupal module dependency system. Entity Connect does require one of them, though, and because, during a profile installation, hook_requirements is checked before profile dependencies are installed, module_exists will always return FALSE, thus throwing the requirements exception.
The workaround we will be using, for now, will be to install entityconnect during the last phase of our profile installation process, after the core dependencies are all installed, which includes entityreference, so the requirements check will validate successfully.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | entityconnect-undefined-index-value-1908956-1.patch | 1.45 KB | kaidjohnson |
Comments
Comment #1
kaidjohnson commentedHere's the patch that resolves the first issue.
* Defined missing ['value'] index
* Moved get_t() to within the switch as it is not needed except in the case of 'install'
* Removed redundant default: break; at end of switch.
* Corrected grammatical errors in 'description'.
Comment #2
jygastaud commentedCommit in DEV and RC1 release.
@kaidjohnson : Thanks for your help.