Resolve a series of issues that were creating PHP notices in the log.