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


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

  • Thanks for the info
    – Jon Toomey
    Nov 29, 2022 at 15:25
  • 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. Nov 30, 2022 at 19:21

Your Answer

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

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