I'm using Joomla 3.9 with APACHE + PHP 7.0 with these settings

php_flag[display_errors] = On
php_flag[display_startup_errors] = On
php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
php_flag[html_errors] = On
php_admin_flag[ignore_repeated_errors] = Off
php_flag[log_errors] = On
php_admin_flag[log_errors] = On
php_value[log_errors_max_len] = 1024

When Joomla error_reporting is set to development, errors are shown on the site and also logged in the error log file. When error_reporting is set to default it should still do the same since according to the documentation"

“System Default” leaves the level of PHP error reporting to that set up in the server (usually in the php.ini file).

However nothing is shown OR logged. If I create a test.php on the root of site (so that it bypasses the Joomla core) with an error -- that error is logged so the PHP settings are working correctly.

Is Joomla doing something else or could this be a bug?

  • 1
    FYI, PHP7.1 and below are no longer supported. You should bring your php version up to at least 7.2. I have no idea if this will solve your issue, but this needs to be on your TODO list either way.
    – mickmackusa
    Jul 23, 2020 at 14:54
  • The upgrade is exactly why I need the log -- to see why sites don't open with 7.4 but anyway this also happened when I tried with 7.4 so the PHP version shouldn't be the reason. Jul 23, 2020 at 15:43
  • Joomla is checking the PHP ini file settings on displaying error messages with this line: if (ini_get('display_errors')) {…}; . Thus most probably if you set error display in a .htaccess file, it is going to be ignored by Joomla. So the php.ini file should be modified for getting what you need, or with creating a custom php.ini file.
    – Zollie
    Jul 23, 2020 at 19:32
  • I’m not sure that it has anything to do with PHP error logging though.
    – Zollie
    Jul 24, 2020 at 7:03
  • these values are set in PHP FPM configuration Jul 24, 2020 at 9:57


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.