-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ian Smith wrote:
I've already got PHP errors on (we have no security worries).
What I reported was that preg_replace_callback() is returning an empty string (or null? Haven't had time to get much detail yet) when passed an input string with possibly invalid UTF characters. This happens when it is asked to do a replacement in UTF mode, even when it doesn't find any matches. A consequence of this in MW is that the parser converts the stored version of an article to an empty string.
So, the wiki interface *is* displayed, but the *article text* displays as empty? That's different from what people usually report as "blank pages" or "empty pages", which is when PHP sends no output because a fatal error occured and error display was not enabled.
Can you do a couple things?
1) Ensure that the error reporting level is set to E_ALL, *including* E_NOTICE and E_WARNING. You don't want to miss such messages when debugging.
2) Save the string which fails to a file and provide it.
3) Exact version of PHP, platform, etc?
4) Details of whether mb_string and iconv modules are available in your PHP
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)