fix 500 error actions.php