检查你有这样的:
<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