【问题标题】:How to set the config in OpenCart?如何在 OpenCart 中设置配置?
【发布时间】:2012-06-07 06:39:33
【问题描述】:

警告:require_once(/sgweb1/minufashion/system/startup.php) [function.require-once]:无法打开流:没有这样的文件或 目录在 D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index.php 上线 15

致命错误:require_once() [function.require]:打开失败 需要'/sgweb1/minufashion/system/startup.php' (include_path='.;./includes;./pear') 在 D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index.php 上线 15

我正在托管到服务器然后显示错误。

【问题讨论】:

  • 你找到解决这个问题的方法了吗?

标签: php mysql opencart


【解决方案1】:

注意路径差异:

sgwebgene.com\httpdocs\minufashion\index.php

/sgweb1/minufashion/system/startup.php

您在部署 opencart 后是否更改了文件夹?

config.php 中有这样的行:

define('DIR_APPLICATION', '/home/xxxx/public_html/shop/catalog/');
define('DIR_SYSTEM', '/home/xxxx/public_html/shop/system/');
define('DIR_DATABASE', '/home/xxxx/public_html/shop/system/database/');
define('DIR_LANGUAGE', '/home/xxxx/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', '/home/xxxx/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', '/home/xxxx/public_html/shop/system/config/');
define('DIR_IMAGE', '/home/xxxx/public_html/shop/image/');
define('DIR_CACHE', '/home/xxxx/public_html/shop/system/cache/');
define('DIR_DOWNLOAD', '/home/xxxx/public_html/shop/download/');
define('DIR_LOGS', '/home/xxxx/public_html/shop/system/logs/');

确保这些适合您的设置

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-17
    • 1970-01-01
    • 2023-03-20
    • 2018-01-24
    • 2020-08-07
    • 2013-10-14
    • 2018-10-24
    相关资源
    最近更新 更多