GPS and SD card problem

I've tried but failed again, which makes me wonder if it's possible that some problems happened when software serial and hardware serial transfer at the same time?
Cause since I've change the code to the one with only GPS', it's just be fine.
The value of

    Serial.println(location1); 
    Serial.println(location2); 

are all 0, but the value of

    Serial.print("Latitude: ");
    Serial.println(gps.location.lat(), 6);
    Serial.print("Longitude: ");
    Serial.println(gps.location.lng(), 6);
    Serial.print("Altitude: ");
    Serial.println(gps.altitude.meters());

are 24.345135 and 120.354315.

And the SD card didn't save anything at all, why?

Thanks for your reply!!