• The function get_leads on line 1961 of gravity-forms-addons.php has 15 arguments. The last argument $search_criterias has not been assigned a default value in the function arguments. An array is supplied as a default inside the function definition, however, since no default is specified in the function declaration, PHP throws an error when the function is later called on line 2893 with only 14 arguments supplied in the call.

    Can you please assign a default value to the argument in the function declaration, if it is intended to be optional, or provide a 15th argument when the function is called?

    I have corrected it in my local install, but wanted to alert you so you can make the update for future releases.

    Thank you

    https://ww.wp.xz.cn/plugins/gravity-forms-addons/

The topic ‘PHP error due to missing function argument’ is closed to new replies.