Removed PHP warnings and errors.