Jump to content

FrontCotntroller


Recommended Posts

Hello, I need some help. I have PHP warning that slows my shop down. Here is the error:
 
 
[18-Nov-2014 17:24:52 Europe/Sofia] PHP Warning:  require() [<a href='function.require'>function.require</a>]: Dynamic inheritance detected for class frontcontrollercore in /home/******/public_html/classes/Autoload.php on line 98
[18-Nov-2014 17:24:52 Europe/Sofia] PHP Warning:  require() [<a href='function.require'>function.require</a>]: Autofiltering /home/******/public_html/classes/controller/FrontController.php in /home/******/public_html/classes/Autoload.php on line 98
[18-Nov-2014 17:24:52 Europe/Sofia] PHP Warning:  require() [<a href='function.require'>function.require</a>]: Recompiling /home/******/public_html/classes/controller/FrontController.php in /home/******/public_html/classes/Autoload.php on line 98

The line in the class says: 

 

// If $classname has not core suffix (E.g. Shop, Product)
if (substr($classname, -4) != 'Core')
{
// If requested class does not exist, load associated core class
if (isset($this->index[$classname]) && !$this->index[$classname])
{
require($this->root_dir.$this->index[$classname.'Core']);


// Since the classname does not exists (we only have a classCore class), we have to emulate the declaration of this class
$class_infos = new ReflectionClass($classname.'Core');
eval(($class_infos->isAbstract() ? 'abstract ' : '').'class '.$classname.' extends '.$classname.'Core {}');
}
else
{
// request a non Core Class load the associated Core class if exists
if (isset($this->index[$classname.'Core']))
require_once($this->root_dir.$this->index[$classname.'Core']);
if (isset($this->index[$classname]))
require_once($this->root_dir.$this->index[$classname]);
}
}

Meaning it has problems loading FrontController, but I have not touched or overriden it in any way. Any clue where to look?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...