How to fix errors: XenForo 2 upgrade check failed

How to fix errors: XenForo 2 upgrade check failed

How to fix errors XenForo 2 upgrade check failed.jpg


If you are using Xenforo 2 nulled version you will get this error. XenForo upgrade check failed.

To fix this error, open the file:
src/XF/Repository/UpgradeCheck.php

Find code:
PHP:
public function canCheckForUpgrades(&$error = null)
{
    return true;
}

Replace with:
PHP:
public function canCheckForUpgrades(&$error = null)
{
    return false;
}

Please keep the correct file structure, just change true to false to proceed to the following step:
Open the file:
src/addons/XF/hashes.json

Find line:
Code:
"src/XF/Repository/UpgradeCheck.php": "6a9497c1c1873aeef0b4fb823af81e8df07fad54e693fdba89fe2aa29489734a",
6a9497c1c1873aeef0b4fb823af81e8df07fad54e693fdba89fe2aa29489734a
This code may vary, depending on the version of Xenforo 2.

Replace with:
Code:
"src/XF/Repository/UpgradeCheck.php": "0f971dfbf72a94e12a48e6a9a92da19a7abf2bd8ce1cd2a425347bf92eb48238",

Done.
You can download the pre-edited file below and overwrite the file on your system.


Cách sửa lỗi XenForo 2 upgrade check failed.
 

Attachments

  • UpgradeCheck.zip
    1.9 KB · Views: 0
Last edited:
Top Bottom