XF 2.2 A php error can take down your site apparently

The code should be addressed because it needs to be updated. In the meantime to get your site back up you can modify the php error-reporting to ignore "deprecated errors" which means adding this & ~E_DEPRECATED to your error-reporting settings.

In cPanel, you can ignore PHP deprecated errors by modifying the error_reporting setting in your PHP configuration.
Using MultiPHP INI Editor (if available):
  1. Log into cPanel: Access your cPanel account.
  2. Navigate to Software: Find the "Software" section.
  3. Click on Select PHP Version: Click on "Select PHP version".
  4. Switch to PHP Options: Click on the "Switch To PHP Options" link, often located in the top-right corner.
  5. Locate error_reporting: Find the error_reporting setting.
  6. Modify the Value: Select the desired option from the drop-down menu next to error_reporting to exclude deprecated errors.
Alternatively, you can manually edit the php.ini file if you have access:
  1. Locate the php.ini file: If you have direct access to your server, you can find the php.ini file.
  2. Find the error_reporting directive: Look for the line that starts with error_reporting.
  3. Change the Value: Modify the value to exclude deprecated errors. For example, if it's set to E_ALL, change it to error_reporting = E_ALL & ~E_DEPRECATED. This setting reports all errors except deprecated ones.
For PHP-FPM:
  1. Navigate to MultiPHP Manager: Go to "WHM / MultiPHP Manager / User Domains".
  2. Find the domain: Search for the domain that needs adjustment.
  3. Go to PHP-FPM Settings: Click on "PHP-FPM Settings".
  4. Edit Error Reporting: Enter E_ALL & ~E_NOTICE & ~E_DEPRECATED in the "Error Reporting" field.
  5. Save changes: Click "Update" to apply the changes.
 
Back
Top Bottom