XF 2.1 Duplicate entry for key media_hash

AndyB

Well-known member
I'm seeing a server error log about once a day for Media Gallery.

["url"] => string(17) "/media/save-media"

Running latest version of XenForo Media Gallery 2.1.8.

Code:
     XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '3f59879914b8511614989bd2aa3d6aa2' for key 'media_hash' src/XF/Db/AbstractStatement.php:228

What could be causing this issue? This is the only server error I see on this forum.

Thank you.
 
We'd likely need to see a full stack trace to provide any more guidance, but given that we haven't had any other reports, you might need to see if you can reproduce the issue without any add-ons other than XFMG itself. This would seem to imply that the same media item is being inserted multiple times.
 
Back
Top Bottom