Error while posting long post or editing posts

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Error while posting long post or editing posts

Re: Error while posting long post or editing posts

by axew3 » Sat May 03, 2025 7:32 pm

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.

Re: Error while posting long post or editing posts

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.

Re: Error while posting long post or editing posts

by Ezrael » Fri May 02, 2025 6:38 pm

Unfortunately not.. Whats the job from line 49?

Re: Error while posting long post or editing posts

by axew3 » Thu May 01, 2025 10:32 pm

DO you have understand when it happen?

Re: Error while posting long post or editing posts

by Ezrael » Thu May 01, 2025 8:13 pm

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

by axew3 » Thu May 01, 2025 4:55 pm

mhh.. no i think it happened when an user has been added with some encoding that has not been recognized, but at moment, i have try any conversion without getting any php warning, bu ti will follow with some test. Check please in the while if maybe it happen again.

Top