【问题标题】:Failed to open stream when moving magento site from sub directory to root directory将magento站点从子目录移动到根目录时无法打开流
【发布时间】:2014-06-13 00:54:27
【问题描述】:

我刚刚完成了将 Magento 的 urba 实例从 /urba 目录移动到根目录的过程,但它仍在 /urba 目录中查找文件。

我已经更新了 web/unsecure/base_url 和 web/secure/base_url 值,清除了 /var/cache 和 /var/session 仔细检查了 .htaccess RewriteBase,将我所有的文件夹和文件更新到了根文件夹

当我按下保存配置时,magento 的管理面板也会从链接中消失

现在当我打开我的网站链接时

http://urbanunity.co.uk/

它会自动将我重定向到

http://urbanunity.co.uk/downloader/

出现以下错误

Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/content/07/12442607/html/Urba/app/Mage.php on line 50

Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='/home/content/07/12442607/html/Urba/app/code/local:/home/content/07/12442607/html/Urba/app/code/community:/home/content/07/12442607/html/Urba/app/code/core:/home/content/07/12442607/html/Urba/lib:.:/usr/local/php5_4/lib/php') in /home/content/07/12442607/html/Urba/app/Mage.php on line 50

Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/content/07/12442607/html/Urba/app/Mage.php on line 51

Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/content/07/12442607/html/Urba/app/code/local:/home/content/07/12442607/html/Urba/app/code/community:/home/content/07/12442607/html/Urba/app/code/core:/home/content/07/12442607/html/Urba/lib:.:/usr/local/php5_4/lib/php') in /home/content/07/12442607/html/Urba/app/Mage.php on line 51

Fatal error: Class 'Varien_Autoload' not found in /home/content/07/12442607/html/Urba/app/Mage.php on line 54

我已经对 index.php 文件进行了更改

$mageFilename = 'app/Mage.php';

$mageFilename = 'cart/app/Mage.php';

使用magento版本1.8.1.0

【问题讨论】:

    标签: php .htaccess magento-1.8


    【解决方案1】:

    您是否检查过 Magento 文档以移动 Magento 文件夹?

    Magento Doc - Move Magento to Another Directory

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-06
    • 2014-02-23
    • 1970-01-01
    • 2017-07-29
    相关资源
    最近更新 更多