如何修复这个问题,当我点击结果链接modx ajaxSearch? [英] How to repair this issue when i click on result link in modx ajaxSearch?

查看:158
本文介绍了如何修复这个问题,当我点击结果链接modx ajaxSearch?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个网站上使用ajaxSearch: http://www.rhemapress.pl/www_poradnia/ ,当我输入内容时,例如: czwarta wspomaganie 然后当我点击其中一个返回链接,然后它重定向到这个文档,但在这个链接的结尾是这样的:
& searching = wspomaganie& advsearch = oneword& highlight = ajaxSearch_highlight + ajaxSearch_highlight1 ,我在点击后遇到此错误。

I used ajaxSearch on this site: http://www.rhemapress.pl/www_poradnia/ and when I type something, e.g: czwarta or wspomaganie then when i clicked on one of return links then it redirect me to this document but on end of this link is something like this: &searched=wspomaganie&advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1 and i've got this error after I clicked.

  MODx encountered the following error while attempting to parse the requested resource:
  htmlentities() [function.htmlentities]: charset `ISO-8859-2' not supported, assuming iso-8859-1
  /home/users/rhemapress/public_html/rhemapress/www_poradnia/manager/includes/document.parser.class.inc.php(790) : eval()'d code    

问题在哪里?我怎么能这样做正确?数据库是UTF8。

Where is the problem? How can i do this correctly? Database is UTF8.

推荐答案

我认为你需要替换字符集类似于他们在这里做的:

I think you need to replace the character set similar to how they do it here:

http://forums.modx.com/ index.php?topic = 17161.0

查找与此类似的实例,特别是etomite_charset:

Find instances similar to this, specifically the "etomite_charset":


 htmlentities($output,ENT_QUOTES,$modx->config['etomite_charset']);

替换为类似以下的内容:

Replace with something similar to this:


 htmlentities($output, ENT_QUOTES);

然而,我不知道这将出现在ajax搜索插件的所有实例。

However I don't know all the instance of where this would appear in the ajax search plugin.

这篇关于如何修复这个问题,当我点击结果链接modx ajaxSearch?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆