Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: digger on March 04, 2018, 01:51:50 PM

Title: [2.0] Error if a member have pm labels with high ids (>60)
Post by: digger on March 04, 2018, 01:51:50 PM
If a member have pm labels with id>60 and try to assign that label to any message it shows labels_too_many error.

There is a code in PersonalMessage.php file

// Check that this string isn't going to be too large for the database.
if ($set > 60)
$updateErrors++;

I think, here should be something like this


// Check that this string isn't going to be too large for the database.
if ($smcFunc['strlen']($set) > 60)
$updateErrors++;
Title: Re: [2.0] Error if a member have pm labels with high ids (>60)
Post by: digger on December 12, 2018, 09:39:46 AM
Is it fixed in 2.0.16?
Title: Re: [2.0] Error if a member have pm labels with high ids (>60)
Post by: Arantor on December 12, 2018, 09:50:42 AM
Doubtful. It was a fairly large rewrite to fix in 2.1.
Title: Re: [2.0] Error if a member have pm labels with high ids (>60)
Post by: live627 on December 12, 2018, 05:52:05 PM
I'm testing this fix now.
Title: Re: [2.0] Error if a member have pm labels with high ids (>60)
Post by: shawnb61 on November 08, 2019, 12:46:08 AM
Fix coming in 2.0.16.
Title: Re: [2.0] Error if a member have pm labels with high ids (>60)
Post by: shawnb61 on December 28, 2019, 02:48:56 PM
Fixed in 2.0.16.