I found this error in a php script that is related to php5. Many older scripts use what is now a reserved variable, "$this". The solution is as simple as changing "$this" to something like "$this_var" in the file mentioned. You may have to run-repeat the fix on other files the script calls.