Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The above PHP notice is being raised in cases where form elements to not have a #type set on them.
However, for certain elements, it is fine for them not to - e.g. the top-level form element itself, #markup elements etc.
Comment | File | Size | Author |
---|---|---|---|
#3 | ife-1826242-03.patch | 597 bytes | pontus_nilsson |
#1 | ife-1826242-01.patch | 1.01 KB | jamsilver |
Comments
Comment #1
jamsilver CreditAttribution: jamsilver commentedPatch attached.
Comment #2
stijndm CreditAttribution: stijndm commentedThe code you are trying to fix here does not exist anymore. Please check the version you are using, also, try creating and testing patches on the latest development version.
Thx
Stijn
Comment #3
pontus_nilssonI think jamsilver is referring to and already has applied the code in issue 1800974 (array_search() acts differently in PHP 5.2 and 5.3) and has added code on top of that.
The provided patch combines the patch in jamsilver's comment with the code in the issue 1800974.
Comment #4
jamsilver CreditAttribution: jamsilver commentedAh, sorry! Yes, that's clearly what I've done =). I have put your patch onto #1800974: array_search() acts differently in PHP 5.2 and 5.3, which seems like a more reasonable place for it.