1) Установил OPENCART по инструкции
2) админ панель работает
3) А когда захожу на сайт пишет
Страница недоступна
Сайт leonhotel.ru пока не может обработать этот запрос.
HTTP ERROR 500
В логе нашел
leonhotel.ru [Fri Jul 28 09:50:42 2017] [error] [pid 19395] sapi_apache2.c(325): [client 92.53.115.234:34514] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/c/cg09891/leonhotel.ru/public_html/system/engine/action.php on line 51 leonhotel.ru [Fri Jul 28 09:50:52 2017] [error] [pid 19898] sapi_apache2.c(325): [client 92.53.115.234:39460] PHP Fatal error: Class 'Controllereventcompatibility' not found in /home/c/cg09891/leonhotel.ru/public_html/system/engine/action.php on line 43
ПОМОГИТЕ
Ответы (1)
// Stop any magical methods being called
if (substr($this->method, 0, 2) == '__') {
return new \Exception('Error: Calls to magic methods are not allowed!');
}
$file = DIR_APPLICATION . 'controller/' . $this->route . '.php';
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
// Initialize the class
if (is_file($file)) {
include_once($file);
43 СТРОКА $controller = new $class($registry);
} else {
return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
}
$reflection = new ReflectionClass($class);
if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
51 СТРОКа return call_user_func_array(array($controller, $this->method), $args);
} else {
return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
}
}
}