wanna send through an export buddy? Make sure you take a look through it and remove any sensitive information before posting, also either upload it as a file or like use the code tab so it looks a bit nicer
As for not all I can guess for this is that you havnt set up a src-nat for the second gateway, are you able to check that as well and see if you have a masquerade or a static src-nat with the not working wan interface?
Also scripting the fail over is a bit overkill, if you look at the route there is an option called check gateway, in there if you look at this there is an option called ping, if you use this the route will ping the gateway address for that route a 10 second intervals if it is unable to reach the address I think either 2 or 3 times in a row it will mark this route as down and the secondary will become active. Once the main route is ping-able once it will bring that route back up again.