Install of current dev (from 8/24) on fresh install fails:
PHP Fatal error: Call to undefined function mongodb() in sites/all/modules/mongodb/mongodb.install on line 42
Looks like mongodb.install was improved recently and now includes a call to mongodb() in hook_requirements(). However, before the module is installed, Drupal does not include mongodb.module. Therefore, mongodb() is still undefined.
Will attach a patch momentarily that uses the same strategy found at the top of mongodb_watchdog.module.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 0003-Make-the-Watchdog-uninstall-test-pass.patch | 1.02 KB | fgm |
| #7 | 0002-Make-the-Mongodb-install-test-pass.patch | 814 bytes | fgm |
| #7 | 0001-Issue-2574609-WSOD-on-enabling-mongodb-and-uninstall.patch | 5.27 KB | fgm |
Comments
Comment #2
majorrobot commentedHere's the patch.
Comment #3
tempo22 commentedyes, this patch fix the module install.
Comment #4
fgmIt's a bit too violent for me : we should only do this if needed, I think, and it was missing a test. Here is a test showing the bug by failing.
Comment #5
fgmWe actually have a similar problem with uninstalling the mongodb_watchdog module when mongodb module has been disabled. Adding a test too.
Comment #6
fgmAnd here are the two failing tests.
Comment #7
fgmAnd the complete series with the fixes, as three separate patches:
This seems good to me. If anyone care to review ?
Comment #9
fgmCommitted to 7.x-1.x, thanks.