Voir les erreurs PHP lors dev d'un module

Tags:

La base: à admin/config/development/logging "All messages" (assigne $conf['error_level'] = 2;  )

Soit via settings.php soit via php.ini

Via settings.php (site de dev)

<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
//Note:  Do not include the opening and closing PHP tags when you copy this code
?>

 

php.ini

/etc/php5/apache2/php.ini  y rechercher "E_ALL" pour effacer ce qui est en trop. A la fin, on a: error_reporting = E_ALL
 

Source: https://www.drupal.org/node/1056468

Plus à https://www.drupal.org/node/158043