[RSS Feed/News] XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
About once or twice a day on a very active forum I see this:

XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry

The stack trace shows:

src/addons/XFMG/Pub/Controller/Media.php(878): XFMG\Service\Media\Creator->save()

I suspect this is a race condition as it only occurs when a large number of files are being attached.

The code at 878 is:

1611496865223.png

Perhaps the best solution to this issue is to wrap the save in...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom