fixing php urgent errors