by axew3 » Fri May 02, 2025 7:16 pm
Check in which language is a phpBB username, before it is added in WordPress.
The compilation fail, so the check fail: the error Warning do not stop the Php execution (because it is not a fatal error and you normally do not see it if not in debug mode), the username text is then assumed to be treated by WP subsequent functions as Latin, and the code flow follow.
Could you please try to substitute the line 49
Code: Select all
if( preg_match( '/['.$ld.']/u', $text) && $c < 1 ) // could return more than one result, if the string is mixed, get only the first match
with this:
Code: Select all
if( preg_match( '/'.$ld.'/u', $text) && $c < 1 ) // could return more than one result, if the string is mixed, get only the first match
into the file
/wp-content/plugins/wp-w3all-phpbb-integration/common/helpers.php
and see if the problem is fixed?
It is for the plugin so to make it someway usable into any language, but normally this part is totally not useful. It is useful only for non latin languages.
Check in which language is a phpBB username, before it is added in WordPress.
The compilation fail, so the check fail: the error Warning do not stop the Php execution (because it is not a fatal error and you normally do not see it if not in debug mode), the username text is then assumed to be treated by WP subsequent functions as Latin, and the code flow follow.
Could you please try to substitute the line 49
[code]if( preg_match( '/['.$ld.']/u', $text) && $c < 1 ) // could return more than one result, if the string is mixed, get only the first match[/code]
with this:
[code]if( preg_match( '/'.$ld.'/u', $text) && $c < 1 ) // could return more than one result, if the string is mixed, get only the first match[/code]
into the file
[i]/wp-content/plugins/wp-w3all-phpbb-integration/common/[b]helpers.php[/b][/i]
and see if the problem is fixed?
It is for the plugin so to make it someway usable into any language, but normally this part is totally not useful. It is useful only for non latin languages.