Faithful, you didn't address my main point. I'll repeat it below:
If you want to claim that the Solomon who wrote Ecclesiastes, and who apparently didn’t accept the notion of an afterlife, had already lost his God-given wisdom and understanding, and was the Solomon who had turned toward Ashtoreth and Molech, you’ll have to explain why there is not a single reference to any god besides the god of Genesis creation, “elohiym,” anywhere in Ecclesiastes. There are forty references to “elohiym,” and not one to false gods.
The absence in Ecclesiastes of any hint that Solomon had turned toward Ashtoreth and Molech, and the repeated reference to only the “true” god of creation, elohiym, is consistent with Solomon still having the near infinite-wisdom and understanding God--according to the 1 Kings 4:29-30 author--had given him.
Faithful, why do you persist in believing that the Solomon who had written Ecclesiastes was the same Solomon who had turned to other gods, even though there's zero reference to such gods in his writings, while forty times he refers to the god of Genesis creation, elohiym, the same god which gave him wisdom and understanding that was measureless?
How do you explain the utter lack of reference to the gods he turned to in later life, and his exclusive reference only to elohiym, if it's true as you claim that Solomon had already begun to follow Astoreth and Molech when he was writing Ecclesiastes?
Joseph F. Alward
"Skeptical Views of Christianity and the Bible"