Thanks for the response.
I have checked the respective files. class was not defined in the file but I also couldn’t find anywhere the wp version is mentioned in that file. Could you help me find where it would have mentioned to tell you that?
As said earlier, it resolves even with the 6.2.2 version by manually updating the wp-admin and wp-includes, other wp core files.
The link you shared people are still on wondering where the error trigger and to sort it out i am afraid it happens to all my websites also. If you need any specific setup details, please specify it to share with you. i am in shared hosting, wp – 6.3, PHP 8.1,