简体   繁体   English

无法在Joomla 3.0 Magic Quotes问题中保存文章

[英]Cannot save article in Joomla 3.0 Magic Quotes issue

I am unable to save any article / module etc in Joomla 3.0. 我无法在Joomla 3.0中保存任何文章/模块等。 When I try to save the " " is replaced by "\\"\\"" 当我尝试保存时, " "被替换为"\\"\\"" . This messes up all my code. 这弄乱了我所有的代码。 I tried turning off the magic_quotes_gpc in php.ini but that did not help. 我试图关闭php.ini中的magic_quotes_gpc ,但这没有帮助。

How do I fix this? 我该如何解决?

I presume you did the Joomla! 我想你做了Joomla! 3 installation by adding the .htaccess with magic_quotes_gpc = off inside the install directory, to successfully install the platform, correct? 3安装通过在安装目录中添加带有magic_quotes_gpc = off的.htaccess来成功安装平台,对吗?

If your server is running php 5.3+ you need to set the server php configuration to magic_quotes_gpc = off. 如果您的服务器运行php 5.3+,则需要将服务器php配置设置为magic_quotes_gpc = off。 It should be configured as so since magic_quotes_gpc is deprecated in php 5.3 and will be removed in 5.4. 由于magic_quotes_gpc在php 5.3中已弃用,并且在5.4中将被删除,因此应进行配置。

In summary, you can only overcome this issue by configuring the php on the server. 总之,您只能通过在服务器上配置php来解决此问题。 No .htaccess will solve your problem, unless you place an .htaccess inside each and every directory on your Joomla! 没有.htaccess可以解决您的问题,除非您将.htaccess放在Joomla的每个目录中! installation - which is unthinkable imo. 安装-不可思议的imo。

fixing the issue where adding \\" 解决了添加\\"的问题 during article posts in administrator panel: 在管理员面板中的文章发布期间:

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

Disable these options from your php.ini file. 从您的php.ini文件中禁用这些选项。

You can also overwrite the php.ini. 您也可以覆盖php.ini。

Please check the link for overwriting the php.ini using .htaccess 请检查链接以使用.htaccess覆盖php.ini

How to turn off magic quotes on shared hosting? 如何在共享主机上关闭魔术引号?

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

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