mipmapping enabled without a complete mip-chain

I’m new to OpenGL. And got an error with less information through google.Please see my question in SO: //stackoverflow.com/questions/32800099/mipmapping-enabled-without-a-complete-mip-chain.
How could I solve this? Thanks in advance!

We’d appreciate if you would post the question here, not a link to a third party site. Same request SO makes.