Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Suporte geral sobre problemas técnicos para OpenCart v1.x.
Por lobaosao
#37618
Pessoal tudo bom, então é o seguinte eu fiz um cadastro em um webhost free para hospedar o sistema do opencart. Fiz a instalação tudo ocorreu tudo muito bem porém ao tentar acessar minha loja eu recebo esse erro na linha .46 no arquivo "loader.php"
Código: Selecionar todos
class ModelToolImage extends Model { public function resize($filename, $width, $height) { if (!file_exists(DIR_IMAGE . $filename) || !is_file(DIR_IMAGE . $filename)) { return; } $info = pathinfo($filename); $extension = $info['extension']; $old_image = $filename; $new_image = 'cache/' . utf8_substr($filename, 0, utf8_strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension; if (!file_exists(DIR_IMAGE . $new_image) || (filemtime(DIR_IMAGE . $old_image) > filemtime(DIR_IMAGE . $new_image))) { $path = ''; $directories = explode('/', dirname(str_replace('../', '', $new_image))); foreach ($directories as $directory) { $path = $path . '/' . $directory; if (!file_exists(DIR_IMAGE . $path)) { @mkdir(DIR_IMAGE . $path, 0777); }	 } list($width_orig, $height_orig) = getimagesize(DIR_IMAGE . $old_image); if ($width_orig != $width || $height_orig != $height) { $image = new Image(DIR_IMAGE . $old_image); $image->resize($width, $height); $image->save(DIR_IMAGE . $new_image); } else { copy(DIR_IMAGE . $old_image, DIR_IMAGE . $new_image); } } if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { return HTTPS_IMAGE . $new_image; } else { return HTTP_IMAGE . $new_image; }	 } } Fatal error: Class 'Modeltoolimage' not found in /home/u678069612/public_html/loja/system/engine/loader.php on line 46
Não sei oque fazer pois já fiz o teste em 3 webhost e ocorre o mesmo problema e a página de admin funciona 100% sem problema algum... o problema esta sendo nessa linha do arquivo "loader.php" e como eu não tenho quase nada em conhecimento php isso me dificulta a reparar este erro então peço ajuda de vocês para solucionar meu problema se possível :)

Obrigado um grande abraço.
Por aalvestn
#37672
Bom dia!

qual versão do opencart você está tentando instalar e qual pacote de instalação você usou?
é o oficial ou é algum alterado fornecido aqui no fórum?

tive alguns problemas tentando instalar versões fornecidas por usuários aqui do fórum, só resolvi fazendo do modo tradicional... instalando a versão ORIGINAL e só depois inserindo a tradução