Luckily the original data from that day is available, so you can see [1] that the actual temperatures recorded in Zaragoza and several other cities nearby were far from that extreme temperature.
Other Spanish newspapers reported the extreme temperature as taken in the sun [2], and also included the temperature in the shade with a more reasonable value.