PHP warnings regarding user change resolved