Stop warning and notices from being logged twice into php error log file