Error while posting long post or editing posts

User avatar
Ezrael
w3 User
w3 User
Posts: 122
Joined: Wed Nov 15, 2023 9:11 pm
Contact:

Re: Error while posting long post or editing posts

Post 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
User avatar
axew3
w3all User
w3all User
Posts: 3020
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Error while posting long post or editing posts

Post by axew3 »

DO you have understand when it happen?
User avatar
Ezrael
w3 User
w3 User
Posts: 122
Joined: Wed Nov 15, 2023 9:11 pm
Contact:

Re: Error while posting long post or editing posts

Post by Ezrael »

Unfortunately not.. Whats the job from line 49?
User avatar
axew3
w3all User
w3all User
Posts: 3020
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Error while posting long post or editing posts

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 3020
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Error while posting long post or editing posts

Post 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.
Post Reply