The verses aren't contradictory, even if you make a distinction between Godly and earthly wisdom. They both can be true at the same time.
Godly wisdom brings prosperity for the entire man. Not only are his physical needs addressed, but his spiritual life blessed.
The beginning of wisdom is fear of the Lord.
We live in a world, governed by principals that are the antithesis of God's. Those without a relationship with him, do not grasp or comprehend, the wisdom of God. In fact, they find it absurd.
As a believer, you must deal with this. You'll encounter a dying world in desperate need of the truth of Christ. However, you'll see him being rejected consistently.
So while you're flourishing due to a knowledge, graciously bestowed on you by the spirit of God, you're grieved by those perishing in their blind and hard hearted ignorance.
You're saddened by the mockery made of your Lord.
You're troubled by the adversity and persecution you face.
You see the condition of a fallen world and it sucks.
Yet in all of this you have peace, because you know God as a omnipotent, omniscient, omnipresent being with a personal and fierce love for you. You believe he is love and that love never fails. You know first hand,how real his redemptive power is, and honor him for it.
You rejoice in your hardship and tribulation because you know it produces endurance, perseverance, patience--things that are necessary to continue to love God and reflect his character, amidst a world that does not.
You understand the homeostatic nature of peace, even in the presence of profound grief. You can experience the full spectrum of human emotion, but not be engulfed by negativity. You can be impacted by adverse situations in life, but won't drown in a sense of hopelessness or despair. You know that all things are working together for your good.