Error in Security.php line 924 string conversion

Started by Blade~, June 07, 2022, 02:18:30 PM

Previous topic - Next topic

Blade~

Getting a couple of these same errors: '8:Array to string conversion' in Security.php at line 924. URLs causing the error: ../index.php?action=profile;u=845;area=showposts;sa=messages, also: ../index.php?action=profile;area=showposts;sa=attach;u=845;sort=filename . Errors are from two Guests with different IPs, looks like trying to check profile of members.

Backtrace info:
#0: smf_error_handler()
Called from unknown on line -1
#1: array_intersect()
Called from ../Security.php on line 924
#2: allowedTo()
Called from ../Sources/Subs-Menu.php on line 105
#3: createMenu()
Called from ../Sources/Profile.php on line 535
#4: ModifyProfile()
Called from ../index.php on line 191
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.2
PHP version: 7.3.33

Blade~

These keep increasing, now I have 8 of these same errors in the log, all from Guests.
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.2
PHP version: 7.3.33

Arantor


Blade~

'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.2
PHP version: 7.3.33

Blade~

'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.2
PHP version: 7.3.33

Doug Heffernan

Quote from: Blade~ on June 07, 2022, 02:18:30 PMGetting a couple of these same errors: '8:Array to string conversion' in Security.php at line 924. URLs causing the error: ../index.php?action=profile;u=845;area=showposts;sa=messages, also: ../index.php?action=profile;area=showposts;sa=attach;u=845;sort=filename . Errors are from two Guests with different IPs, looks like trying to check profile of members.

What was the latest change that you did to you forum prior to these errors happening?

Blade~

Just did the update from 2.1 RC4 to 2.1.2. Actually I think this error also existed a while ago in RC4 but somebody suggested a temporary patch that only suppressed the error but the 2.1.2 install removed it. This time I don't want to just patch it but fix it the right way. I uninstalled Ads Manager and so far no errors for  over an hour now. We'll see ...
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.2
PHP version: 7.3.33

live627


Blade~

'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.2
PHP version: 7.3.33

Advertisement: