Without looking properly at your code, it is erroring when it tries to download the .torrent file for seeding, which means that one of the parameters needed e.g. body, nfo etc. has not been called properly. Check that the parameters you have in your scars script matches everything in the takeupload.php
PS. thats the reason you are downloading the stdhead and stfoot for your template which is showing in your terminal. I know because I have een there....lol
I don't use ScaRs but I recognise the error