I am including a file with a class GroupManager which is eval'd with IP.content. I have received the error that the class is already defined. If I un-include, I receive no errors. If I rename the class, I receive no errors (however I am certain this class does not exist elsewhere.) I tried the following in case there were multiple includes (I was personally using include_once...):
if( !class_exists('GroupManager') ) {
class GroupManager {
}
}
I still receive the error:
Cannot redeclare class GroupManager in ... GroupManager.php on line 37
Obviously there is no line 37 in my 4-line file.
If I remove the class declaration, and replace it with an echo, I receive no error and it echos fine, which means the class does not exist at that point.
if( !class_exists('GroupManager') ) {
echo "Class does not exist???";
}
I am unsure how to even debug this.