Recent Topics

1 Aug 28, 2019 00:01    

Hello,

I have error with PHP 7.3 preg_match()

  • 6.11.3-stable sortie le 20.08.19
  • PHP version 7.3.8
  • Version MySQL 5.6.45

[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300
[27-Aug-2019 23:48:06 Europe/Paris] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 119 in /www/.../inc/_ext/_url_rel2abs.php on line 300

2 Aug 29, 2019 00:02

Hello,

The following frequent issues seem to apply to your support request: (This is a semi-automated response):

  • Missing URL to reproduce the problem.
  • Does this appear on all pages, including the home page and including the back-office?
  • It would be nice if you would put the version in the correct fields when submitting a bug report.

3 Aug 29, 2019 00:16

I have a log file that is about 1GB per day at the root of the website that contains this error and it uses 80% of the CPU. If the websites are closed, there are no more errors in the logs.

There is no message in the interface of the b2 website, so it will not be possible for me to provide screenshots that I don't know where to look.

5 Sep 13, 2019 02:36

I had this same error using the Facebook widget. This fix solved the problem. I posted my report in the wrong location and later found this solution.

Thanks

6 Jun 20, 2021 15:08

Hi @wrc will look at this later today ~ this evening maybe. UK time

7 Jun 20, 2021 21:49

Hi Looking at this

mb_strrpos(
    string $haystack,
    string $needle,
    int $offset = 0,
    string|null $encoding = null
)

https://www.php.net/mb-strrpos


/inc/_ext/_url_rel2abs.php on line 157

Try editing line 157 from
(mb_strlen($path)-1) == mb_strrpos( $path, '/', 'UTF-8' ) )

to
(mb_strlen($path)-1) == mb_strrpos( $path, '/', $offset = 0, 'UTF-8' ) )

I've made the changes to one of my 7.2.3 collections with no down side, yet :) but I don't use Facebook so can't test.

8 Jun 21, 2021 01:07

Thanks for the prompt, I'm not looking at code for quite a long time, though I think this issue is not the same as the topic ??

This post has 3 feedbacks awaiting moderation...


Form is loading...