Getting UndefinedFunctionError for a variable, even after it is well defined

Hello and welcome,

Can You provide the full error stack?

And the line where the error occurs :slight_smile: