There was this idea going around that solar power would cause global warming, since a solar panel is typically warmer than whatever was there before it was installed. But the idea turns out to be bullshit, the warming effect is tiny compared to what the equivalent co2 from fossil fuels would cause.
The lesson is: Always. Do. The. Math. First.