Opencart迁移问题

时间:2018-06-14 06:40:23

标签: php mysql opencart

我已将我的opencart网站迁移到路径http://shootandedit.site/smilzo-beta/,但在访问该链接时显示空白页面。我已经联系过123-reg支持团队,但他们说编码问题超出了支持范围。我配置了2个php文件(config.php,admin / config.php)并重新检查它们似乎都是正确的。 我需要改变什么?

<?php
// HTTP
define('HTTP_SERVER', 'http://shootandedit.site/smilzo-beta/');

// HTTPS
define('HTTPS_SERVER', 'http://shootandedit.site/smilzo-beta/');

// DIR
define('DIR_APPLICATION', '/home/shootandedit.site/public_html/smilzo-beta/catalog/');
define('DIR_SYSTEM', '/home/shootandedit.site/public_html/smilzo-beta/system/');
define('DIR_IMAGE', '/home/shootandedit.site/public_html/smilzo-beta/image/');
define('DIR_STORAGE', '/home/shootandedit.site/public_html/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', '127.0.0.1');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

和admin / config.php

<?php
// HTTP
define('HTTP_SERVER', 'http://shootandedit.site/smilzo-beta/admin/');
define('HTTP_CATALOG', 'http://shootandedit.site/smilzo-beta/');

// HTTPS
define('HTTPS_SERVER', 'http://shootandedit.site/smilzo-beta/admin/');
define('HTTPS_CATALOG', 'http://shootandedit.site/smilzo-beta/');

// DIR
define('DIR_APPLICATION', '/home/shootandedit.site/public_html/smilzo-beta/admin/');
define('DIR_SYSTEM', '/home/shootandedit.site/public_html/smilzo-beta/system/');
define('DIR_IMAGE', '/home/shootandedit.site/public_html/smilzo-beta/image/');
define('DIR_STORAGE', '/home/shootandedit.site/public_html/storage/');
define('DIR_CATALOG', '/home/shootandedit.site/public_html/smilzo-beta/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', '127.0.0.1');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

// OpenCart API
 define('OPENCART_SERVER', 'https://www.opencart.com/');

旧的链接运作良好

http://wercreative.in/smilzo-beta/

1 个答案:

答案 0 :(得分:0)

试试此代码。 [编辑1]此外,我已从除服务器之外的链接中删除了.site。 [编辑2]改变两个文件中的存储链接

Config.php

 <?php
// HTTP
define('HTTP_SERVER', 'http://shootandedit.site/smilzo-beta/');

// HTTPS
define('HTTPS_SERVER', 'http://shootandedit.site/smilzo-beta/');

// DIR
define('DIR_APPLICATION', '/home/shootandedit/public_html/smilzo-beta/catalog/');
define('DIR_SYSTEM', '/home/shootandedit/public_html/smilzo-beta/system/');
define('DIR_IMAGE', '/home/shootandedit/public_html/smilzo-beta/image/');
define('DIR_STORAGE', '/home/shootandedit/public_html/smilzo-beta/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', '127.0.0.1');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

管理/ config.php中

<?php
// HTTP
define('HTTP_SERVER', 'http://shootandedit.site/smilzo-beta/admin/');
define('HTTP_CATALOG', 'http://shootandedit.site/smilzo-beta/');

// HTTPS
define('HTTPS_SERVER', 'http://shootandedit.site/smilzo-beta/admin/');
define('HTTPS_CATALOG', 'http://shootandedit.site/smilzo-beta/');

// DIR
define('DIR_APPLICATION', '/home/shootandedit/public_html/smilzo-beta/admin/');
define('DIR_SYSTEM', '/home/shootandedit/public_html/smilzo-beta/system/');
define('DIR_IMAGE', '/home/shootandedit/public_html/smilzo-beta/image/');
define('DIR_STORAGE', '/home/shootandedit/public_html/smilzo-beta/storage/');
define('DIR_CATALOG', '/home/shootandedit/public_html/smilzo-beta/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', '127.0.0.1');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

// OpenCart API
 define('OPENCART_SERVER', 'https://www.opencart.com/');