Corrects PHP warnings and subscription issue outlined by Ben.