As far as I concern, the error message comes out when you do not have any value for that particular variable.
You have at least two options:
1. To turn off the error message since such error doesn't affect the whole application. Just set the error reporting setting in PHP.ini.
2. Perform checking at the beginning of your file. You can use isset() function to do so.
Hope it helps.