Page 3 of 3

Re: Error while posting long post or editing posts

Posted: Thu May 01, 2025 8:13 pm
by Ezrael
Yes its an ongoing issue:

Code: Select all

01.05.2025 01:04:06 surferparadise.de [client 79.132.120.0] PHP Warning:  preg_match(): Compilation failed: unknown property name after \\P or \\p at offset 10 in /mnt/web119/d2/43/511704043/htdocs/Webspacewp-content/plugins/wp-w3all-phpbb-integration/common/helpers.php on line 49
01.05.2025 01:04:08 surferparadise.de [client 79.132.120.0] 7 messages repeated
01.05.2025 01:04:08 surferparadise.de [client 79.132.120.0] PHP Warning:  preg_match(): Compilation failed: unknown property name after \\P or \\p at offset 10 in /mnt/web119/d2/43/511704043/htdocs/Webspacewp-content/plugins/wp-w3all-phpbb-integration/common/helpers.php on line 49
01.05.2025 01:04:08 surferparadise.de [client 79.132.120.0] PHP Warning:  preg_match(): Compilation failed: unknown property name after \\P or \\p at offset 10 in /mnt/web119/d2/43/511704043/htdocs/Webspacewp-content/plugins/wp-w3all-phpbb-integration/common/helpers.php on line 49
01.05.2025 01:21:24 surferparadise.de [client 79.132.120.0] PHP Warning:  preg_match(): Compilation failed: unknown property name after \\P or \\p at offset 10 in /mnt/web119/d2/43/511704043/htdocs/Webspacewp-content/plugins/wp-w3all-phpbb-integration/common/helpers.php on line 49

Re: Error while posting long post or editing posts

Posted: Thu May 01, 2025 10:32 pm
by axew3
DO you have understand when it happen?

Re: Error while posting long post or editing posts

Posted: Fri May 02, 2025 6:38 pm
by Ezrael
Unfortunately not.. Whats the job from line 49?

Re: Error while posting long post or editing posts

Posted: Fri May 02, 2025 7:16 pm
by axew3
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.

Re: Error while posting long post or editing posts

Posted: Sat May 03, 2025 7:32 pm
by axew3
I finally remembered why your problem come out (preg_match compilation fail).
It is maybe due to the fact that you are using a PHP version 5.6.40 < ?
Into which Php version you are on?
The code tested into any php 5.6.40 > should work fine.

While for sure, your "long post" problem which i still did not understand where you get it, if in phpBB or WP, is a problem coming from your server configuration. The integration code cannot interfere with a post process in WP or phpBB.