# Updating Fails

Here are a few potential cases where the update might fail, and the fixes for it.

## Problem - File integrity check failed:

{% hint style="warning" %}
Warning: file\_get\_contents(**<https://raw.githubusercontent.com/UXWizz/update-integrity-check/master/v6/latest-version-hash?token=1733905913>**): failed to open stream: HTTP request failed! **HTTP/1.1 404 Not Found** in **/var/www/html/server/helpers/update/update.php** on line 102 Expected hash: Remote hash: e64a580cb8d471609a18387a8737dbf1c8c5b4dc75dc4634bef1d5a7299dbe1d File integrity check failed. Update process stopped.
{% endhint %}

### Why this happens:

For security, the updater checks each new .zip update file with a remote GitHub repository that contains the correct integrity hash for that version. If the hash of the downloaded file is different to the integrity hash in the GitHub repository, the updater will stop the updating process.

### Issue with versions older than 7.0.2: **GitHub has recently changed how their content is delivered. Because the updating will fail with the old URL, you have to manually fix the URL.**

### Solution (if you are on version older than 7.0.2):

{% hint style="success" %}

#### Please do this single step to fix the updater:

In the file /var/www/htm&#x6C;**/server/helpers/update/update.php**\
\
**Replace this line  (Line #72 or near it)**:

{% code title="Old integrity check URL" %}

```php
$HASH_CHECK_URL = 'https://raw.githubusercontent.com/UXWizz/update-integrity-check/master/v6/latest-version-hash';
```

{% endcode %}

\
**With this one:**

{% code title="New integrity check URL" %}

```php
$HASH_CHECK_URL = 'https://uxwizz.github.io/update-integrity-check/v6/latest-version-hash';
```

{% endcode %}
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uxwizz.com/guides/troubleshooting/dashboard/updating-fails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
