Drupal 7 is not yet full compatible with PHP 8.2. [META] Make Drupal 7 core compatible with PHP 8.2, a meta issue created to follow that change, is not yet closed as fixed, although many of its child issues (the ones created for effectively changing the Drupal 7 code) are already closed as fixed.
Fixing the compatibility with PHP 8.2 on Drupal core could require some time. In some cases, the issue is on a contributed project, and they need to verify if the issue is caused by Drupal core (and fix Drupal core) or by a contributed project (and in this case, the time necessary to fix the issue depends from that project's maintainers, not from Drupal core maintainers).
PHP requirements for Drupal 7 shows that PHP 8.2 is supported starting from Drupal 7.94. Drupal 7.73 does not support PHP 8, but Drupal 7.4.
PHP version |
Supported by Drupal |
Recommended for Drupal 7? |
7.4 |
Yes, as of Drupal 7.71 |
No |
8.0 |
Yes, as of Drupal 7.79 |
Yes |
8.1 |
Yes, as of Drupal 7.92 |
Yes |
8.2 |
Yes, as of Drupal 7.94 |
Yes |
8.3 |
No |
No |
That is still what Drupal core supports. What supported by contributed project varies from project to project.
How can I fix these errors?
Assuming those errors are caused by Drupal core code, you just need to wait PHP 8.1 is fully supported by Drupal core. If those errors are caused by contributed modules, you need to wait those modules fully support PHP 8.1.