我在本地服务器上建立了一个基于 opencart 的网站,昨晚我将本地文件移到了一个免费主机上。现在产品和横幅图像无法正常显示。在 chrome 中我去控制台它显示以下错误。
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
Failed to load resource: the server responded with a status of 404 (Not Found) http://magichomegym.hostingsiteforfree.com/undefined
我也无法在文件管理器的支持下上传图像。如果我上传任何图像,它只是加载很长时间。
我的网站是http://magichomegym.hostingsiteforfree.com/
我的根配置文件是,
<?php
// HTTP
define('HTTP_SERVER', 'http://magichomegym.hostingsiteforfree.com/');
define('HTTP_IMAGE', 'http://magichomegym.hostingsiteforfree.com/image/');
define('HTTP_ADMIN', 'http://magichomegym.hostingsiteforfree.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://magichomegym.hostingsiteforfree.com/');
define('HTTPS_IMAGE', 'http://magichomegym.hostingsiteforfree.com/image/');
// DIR
define('DIR_APPLICATION', '/home/u230336461/public_html/catalog/');
define('DIR_SYSTEM', '/home/u230336461/public_html/system/');
define('DIR_DATABASE', '/home/u230336461/public_html/system/database/');
define('DIR_LANGUAGE', '/home/u230336461/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/u230336461/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/u230336461/public_html/system/config/');
define('DIR_IMAGE', 'home/u230336461/public_html/image/');
define('DIR_CACHE', '/home/u230336461/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/u230336461/public_html/download/');
define('DIR_LOGS', '/home/u230336461/public_html/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'mysql.1freehosting.com');
define('DB_USERNAME', 'u230336461_homeg');
define('DB_PASSWORD', 'mypassword');
define('DB_DATABASE', 'u230336461_homegym');
define('DB_PREFIX', '');
?>
我的管理配置文件是,
<?php
// HTTP
define('HTTP_SERVER', 'http://magichomegym.hostingsiteforfree.com/admin/');
define('HTTP_CATALOG', 'http://magichomegym.hostingsiteforfree.com/');
define('HTTP_IMAGE', 'http://magichomegym.hostingsiteforfree.com/image/');
// HTTPS
define('HTTPS_SERVER', 'http://magichomegym.hostingsiteforfree.com/admin/');
define('HTTPS_CATALOG', 'http://magichomegym.hostingsiteforfree.com/');
define('HTTPS_IMAGE', 'http://magichomegym.hostingsiteforfree.com/image/');
// DIR
define('DIR_APPLICATION', '/home/u230336461/public_html/admin/');
define('DIR_SYSTEM', '/home/u230336461/public_html/system/');
define('DIR_DATABASE', '/home/u230336461/public_html/system/database/');
define('DIR_LANGUAGE', '/home/u230336461/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/u230336461/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/u230336461/public_html/system/config/');
define('DIR_IMAGE', '/home/u230336461/public_html/image/');
define('DIR_CACHE', '/home/u230336461/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/u230336461/public_html/download/');
define('DIR_LOGS', '/home/u230336461/public_html/system/logs/');
define('DIR_CATALOG', '/home/u230336461/public_html/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'mysql.1freehosting.com');
define('DB_USERNAME', 'u230336461_homeg');
define('DB_PASSWORD', 'mypassword');
define('DB_DATABASE', 'u230336461_homegym');
define('DB_PREFIX', '');
?>
有人知道吗?