sir the script is ok but addons are giving errorsThat's weird, maybe some addon causing this.
I have it installed without any problem
100 %My forum is running on 2.2.7 with addons that needs to be updated bus have no problems. Just make sure you first look at all the build-in permissions, then check which addons are the most compatible for your forum that helps you with the functionality and gives you some resources to make your forum looks better and so on. Don't install unneccessary addons, as it can cause different errors.
Regarding the submit-stats.json, this has happend while installing Xenforo. When you fill in the Admin details account, you can choose wheter to send automatic stats to Xenforo (This is anonymous btw), but as you are using a nulled version, the link for the server from xenforo to substain the stats is blocked and removed "For your own safety".
XenForo 2.2.7 inadvertently shipped with an implicit minimum requirement of PHP 7.1 due to the way that newer versions of composer attempt to validate your platform is compatible with the included dependencies.
If you're currently running PHP 7.0 you may have been unable to upgrade to or run XenForo 2.2.7. Patch 1 removes this platform check.
Additionally, if you're currently running PHP 7.0 we would strongly urge you to consider upgrading to a newer version as soon as possible...