2

Wondering if anyone had any ideas about modifiying the Smarty so that it automatically handles null values being passed in as variables in the templates?

These notices being elevated to Warnings in PHP8 is causing a lot of messages to appear in development environments using legacy code

Cheers Jonny

1 Answer 1

0

There has been ongoing work on this and the team working hard to have it fixed ASAP. If you turn off the debugging on the site it should not display the warnings on the screen though

4
  • Thanks for the info Commented Nov 29, 2022 at 15:25
  • 1
    I have asked a similar question about PHP 8 support here: civicrm.stackexchange.com/questions/43038/…. It has information as to how I managed to suppress the warning and deprecated message that CiviCRM was throwing up under PHP 8.1. I hope that is helpful. Commented Nov 30, 2022 at 19:21
  • Turning off debugging does not affect Warnings and Notices. At least not for me. Commented Aug 30, 2023 at 12:38
  • Do you know what the strategy is for fixing the warnings in CiviCRM - is it a case of null coalescing all variables which might be null or is there something more low level that can or is being worked on? Commented Feb 6 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.