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

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

TOP Online Store
1.Girls' Generation, a Fantasy Jewelry online Store. Nobody Can Keep Away From the Beauty:tiffany ca 2.China Wholesale Electronics:China Wholesale Electronics 3.The android phone is best:Android sale.The Android Ice cream sandwich well be best Android OS. 4.R4 3DS for sale:R4 ds shops,and support Japanese R4:R4 販売. 5.fashion bag:armani watches and MBT shoes.
R4 V1.4.2 and your R4i Gold 1.4.2 and R4i GOLD 3DS card V1.4.2 can not work on it.
Please update your R4i Gold 1.4.2 and R4i GOLD 3DS card V1.4.2 card with this patch. Please read readme.txt attached firstly.Just do as the procedures listed in readme.