It drove me crazy with the gas cap message thing. Usually it is not the gas cap. Finally found the issue on my 2006 truck and it was the fuel pump module. It was cracked on top.