Look inside the AdminImportController.php
file. My guess is that it is also including the file that defines the AdminImportControllerCore
class, and that it is not using the include_once
verity of the include functions.
That would mean that your main page is defining the class through the include_once
call, and then when it includes the AdminImportController
class, the include there kicks in and tries to re-define the core class, with the results you described.
I suggest you look into PHP's autoloader feature. It'll save you all the headaches associated with manually including files like that. It also tends to promote good file and class naming practices.