Magento运行Compilation出错

Magento Compilation

Magento Compilation

今天设置Magento的后台的 run Compilation process 一下子网站就挂了,报警信息如下。Compilation的位置在Magento后台System->Tools->Compilation,如上图。Compilation主要是用来加速magento运行,具体内容请大家google“Magento Compilation”

Strict Standards: include_once() [function.include-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 36

Warning: include_once(Mage_Core_functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 36

Strict Standards: include_once() [function.include-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 36

Warning: include_once() [function.include]: Failed opening 'Mage_Core_functions.php' for inclusion (include_path='/home/magentok/domains/magentokey.com/public_html/includes/src:.:/usr/local/lib/php') in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 36

Strict Standards: include_once() [function.include-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 37

Warning: include_once(Varien_Autoload.php) [function.include-once]: failed to open stream: No such file or directory in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 37

Strict Standards: include_once() [function.include-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 37

Warning: include_once() [function.include]: Failed opening 'Varien_Autoload.php' for inclusion (include_path='/home/magentok/domains/magentokey.com/public_html/includes/src:.:/usr/local/lib/php') in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 37

Strict Standards: main() [function.main]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 53

Fatal error: Class 'Varien_Autoload' not found in /home/magentok/domains/magentokey.com/public_html/app/Mage.php on line 53

之前没有遇到过这个情况,google了一下,也没有找到可行的解决办法,于是留言给simplehelix.com的技术支持,让他们帮我看下,一会儿工夫他们就给解决了,客服留言如下:

Hello,

I have fixed the error and the site is now back up. I added a line to your .htaccess for the timezone error. For the remaining errors I did this:

I located this file - /includes/config.php

I then swapped out this:

define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

For this:

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

Also per a forum post, it was suggested to - "don’t use the ‘enable’ button first, please use the ‘Run compilation process’ button first and then use the ‘enable’ button". I am hoping that will help.

Please let us know if you need any further assistance.

Thank you,

从客服的留言我们知道他给修改了两处设置,所以大家遇到同样的报警信息可以像客服说的进行修改。客服没有提到的就是网站挂了,大家要在修改后,手动清空缓存文件,再运行。

客服也提到,当我们开启Magento Compilation的时候,记得是先点击‘Run compilation process’ 按钮,然后再点击“enable”。

 

转载标明出处:www.hellokeykey.com

转载于:https://my.oschina.net/subone/blog/702728

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值