2016-05-12 37 views
0

每當我將一個本地php.ini文件放在我的siteground服務器上並增加max_execution_time magento停止使用下面的錯誤時,我被困在一個非常奇怪的問題上。即使有空的php.ini文件也會產生問題:php.ini和magento衝突

Warning: simplexml_load_string() [function.simplexml-load-string]: 
Entity: line 2: parser error : error parsing attribute name in 
    /home/omitted/public_html/includes/src/__default.php on line 22821 

#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', 
    '/home/omitted/...', 22821, Array) 
#1 /home/omitted/public_html/includes/src/__default.php(22821): 
    simplexml_load_string('loadCache() 
#3 /home/omitted/public_html/includes/src/__default.php(21115): 
    Mage_Core_Model_Config->loadModulesCache() 
#4 /home/omitted/public_html/includes/src/__default.php(21045): 
    Mage_Core_Model_App->_initModules() 
#5 /home/omitted/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array) 
#6 /home/omitted/public_html/index.php(83): Mage::run('', 'store') 
#7 {main} 

搜索了很多,但找不到原因。這個服務器問題或網站有問題嗎?

服務器 -

  • Memcached的啓用
  • HHVM啓用

回答

0

嘗試添加任何默認的php.ini(從新鮮Magento的文件夾,按您的版本)在您的網站的文件夾中的文件。 如果它可以工作,則更改max_execution_time。

+0

即使是空的php.ini文件也會導致錯誤。 – asachanfbd

+0

好的,你嘗試過嗎?正如我建議以上 – Keith

+0

是的,只是沒有任何改變。同樣的錯誤。似乎magento不喜歡php.ini的存在。 – asachanfbd

0

得到解決方案Magento編譯器導致錯誤。只需禁用編譯器,添加php.ini並重新編譯。有效。

+0

MeganX回答了這個問題 - http://magento.stackexchange.com/questions/115130/strange-conflict-in-php-ini-and-magento – asachanfbd

+0

偉大的工作現在。請將您的答案標記爲解決您的問題。謝謝! – codedge

+0

我需要等待2天才能接受我自己的答案。 – asachanfbd