0

There seems to be times (not all the time) when the below code gets run and it overrides any error_reporting settings you have and so it hides warnings and such. I don't really understand the comment and why it needs to do this. This also overrides drupal's admin setting where you set it to show all messages. It also prevents cv scripts from showing warnings for example.

https://github.com/civicrm/civicrm-core/blob/5.18.4/CRM/Utils/System/Drupal.php#L496-L499

    // explicitly setting error reporting, since we cannot handle drupal related notices
    // @todo 1 = E_ERROR, but more to the point setting error reporting deep in code
    // causes grief with debugging scripts
    error_reporting(1);

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.