檢查你有這樣的:
<protected_extensions>
<!-- PHP script file extension -->
<php>php</php>
<!-- File extension of configuration of an Apache Web server -->
<htaccess>htaccess</htaccess>
<!-- Java script file extension -->
<jsp>jsp</jsp>
<!-- Perl script file extension -->
<pl>pl</pl>
<!-- Python script file extension -->
<py>py</py>
<!-- Active Server Page script file extension -->
<asp>asp</asp>
<!-- UNIX command prompt file extension -->
<sh>sh</sh>
<!-- Common Gateway Interface script extension type -->
<cgi>cgi</cgi>
<!-- BOF HTML file extensions -->
<htm>htm</htm>
<html>html</html>
<phtml>phtml</phtml>
<shtml>shtml</shtml>
<!-- EOF HTML file extensions -->
</protected_extensions>
在
app\code\Core\Magento\Core\etc\config.xml
(377-400線在Magento 1.7.0.1)
。
如果沒有,您編輯了一個核心文件,這不是一個好主意。如果它在那裏,檢查你的db,core_config_table,path ='general/file/protected_extensions'。應該沒有什麼。
最後,檢查其他模塊(社區和地方)的config.xml中是否有這個參數設置爲默認值,像塊:
<config>
....
<default>
....
<general>
<file>
<protected_extensions>
....
</protected_extensions>
</file>
</general>
</default>
....
</config>
感謝OSdave快速回復所有的鍵,我試過的所有3你的建議,一切都如預期,但仍然相同 – Hiren 2014-10-08 12:17:15