Index: t3lib/class.t3lib_page.php =================================================================== --- t3lib/class.t3lib_page.php (revision 8762) +++ t3lib/class.t3lib_page.php (working copy) @@ -1156,7 +1156,11 @@ } } } else { - die ('NO entry in the $TCA-array for the table "'.$table.'". This means that the function enableFields() is called with an invalid table name as argument.'); + throw new InvalidArgumentException( + 'There is no entry in the $TCA array for the table "' . $table . + '". This means that the function enableFields() is ' . + 'called with an invalid table name as argument.' + ); } return $query;