opencart迁移问题

7xzttuei  于 2021-06-21  发布在  Mysql
关注(0)|答案(1)|浏览(477)

我已将我的opencart网站迁移到路径http://shootandedit.site/smilzo-beta/ ,但当我访问链接时,它会显示一个空白页。我已经联系了123注册支持团队,但他们说编码问题超出了支持范围。我配置了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/
0md85ypi

0md85ypi1#

试试这个密码[编辑1]此外,我已经从链接中删除了.site,但服务器链接除外[编辑2]更改了两个文件中的存储链接
配置.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/');

相关问题