How to repair this issue when i click on result link in modx ajaxSearch?

六月ゝ 毕业季﹏ 提交于 2019-12-11 15:12:35

问题


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    

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


回答1:


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

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);

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



来源:https://stackoverflow.com/questions/14840969/how-to-repair-this-issue-when-i-click-on-result-link-in-modx-ajaxsearch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!