Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибка system/engine/loader.php on line 86


Recommended Posts

Добрый день. Возникла такая ошибка.

 

Notice: Error: Could not load template /home/****/******/www/catalog/view/theme/common/header.tpl! in/home/****/******/www/system/engine/loader.php on line 86

 

Вместо звездочек рабочие директории.

Версия ocStore 2.1.0.2, дополнений никаких нет.

Пытался отредактировать header.tpl. 

Когда появилась ошибка, заменил его на стандартный, но ошибка так и осталась.

В "Менеджере дополнений" нажимал кнопку обновить.

На каком-то форуме нашел вариант, что нужно удалить папку system/modification/system - не помогло.

Кеш чистил))

 

У кого была такая проблема, подскажите как решить, и что самое главное, почему она возникает? Чтобы опять не попасть на нее)

 

Файл loader.php:

final class Loader {

private $registry;

public function __construct($registry) {
$this->registry = $registry;
}

public function controller($route, $data = array()) {
// $this->event->trigger('pre.controller.' . $route, $data);

$parts = explode('/', str_replace('../', '', (string)$route));

// Break apart the route
while ($parts) {
$file = DIR_APPLICATION . 'controller/' . implode('/', $parts) . '.php';
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', implode('/', $parts));

if (is_file($file)) {
include_once($file);

break;
} else {
$method = array_pop($parts);
}
}

$controller = new $class($this->registry);

if (!isset($method)) {
$method = 'index';
}

// Stop any magical methods being called
if (substr($method, 0, 2) == '__') {
return false;
}

$output = '';

if (is_callable(array($controller, $method))) {
$output = call_user_func(array($controller, $method), $data);
}

// $this->event->trigger('post.controller.' . $route, $output);

return $output;
}

public function model($model, $data = array()) {
// $this->event->trigger('pre.model.' . str_replace('/', '.', (string)$model), $data);

$model = str_replace('../', '', (string)$model);

$file = DIR_APPLICATION . 'model/' . $model . '.php';
$class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $model);

if (file_exists($file)) {
include_once($file);

$this->registry->set('model_' . str_replace('/', '_', $model), new $class($this->registry));
} else {
trigger_error('Error: Could not load model ' . $file . '!');
exit();
}

// $this->event->trigger('post.model.' . str_replace('/', '.', (string)$model), $output);
}

public function view($template, $data = array()) {
// $this->event->trigger('pre.view.' . str_replace('/', '.', $template), $data);

$file = DIR_TEMPLATE . $template;

if (file_exists($file)) {
extract($data);

ob_start();

require($file);

$output = ob_get_contents();

ob_end_clean();
} else {
trigger_error('Error: Could not load template ' . $file . '!');
exit();
}

// $this->event->trigger('post.view.' . str_replace('/', '.', $template), $output);

return $output;
}

public function helper($helper) {
$file = DIR_SYSTEM . 'helper/' . str_replace('../', '', (string)$helper) . '.php';

if (file_exists($file)) {
include_once($file);
} else {
trigger_error('Error: Could not load helper ' . $file . '!');
exit();
}
}

public function config($config) {
$this->registry->get('config')->load($config);
}

public function language($language) {
return $this->registry->get('language')->load($language);
}
}

Edited by kiborg
Link to comment
Share on other sites


Заменить catalog\controller\common\header.php

У вас ошибка сама говорит за себя, что не может загрузить шаблон header.tpl, а он назначается в контроллере header.php

Link to comment
Share on other sites

  • 1 year later...
  • 3 years later...

Добрый день столкнулся с такой же проблемой но к сожалению замена файла на родной не помогла. Где еще можно посмотреть или изменить? прошу совета. Вот код ошибки которая появляется. ( Ошибка появляется на сайте после добавлении товара в админке) Тесть если я к примеру добавил товар телевизор, то на сайте при нажатии на категорию телевизоров появиться эта ошибка.

Fatal error: Uncaught Exception: Error: Could not load model extension/purpletree_multivendor/sellerproduct! in /home/c/ci68337/storage/modification/system/engine/loader.php:89 Stack trace: #0 /home/c/ci68337/storage/modification/catalog/controller/product/category.php(327): Loader->model('extension/purpl...') #1 /home/c/ci68337/storage/modification/system/engine/action.php(79): ControllerProductCategory->index() #2 /home/c/ci68337/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #3 /home/c/ci68337/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index() #4 /home/c/ci68337/storage/modification/system/engine/router.php(72): Action->execute(Object(Registry)) #5 /home/c/ci68337/storage/modification/system/engine/router.php(61): Router->execute(Object(Action)) #6 /home/c/ci68337/public_html/system/framework.php(169): Router->dispatch(Object(Action), Object(Action)) #7 /home/c/ci68337/public_html/system/startup.php(104): require_once('/home/c/ci68337...') #8 /h in /home/c/ci68337/storage/modification/system/engine/loader.php on line 89

Link to comment
Share on other sites


10 минут назад, okean18 сказал:

Добрый день столкнулся с такой же проблемой но к сожалению замена файла на родной не помогла. Где еще можно посмотреть или изменить? прошу совета. Вот код ошибки которая появляется. ( Ошибка появляется на сайте после добавлении товара в админке) Тесть если я к примеру добавил товар телевизор, то на сайте при нажатии на категорию телевизоров появиться эта ошибка.

Fatal error: Uncaught Exception: Error: Could not load model extension/purpletree_multivendor/sellerproduct! in /home/c/ci68337/storage/modification/system/engine/loader.php:89 Stack trace: #0 /home/c/ci68337/storage/modification/catalog/controller/product/category.php(327): Loader->model('extension/purpl...') #1 /home/c/ci68337/storage/modification/system/engine/action.php(79): ControllerProductCategory->index() #2 /home/c/ci68337/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #3 /home/c/ci68337/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index() #4 /home/c/ci68337/storage/modification/system/engine/router.php(72): Action->execute(Object(Registry)) #5 /home/c/ci68337/storage/modification/system/engine/router.php(61): Router->execute(Object(Action)) #6 /home/c/ci68337/public_html/system/framework.php(169): Router->dispatch(Object(Action), Object(Action)) #7 /home/c/ci68337/public_html/system/startup.php(104): require_once('/home/c/ci68337...') #8 /h in /home/c/ci68337/storage/modification/system/engine/loader.php on line 89

У вас не такая же проблема. У вас с модулем проблема. А не с хедером

  • +1 1
Link to comment
Share on other sites


13 минут назад, Dimasscus сказал:

У вас не такая же проблема. У вас с модулем проблема. А не с хедером

А можно по подробнее, в каком модуле? и как справиться с этим своими силами? Я хоть и старый но вроде понятливый.

Link to comment
Share on other sites


Только что, okean18 сказал:

А можно по подробнее, в каком модуле? и как справиться с этим своими силами? Я хоть и старый но вроде понятливый.

У вас в тексте ошибки все указано.

Fatal error: Uncaught Exception: Error: Could not load model extension/purpletree_multivendor/sellerproduct! in

то есть- нет модели для модуля sellerproduct

  • +1 1
Link to comment
Share on other sites


6 минут назад, Dimasscus сказал:

У вас в тексте ошибки все указано.

Fatal error: Uncaught Exception: Error: Could not load model extension/purpletree_multivendor/sellerproduct! in

то есть- нет модели для модуля sellerproduct

Нужно переустановить какой то модуль? Или внести изменения

 

Link to comment
Share on other sites


6 минут назад, okean18 сказал:

Нужно переустановить какой то модуль? Или внести изменения

 

Модуль мультивендор. Не хватает модели  sellerproduct. Попробуйте перезалить файльі модуля

Link to comment
Share on other sites


44 минуты назад, Dimasscus сказал:

Модуль мультивендор. Не хватает модели  sellerproduct. Попробуйте перезалить файльі модуля

Перезалил все файла находящиеся в папке \system\storage\vendor.   К сожалению это не дало результата

Link to comment
Share on other sites


Только что, okean18 сказал:

Перезалил все файла находящиеся в папке \system\storage\vendor.   К сожалению это не дало результата

Вьі читаете по диагонали?

Link to comment
Share on other sites


В папке сatalog/model/extension/purpletree_multivendor

отсутствует файл sellerproduct.php.

вот об єтом говорит ошибка. И об єтом я писал 2 постами вьіше

Link to comment
Share on other sites


5 минут назад, Dimasscus сказал:

Вьі читаете по диагонали?

Сарказм понял, но не обижаюсь. Объясните пож. по подробнее для тех кто в танке. Что я не так сделал, и как сделать правильно. 

Link to comment
Share on other sites


4 минуты назад, Dimasscus сказал:

В папке сatalog/model/extension/purpletree_multivendor

отсутствует файл sellerproduct.php.

вот об єтом говорит ошибка. И об єтом я писал 2 постами вьіше

 

Link to comment
Share on other sites


2 минуты назад, okean18 сказал:

Сарказм понял, но не обижаюсь. Объясните пож. по подробнее для тех кто в танке. Что я не так сделал, и как сделать правильно. 

Если в кратце- у модуля "purpletree_multivendor" не хватает файла в модели

Link to comment
Share on other sites


4 минуты назад, okean18 сказал:

Сарказм понял, но не обижаюсь. Объясните пож. по подробнее для тех кто в танке. Что я не так сделал, и как сделать правильно. 

Судя по всему речь идет о модуле Purpletree Multivendor Marketplace for OpenCart. Ссьілку на него дать не могу- так как администрация не приветствует ссьілки на офсайт опенкарт

Link to comment
Share on other sites


13 минут назад, Dimasscus сказал:

 

дело в том сто у меня почему то вся стуктура другая

/catalog/view/theme/so-mobile/template/account/purpletree_multivendor/

/catalog/view/theme/so-emarket/template/account/purpletree_multivendor/

 

по этому пути сatalog/model/extension/purpletree_multivendor у мея нету такой папки

 

Link to comment
Share on other sites


Только что, okean18 сказал:

дело в том сто у меня почему то вся стуктура другая

/catalog/view/theme/so-mobile/template/account/purpletree_multivendor/

/catalog/view/theme/so-emarket/template/account/purpletree_multivendor/

 

по этому пути сatalog/model/extension/purpletree_multivendor у мея нету такой папки

 

Вьі приводите адреса вьюх- то есть шаблонов. А я вам про    model

Пишите доступьі в лс- покажу все

Link to comment
Share on other sites


  • 4 months later...

Здравствуйте. Не могу понять в чем проблема. После оформления любого заказа (быстрый заказ, через корзину) выскакивает ошибка:
 

Warning: Invalid argument supplied for foreach() in /var/www/www-root/data/www/storage/modification/system/engine/loader.php on line 83Notice: Undefined property: Proxy::processOrder in /var/www/www-root/data/www/storage/modification/system/engine/action.php on line 79

 

Подскажите плиз в чем может быть проблема? 

Link to comment
Share on other sites


  • 2 weeks later...
 Fatal error: Uncaught Exception: Error: Incorrect key file for table './u0828692_ums/oc_product_related.MYI'; try to repair it<br />Error No: 126<br />DELETE FROM oc_product_related WHERE related_id = '269' in /var/www/u0828692/data/www/umslon.ru/system/library/db/mysqli.php:40 Stack trace: #0 /var/www/u0828692/data/www/umslon.ru/system/library/db.php(16): DB\MySQLi->query('DELETE FROM oc_...', Array) #1 /var/www/u0828692/data/www/umslon.ru/system/storage/modification/admin/model/catalog/product.php(1082): DB->query('DELETE FROM oc_...') #2 /var/www/u0828692/data/www/umslon.ru/system/storage/modification/system/engine/loader.php(181): ModelCatalogProduct->editProduct('269', Array) #3 /var/www/u0828692/data/www/umslon.ru/system/engine/proxy.php(25): Loader->{closure}(Array, Array) #4 /var/www/u0828692/data/www/umslon.ru/system/storage/modification/admin/controller/catalog/product.php(85): Proxy->__call('editProduct', Array) #5 /var/www/u0828692/data/www/umslon.ru/system/storage/modification/system/engine/action.php(51): Co in /var/www/u0828692/data/www/umslon.ru/system/library/db/mysqli.php on line 40

 

Подскажите плиз в чем может быть проблема? 

Link to comment
Share on other sites


  • 1 year later...

Добрый день.

ocStore 2.3

при попытке открыть хтмл карту сайта выдает ошибку

 

Скрытый текст

Fatal error: Uncaught Exception: Error: Could not load model blog/category! in /system/storage/modification/system/engine/loader.php:81 Stack trace: #0 /system/storage/modification/catalog/controller/information/sitemap.php(95): Loader->model('blog/category') #1 /system/storage/modification/system/engine/action.php(51): ControllerInformationSitemap->index() #2 /system/storage/modification/system/engine/front.php(45): Action->execute(Object(Registry)) #3 /system/storage/modification/system/engine/front.php(40): Front->execute(Object(Action)) #4 /system/framework.php(103): Front->dispatch(Object(Action), Object(Action)) #5 /system/startup.php(105): require_once('/home/... in /system/storage/modification/system/engine/loader.php on line 81

 

Edited by djdronluk
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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.