Added php error logging.