You should learn to check your own code, a lot of these errors were very simple and easily fixed. Learning how to debug it fully might help. Learn how to use trace to see if functions are being called correctly, and echo at the right places to see what section of the code is messing up.