News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

integrate_error_types function call not working

Started by Randem, May 10, 2023, 02:43:00 AM

Previous topic - Next topic

Randem

I have attempted to use this integrated function to no avail until I changed the line in Errors.php in the function log_error

$known_error_types += $other_error_types;
to

$known_error_types = array_merge($known_error_types, $other_error_types);
Are there any examples of this integrated function working?
I am running on PHP 8.1 with SMF 2.1.3
Scams - How to Protect Yourself
Why Professionals Should Not Use Free Email Accounts

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

live627

Quote from: Randem on May 10, 2023, 02:43:00 AMAre there any examples of this integrated function working?
If there were, this issue would have been unearthed already.

Randem

QuoteIf there were, this issue would have been unearthed already.

So are you saying there is an issue with this function because there are no examples or there isn't an issue because there are no examples...?
Scams - How to Protect Yourself
Why Professionals Should Not Use Free Email Accounts

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

Sesquipedalian

This looks like a legitimate bug. Please open a new issue on GitHub about this, @Randem. It would also be good for a moderator to move this topic to the Bug Reports board.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Randem

Scams - How to Protect Yourself
Why Professionals Should Not Use Free Email Accounts

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

Advertisement: