简体   繁体   English

保存Joomla在保存模板时添加斜杠

[英]Prevent Joomla to add slashes when save a template

I feel so dumb to ask this question... but... When I try to edit (with joomla template manager, joomla 3.0) a template that contain php code, when I save it joomla add slashes and so my php crash and the page is not visible anymore... How can I fix that? 我觉得愚蠢地问这个问题......但是...当我尝试编辑(使用joomla模板管理器,joomla 3.0)一个包含php代码的模板时,当我保存它时joomla添加斜线,所以我的php崩溃和页面不再可见...我该如何解决? Thanks!! 谢谢!!

This solved my problem: 这解决了我的问题:

You are experiencing this issues because you have Magic Quotes GPC turned on for your account or at least for the folder your Joomla 3.0 resides in. As mentioned in the post, it needs to be turned off and this is now a strict requirement for the Joomla application to work properly. 您遇到了这个问题,因为您为您的帐户启用了Magic Quotes GPC,或者至少为您的Joomla 3.0所在的文件夹启用了。如帖子中所述,它需要关闭,现在这是对Joomla的严格要求申请工作正常。 I'd advise you to revert the changes you've made to the core Joomla files and simply disable Magic Quotes GPC. 我建议你恢复你对核心Joomla文件所做的更改,并简单地禁用Magic Quotes GPC。 To do that, you can use the PHP Variables Manager tool in your cPanel( http://kb.siteground.com/article/How_to_change_the_value_of_a_PHP_setting.html ). 为此,您可以在cPanel中使用PHP变量管理器工具( http://kb.siteground.com/article/How_to_change_the_value_of_a_PHP_setting.html )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM