PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback Error without any function name

There was a filter in the child theme causing the issue:

add_action('excerpt_length','')

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)