Answers.Body: <p>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</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-29T15:25:43.457Z
Answers.Text: Thanks for the info
Answers.UserDisplayName: Jonny Toomey
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-30T19:21:56.863Z
Answers.Text: I have asked a similar question about PHP 8 support here: https://civicrm.stackexchange.com/questions/43038/civicrm-support-for-php-8-1. 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.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-30T12:38:05.873Z
Answers.Text: Turning off debugging does not affect Warnings and Notices. At least not for me.
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-06T17:28:56.710Z
Answers.Text: 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?
Answers.UserDisplayName: Jonny Toomey
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-29T11:08:15.413Z
Answers.LastActivityDate: 2022-11-29T11:08:15.413Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>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?</p>
  <p>These notices being elevated to Warnings in PHP8 is causing a lot of messages to appear in development environments using legacy code</p>
  <p>Cheers
  Jonny</p>
  
Tags: <php8>
Title: Smarty templating and PHP8 warnings
ThreadText: # Smarty templating and PHP8 warnings
  
  (Asked by: username_0 on 2022-11-29)
  
  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
  
  **Tags:** php8
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-29. Score: 0 | Accepted answer
  
  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
  
  > **Comments:**
  > **username_0**: Thanks for the info  
  > **username_2**: I have asked a similar question about PHP 8 support here: https://civicrm.stackexchange.com/questions/43038/civicrm-support-for-php-8-1. 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.  
  > **username_3**: Turning off debugging does not affect Warnings and Notices. At least not for me.  
  > **username_0**: 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?  
  
  ---
  
  