最新消息:Excel无乱码转CSV,由于工作原因很少更新博客和回复大家的评论,非常抱歉。

解决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

之前没有遇到过这个情况,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”。

来源:http://www.hellokeykey.com/magento-compilation-get-erro/

转载请注明:嗨酷哥,有你更酷! » 解决Magento运行Compilation出错

与本文相关文章

发表我的评论

取消评论
表情 插代码

Hi,您需要填写昵称和邮箱!

  • 必填项
  • 必填项

网友评论2条  本站回复1

  1. 我开启编译后,网站打不开,然后按照你的方法解决了。但是点击system /Configuration 这个无法打开了。其他的都正常,这个怎么回事?

    走出迷失2016-06-18 18:43 回复
  2. 谢谢,总算解决了这个问题

    走出迷失2016-06-18 18:31 回复
    • 不错,这个主要是别的插件影响的。

      hicoogle2016-11-07 20:49 回复