Upgraded to php PHP Version 5.3.21 on server and fixed bugs that arose