fix wap uploads path, fix php errors