This error means that within your code, there is a variable or constant which is not set. But you may be trying to use that variable.
The error can be avoided by using the isset() function.This function will check whether the variable is set or not.
So in your case you are probably displaying $innerContent but as it is blank the code can’t do anything with it and fails.
Try
if (isset($innerContent)){
Do something
}