The best way for me to debug a page that isn't working is to go to the page with a URL to see the error and then I can open the actual php page since you gave me FTP access and tell you what is going wrong.
How can I view the error online? Please create a location where I can reproduce the issue and I'll help you debug what is going on.