Can I get steps to reproduce? If you view source on that code then I could tell more. It is hard to read without the tags which aren't visible without viewing the source code. You should put it in the private area, since it includes your paypal credentials. I'm updating your original post to move the debug code to the private area for security.