Added php error logging (logs to system/logs/