Version: 3.5.11 Reporter: Matt Weinberg —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
Hello,
I’m with DevDemon. We use the “search” POST param in AJAX requests in some addons . It looks like Addons.php line 72 assumes “search” will always be a string:
ee()->view->search_value = htmlentities(ee()->input->get_post('search'), ENT_QUOTES, 'UTF-8');
We use it as an array so get “htmlentities() expects parameter 1 to be string, array given” if the server has PHP debugging turned on. I fixed it on a specific copy with:
if (is_string(ee()->input->get_post('search'))) {
ee()->view->search_value = htmlentities(ee()->input->get_post('search'), ENT_QUOTES, 'UTF-8');
}
You might want to consider updating this for future versions. Thanks!
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```