The error pops out that:
Use of undefined constant in line 23
Undefined variable
etc. etc. what's the problem? Please help
Is there a $ Symbol pre your variable did you any definations with define() or any outputs with constant() ?
What's the exact line of code
The error seems quite clear to me, you are using a constant or variable without ever having defined the constant or variable. You can't use what you have not defined.