When including the module as part of a custom makefile/platform, the installation process ends up failing. The installation fails after the language/locale selection step, resulting in:
Fatal error: Unsupported operand types in /path/to/drupal/site/includes/install.core.inc on line 741
What appears to be happening is that commerce_cybersource_sawm_requirements() doesn't return anything when not in the runtime phase. The $requirements array is initialized, but it doesn't get returned. This means the function returns NULL (instead of an empty array), which then cascades down causing install_verify_requirements() to critically fail when trying to append NULL to the $requirements array.
Steps to reproduce:
- Add commerce_cybersource_sawm to custom build's make file and .info file as dependencies
- Build platform as usual using drush make
- Start normal installation process
- Install fails after language/locale selection page.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | commerce_cybersource_sawm-install-failure-2358969-1.patch | 549 bytes | ekautto |
Comments
Comment #1
ekautto commentedThis patch should solve the issue. The only needed change was changing the position of the return statement, so that at the very least, an empty array is returned.
Comment #2
jasonlttl commentedComment #4
deekayen commentedI'll roll a new release for this.