Erro ao imprimir fatura de pedidos no painel opencart 2
Enviado: 08 Dez 2016, 14:09
Estou com um problema no painel de administrador do meu opencart eu preciso imprimir fatura e lista de entrega eu vou em
vendas > pedidos > depois clico em exibir > e no botão imprimir fatura e imprimir lista de entrega porem os dois aparecem um erro na pagina
erro da impressão de fatura
Erro na impressão da lista de entregas
Notice: Error: Could not load model /home/reiban/public_html/admin/model/customer/custom_field.php! in /home/reiban/public_html/vqmod/vqcache/vq2-system_modification_system_engine_loader.php on line 24

fui analisar o código do caminho do erro e ele esta assim
OBS: estou usando a versão 2 do opencart
vendas > pedidos > depois clico em exibir > e no botão imprimir fatura e imprimir lista de entrega porem os dois aparecem um erro na pagina
erro da impressão de fatura
Notice: Error: Could not load model /home/reiban/public_html/admin/model/customer/custom_field.php! in /home/reiban/public_html/vqmod/vqcache/vq2-system_modification_system_engine_loader.php on line 24

Erro na impressão da lista de entregas
Notice: Error: Could not load model /home/reiban/public_html/admin/model/customer/custom_field.php! in /home/reiban/public_html/vqmod/vqcache/vq2-system_modification_system_engine_loader.php on line 24

fui analisar o código do caminho do erro e ele esta assim
Código: Selecionar todos
a linha que fala que está errada é a 24 segue o código desta linha
<?php
final class Loader {
private $registry;
public function __construct($registry) {
$this->registry = $registry;
}
public function controller($route, $args = array()) {
$action = new Action($route, $args);
return $action->execute($this->registry);
}
public function model($model) {
$file = DIR_APPLICATION . 'model/' . $model . '.php';
$class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $model);
if (file_exists($file)) {
include_once(VQMod::modCheck(modification($file), $file));
$this->registry->set('model_' . str_replace('/', '_', $model), new $class($this->registry));
} else {
trigger_error('Error: Could not load model ' . $file . '!');
exit();
}
}
public function view($template, $data = array()) {
$file = DIR_TEMPLATE . $template;
if (file_exists($file)) {
extract($data);
ob_start();
require(VQMod::modCheck(modification($file), $file));
$output = ob_get_contents();
ob_end_clean();
return $output;
} else {
trigger_error('Error: Could not load template ' . $file . '!');
exit();
}
}
public function library($library) {
$file = DIR_SYSTEM . 'library/' . $library . '.php';
if (file_exists($file)) {
include_once(VQMod::modCheck(modification($file), $file));
} else {
trigger_error('Error: Could not load library ' . $file . '!');
exit();
}
}
public function helper($helper) {
$file = DIR_SYSTEM . 'helper/' . $helper . '.php';
if (file_exists($file)) {
include_once(VQMod::modCheck(modification($file), $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);
}
}Código: Selecionar todos
não sei oque pode ser pesquisei em vários fóruns e não acho uma soluçãopublic function model($model) {
$file = DIR_APPLICATION . 'model/' . $model . '.php';
$class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $model);
if (file_exists($file)) {
include_once(VQMod::modCheck(modification($file), $file));
$this->registry->set('model_' . str_replace('/', '_', $model), new $class($this->registry));
} else {
(<----- essa e a linha 24 ---->) trigger_error('Error: Could not load model ' . $file . '!'); (<----- essa e a linha 24 ---->)
exit();
}
}OBS: estou usando a versão 2 do opencart