Thanks for reaching out @eliot1988.
Based on the screenshots you provided, these depreciation notices are appearing when using the admin toolbar, meaning they are only visible for admins.
Note also that such depreciate notices are normal and expected, given WordPress support for PHP8 is still in a beta stage. You’ll find out more on this below:
Note also that while depreciation warning may appear to stem from Site Kit, it’s likely that many such notices are coming from how Site Kit interacts with WordPress core. Once WordPress fully supports PHP8* you should no longer encounter these depreciation notices. We do regular testing with PHP8 and all Site Kit functionality should work as expected. If you find anything unusual with regards Site Kit behavior, other than depreciation warnings, let me know and I’d be happy to investigate this further.
thank you very much!
If I do this? there should be no errors as you can see in the image, maybe the errors will go away?
No probelem @eliot1988.
The below is enough to ensure PHP errors are not output on the front end of your site. ini_set('display_errors','Off');
Error displaying is usually disabled by default. From reviewing the screenshot you provided earlier the error may be appearing within a tagDivCSSAnalyzier admin toolbar feature. It’s possible that depreciation notices may appear within this, but you can reach out to tagDiv for support on this.
You can also test visiting your site as non logged in user to ensure you don’t see any PHP errors output.
Let me know if you have any further questions on this.
ok! thank you very much!!
No problem at all. Be sure to reach out if you have any further questions.
