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.
We are getting a PHP Notice, which has a simple fix. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1418036-fix-php-warning-2.patch | 660 bytes | travist |
Comments
Comment #1
travist CreditAttribution: travist commentedHere is the patch.
Comment #2
travist CreditAttribution: travist commentedComment #3
dawehnerYou know such kind of fixes are easy in theory but isn't there maybe a real bug involved here?
Couldn't validate_type be removed by some kind of other problem. So it would be somehow cool if you could explain whether there is a way to reproduce the problem.
Comment #4
djbobbydrake CreditAttribution: djbobbydrake commentedThis is relatively straightforward. We should check for existence of the array item before trying to evaluate it. Surprised this hasn't gotten more attention. It's breaking some of our simpletests with php notices enabled.
Comment #5
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue