It seems that you guys have messed up when adding lines. I did a quick test with greek pikemen;
- I first edited out the the long_pike attribute. The game ran fine and I saw pikemen using their secondary weapons automatically and when alt-clicking.
- I then edited out the phalanx formation and again the game ran fine.
Since so many experienced modders have problems with it (
), my advise is to just copy everything related to greek pikemen and then edit out the long_pike and phalanx values. You then have an unit with spears and a sword as secondary weapon.
Or am I making a fool out of myself and overlooking something? 
Red Harvest
You forgot the spear attribute in primary weapon attributes.
My greek pikemen attributes were:
formation 1, 1, 2, 2, 8, square
stat_health 1, 0
stat_pri 8, 6, no, 0, 0, melee, blade, piercing, spear, 25 ,1
stat_pri_attr spear
stat_sec 5, 2, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr no
Bookmarks