Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Blade~ on June 07, 2022, 02:18:30 PM

Title: Error in Security.php line 924 string conversion
Post by: Blade~ on June 07, 2022, 02:18:30 PM
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
Title: Re: Error in Security.php line 924 string conversion
Post by: Blade~ on June 07, 2022, 02:54:35 PM
These keep increasing, now I have 8 of these same errors in the log, all from Guests.
Title: Re: Error in Security.php line 924 string conversion
Post by: Arantor on June 07, 2022, 02:56:17 PM
Mods installed?
Title: Re: Error in Security.php line 924 string conversion
Post by: Blade~ on June 07, 2022, 03:08:01 PM
Just one so far, Ads Manager 1.3.3
Title: Re: Error in Security.php line 924 string conversion
Post by: Blade~ on June 07, 2022, 03:36:33 PM
Uninstalled it, will monitor it for a while
Title: Re: Error in Security.php line 924 string conversion
Post by: Doug Heffernan on June 07, 2022, 04:20:58 PM
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?
Title: Re: Error in Security.php line 924 string conversion
Post by: Blade~ on June 07, 2022, 04:45:30 PM
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 ...
Title: Re: Error in Security.php line 924 string conversion
Post by: live627 on June 07, 2022, 11:09:05 PM
I'm going to have a patch for this added to SMF 2.1.3.


https://github.com/SimpleMachines/SMF/pull/7499
Title: Re: Error in Security.php line 924 string conversion
Post by: Blade~ on June 08, 2022, 06:00:00 PM
Great, thanks Live627!