During "Runtime", the hook_requirements implementation returns "Null". This throws errors. Note this comment in the hook_requirements documentation: you must always return an array:

https://api.drupal.org/comment/25008#comment-25008

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gcb created an issue. See original summary.

gcb’s picture

Status: Active » Needs review
FileSize
397 bytes

Patch attached.

olivier.bouwman’s picture

I successfully tested this patch (#2). On a site build, I was getting the following error and the build would fail. Fatal error: Unsupported operand types in /code/includes/install.core.inc on line 746. After applying the patch, no more error and a successful build. Thanks @gcb!

hargobind’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #2 works great.

Per the documentation, hook_requirements() must return an associative array. So the patch fixes this issue.

hargobind’s picture

Priority: Normal » Major

Marking this as major priority since it causes issues during installation, yet it's still possible to install it without errors with drush.

  • wells committed ce40c74 on 7.x-1.x authored by gcb
    Issue #2923111 by gcb: Invalid return value in hook_requirements causes...
wells’s picture

Status: Reviewed & tested by the community » Fixed

Committed in to 7.x-1.2, thanks @gcb!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.