# Akismet installation error

**URL:** <https://forum.modmore.com/t/akismet-installation-error/2566>\
**Category:** Open Source\
**Created:** [August 9, 2024, 8:34am UTC](https://forum.modmore.com/t/akismet-installation-error/2566 "2024-08-09T08:34:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruth.l.edmondson](https://forum.modmore.com/letter_avatar_proxy/v4/letter/r/edb3f5/32.png) [@ruth.l.edmondson](https://forum.modmore.com/u/ruth.l.edmondson)\
**Post date:** [August 9, 2024, 8:34am UTC](https://forum.modmore.com/t/akismet-installation-error/2566/1 "2024-08-09T08:34:33Z")

</div>

I got the following errors when installing the Akismet extra:

Error adding field AkismetForm-\>honeypot\_field\_name: Array ( [0] =\> 42S21 [1] =\> 1060 [2] =\> Duplicate column name ‘honeypot\_field\_name’ )  
Error adding index honeypot\_field\_name to AkismetForm: Array ( [0] =\> 42000 [1] =\> 1061 [2] =\> Duplicate key name ‘honeypot\_field\_name’ )  
Error adding field AkismetForm-\>honeypot\_field\_value: Array ( [0] =\> 42S21 [1] =\> 1060 [2] =\> Duplicate column name ‘honeypot\_field\_value’ )  
Error adding index honeypot\_field\_value to AkismetForm: Array ( [0] =\> 42000 [1] =\> 1061 [2] =\> Duplicate key name ‘honeypot\_field\_value’ )

It seems to be working OK, but I get a php warning: Undefined array key “akismetHoneypotField”

ModX: 3.0.4, php: 8.1.29, mysql: 10.6.18-MariaDB

Has anyone else had this problem? I’d be very grateful for any help.

Thanks

Ruth

---

<div class="post-metadata">

**Author:** ![digitalpenguin](https://forum.modmore.com/user_avatar/forum.modmore.com/digitalpenguin/32/105_2.png) [@digitalpenguin](https://forum.modmore.com/u/digitalpenguin)\
**Post date:** [August 9, 2024, 8:58am UTC](https://forum.modmore.com/t/akismet-installation-error/2566/2 "2024-08-09T08:58:03Z")

</div>

Hi @ruth.l.edmondson

That shouldn’t cause any issues. 👍

The reason it’s happening is because the fields mentioned were changed/added after the initial release, so there’s some extra code to make sure those columns get added if a user doesn’t have them.  
It looks like we need to add some checks to only run that if they don’t already exist. I’ll add an issue to the repo about this.

The undefined `akismetHoneypotField` warning can be ignored too. Does the warning include a line number where that’s occurring?

Cheers!

---

<div class="post-metadata">

**Author:** ![ruth.l.edmondson](https://forum.modmore.com/letter_avatar_proxy/v4/letter/r/edb3f5/32.png) [@ruth.l.edmondson](https://forum.modmore.com/u/ruth.l.edmondson)\
**Post date:** [August 9, 2024, 11:57am UTC](https://forum.modmore.com/t/akismet-installation-error/2566/3 "2024-08-09T11:57:39Z")

</div>

Hi

Thanks for your reassurance. The line numbers are 83 and 170.

Thanks
