Can't get PHP to stop showing errors

make sure your editing the right php.ini file as there are two ini files, one for apache and one for CLI.


I came across similar behaviour recently and found out that the php.ini layout is quite confusing: listing of the default values etc. is at the top of the file while description of the setting and the setting itself are way further down. (see php 7 ignores ini files, but claims to load).

  1. It could well be that a later setting overrides yours. Browse or search the ini file for all occurences of "display_errors": grep -n display_errors/etc/php.ini
  2. What is the value of "Loaded Configuration File "?