- 28 Jan 2022, 00:26
#90246
Estou tentando acessar o painel administrativo do meu Opencart pelo dominio/admin e está mostrando um erro, o banco de dados está direto na pasta public_html, fiz alterações nos arquivos config.php da pasta public_html e da pasta admin em public_html, alterei o dominio primario e quando acesso gera um erro, não sei onde preciso alterar ou ajustar a linha de condigo para carregar a administração da loja pelo novo dominio, eu coloquei o novo dominio corretamente nos dois configs.php, ficou assim:
CONFIG.PHP da pasta public_html:
<?php
// HTTP
define('HTTP_SERVER', 'https://www.site_da_loja.com.br/');
// HTTPS
define('HTTPS_SERVER', 'https://www.site_da_loja.com.br/');
// DIR
define('DIR_APPLICATION', '/home1/embras74/public_html/catalog/');
define('DIR_SYSTEM', '/home1/embras74/public_html/system/');
define('DIR_IMAGE', '/home1/embras74/public_html/image/');
define('DIR_STORAGE', '/home1/embras74/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '##########');
define('DB_PASSWORD', '##########');
define('DB_DATABASE', '##########');
define('DB_PORT', '####');
define('DB_PREFIX', 'oc_');
CONFIG.PHP da pasta ADMIN em public_html:
<?php
// HTTP
define('HTTP_SERVER', 'https://www.site_da_loja.com.br/admin/');
define('HTTP_CATALOG', 'https://www.site_da_loja.com.br/');
// HTTPS
define('HTTPS_SERVER', 'https://www.site_da_loja.com.br/admin/');
define('HTTPS_CATALOG', 'https://www.site_da_loja.com.br/');
// DIR
define('DIR_APPLICATION', '/home1/embras74/public_html/admin/');
define('DIR_SYSTEM', '/home1/embras74/public_html/system/');
define('DIR_IMAGE', '/home1/embras74/public_html/image/');
define('DIR_STORAGE', '/home1/embras74/storage/');
define('DIR_CATALOG', '/home1/embras74/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '##########');
define('DB_PASSWORD', '##########');
define('DB_DATABASE', '##########');
define('DB_PORT', '####');
define('DB_PREFIX', 'oc_');
// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');
O erro que está mostrando é esse abaixo:
Warning: fopen(/home1/embras74/storage/logs/openbay.log): failed to open stream: No such file or directory in /home1/embras74/public_html/system/library/log.php on line 22Warning: fopen(/home1/embras74/storage/logs/error.log): failed to open stream: No such file or directory in /home1/embras74/public_html/system/library/log.php on line 22Warning: include_once(/home1/embras74/storage/vendor/scss.inc.php): failed to open stream: No such file or directory in /home1/embras74/public_html/admin/controller/startup/sass.php on line 7Warning: include_once(): Failed opening '/home1/embras74/storage/vendor/scss.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home1/embras74/public_html/admin/controller/startup/sass.php on line 7
O que será que está faltando ou precisa alterar e fazer para que o painel admistrativo do Opencart carregue sem problema da mesma forma que estava carregando pelo domínio anterior?
Se alguém puder gratidão.
CONFIG.PHP da pasta public_html:
<?php
// HTTP
define('HTTP_SERVER', 'https://www.site_da_loja.com.br/');
// HTTPS
define('HTTPS_SERVER', 'https://www.site_da_loja.com.br/');
// DIR
define('DIR_APPLICATION', '/home1/embras74/public_html/catalog/');
define('DIR_SYSTEM', '/home1/embras74/public_html/system/');
define('DIR_IMAGE', '/home1/embras74/public_html/image/');
define('DIR_STORAGE', '/home1/embras74/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '##########');
define('DB_PASSWORD', '##########');
define('DB_DATABASE', '##########');
define('DB_PORT', '####');
define('DB_PREFIX', 'oc_');
CONFIG.PHP da pasta ADMIN em public_html:
<?php
// HTTP
define('HTTP_SERVER', 'https://www.site_da_loja.com.br/admin/');
define('HTTP_CATALOG', 'https://www.site_da_loja.com.br/');
// HTTPS
define('HTTPS_SERVER', 'https://www.site_da_loja.com.br/admin/');
define('HTTPS_CATALOG', 'https://www.site_da_loja.com.br/');
// DIR
define('DIR_APPLICATION', '/home1/embras74/public_html/admin/');
define('DIR_SYSTEM', '/home1/embras74/public_html/system/');
define('DIR_IMAGE', '/home1/embras74/public_html/image/');
define('DIR_STORAGE', '/home1/embras74/storage/');
define('DIR_CATALOG', '/home1/embras74/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '##########');
define('DB_PASSWORD', '##########');
define('DB_DATABASE', '##########');
define('DB_PORT', '####');
define('DB_PREFIX', 'oc_');
// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');
O erro que está mostrando é esse abaixo:
Warning: fopen(/home1/embras74/storage/logs/openbay.log): failed to open stream: No such file or directory in /home1/embras74/public_html/system/library/log.php on line 22Warning: fopen(/home1/embras74/storage/logs/error.log): failed to open stream: No such file or directory in /home1/embras74/public_html/system/library/log.php on line 22Warning: include_once(/home1/embras74/storage/vendor/scss.inc.php): failed to open stream: No such file or directory in /home1/embras74/public_html/admin/controller/startup/sass.php on line 7Warning: include_once(): Failed opening '/home1/embras74/storage/vendor/scss.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home1/embras74/public_html/admin/controller/startup/sass.php on line 7
O que será que está faltando ou precisa alterar e fazer para que o painel admistrativo do Opencart carregue sem problema da mesma forma que estava carregando pelo domínio anterior?
Se alguém puder gratidão.





