Problem with item spawner and Item granters

I’m currently creating a Zone Wars map. My problem is this: as soon as I place an item spawner or item granter and try to add weapons, they don’t work. Sometimes they only appear briefly in the item spawner and then despawn again. The same thing happens with the item granter. No matter what settings I change, nothing makes a difference.