TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given #7875
-
I am getting multiple errors in the "give-core" plugin (full error stack below). Here is the file where this is happening. Look for the the function renameKeys() (around line 21).
The problem is being caused because sometimes the $array var is empty, so need to make sure that the array is not empty before running the array_key_exists function. My suggestion is to add the follow code to the top of the function, right above the for loop (around line 23).
Here is the full error stack:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@jessewaitz, thank you for reporting this. It should be resolved in the following releases. Here is the PR #7877 |
Beta Was this translation helpful? Give feedback.
@jessewaitz, thank you for reporting this. It should be resolved in the following releases. Here is the PR #7877