Core: PHP error now returns JSON format (REVERTED)