array instead of string in formatting.php
|Reported by:||jeje68630||Owned by:|
|Severity:||normal||Keywords:||formatting.php, strip_tags, sanitize_title|
I stumbled on a problem. It seems to rise only with a specific theme. However, I'm not sure why it produced that result.
This problem appeared when I changed of web hosting.
So I had a warning that told me that in formatting.php line 794 an array was passed to strip_tags instead of a string.
It happened only when displaying a single post.
Besides, the website layout was kind of mixed in the botton of the page, just as if the css was going crazy.
I debugged the thing and trace the variable.
On line 794, it's the sanitize_title function. The error was raised probably because of my permalinks that was set like that : %category%/%title%
So I forced the $title to be a string. And it seems to work.
Line 794 : strip_tags((string)$title));