Undefined error


I dont understand what is happening. Last week it was working now it is not.

This is the expected output

Please see this topic