Fixed PHP issues, app now fully functional.