Last modified: 2014-10-20 19:02:16 UTC
Warning: mb_strpos() expects parameter 3 to be long, string given in /srv/web/extensions-mainwiki-git/ParserFunctions/ParserFunctions_body.php on line 603 Tis message occurs in https://wiki.piratenpartei.de/Benutzer:Stimmbürger both in page view and previews but strangely not when you select a page version. The most recent version of the page is of 02:33, 14. Jan 2014 Installed ParserFunctions Ver. 1.6.0 (a07a84f) of 21:49, 1. Apr 2014
There is another instance of this bug at http://wiki.piratenpartei.de/Benutzer:CaptCarrot
An easy way to reproduce this issue was found by Allan Wegan, simply add the following to a wiki page: {{#pos:haystack|needle|}} Removing the last | symbol makes the warning go away. This issue could be fixed by replacing the line in ParserFunctions_body.php with: $pos = mb_strpos( $inStr, $inNeedle, intval( $inOffset ) ); In current version 1.6.0 it's in line 603. I could also reproduce this issue with current master (0b96cba), here the problem is in line 627.