For the onions it was probably a combination of picking the greens and the poor soil. You can grow other varieties to just for greens. Each of those bulbs grows one onion plant so that shouldn’t be an issue. You also could have gotten the wrong type for your area. There are long day onions...