Both CO2 concentrations and the global temperature varied significantly over that period of Earth's history (~400-250 millions of years ago). Around 300 Mya, CO2 was comparable to what it is today and temperatures were likewise comparable. Around 400 Mya, CO2 was in the 4000ppm's and the temperature was likewise higher (by ~ 8 C). No contradiction.
Also, when discussing matters scientific, please cite your scientific sources --- otherwise the discussion is of little value. Like so: