meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
updates [2025/06/22 06:40] – [Updates] add image wrongechoupdates [2025/06/22 06:47] (current) – tidy wrongecho
Line 9: Line 9:
     * Download the updated files     * Download the updated files
     * Apply any required database migrations     * Apply any required database migrations
 +
 ===== Web Interface ===== ===== Web Interface =====
   - Login to ITFlow as an admin   - Login to ITFlow as an admin
   - Navigate to Admin Settings > Update   - Navigate to Admin Settings > Update
-  - Select **Update App**+  - If any updates are available, you will see the git commit details 
 +  - Select **Update App** (this downloads the latest app files)
   - If prompted, also select **Update database** (you may have to do this several times)   - If prompted, also select **Update database** (you may have to do this several times)
  
Line 22: Line 24:
  
 ---- ----
- 
----- 
- 
-===== Explanatory notes about updates (to be tidied up) ===== 
-==== Files ==== 
- 
-The majority of ITFlow updates are just changes to the PHP files. The update tab will show the latest [[https://github.com/itflow-org/itflow/commits/master|git commits]] and offer to download them for you. In the background, this is just running ''git pull'' 
- 
-If you've manually edited any files, the updater will fail - navigate to your web directory and run git pull to review and resolve the issue. 
- 
-{{updates_git_pull.png?direct|}} 
- 
-==== Database ==== 
- 
-After pulling down the latest files, the update page will then show if the latest database version has increased. If it has, it will offer to run the commands in //database_updates.php// to update the database. 
- 
-If you have updated your files and the database is showing it needs an update, it is crucial that you run the database updater as soon as possible. 
- 
-If you do not update the database after updating the files, you will start seeing database-related errors 
-  * e.g. ''PHP Fatal error:  Uncaught TypeError: mysqli_fetch_array(): Argument #1 ($result) must be of type mysqli_result, bool given in /var/www/html/'' 
- 
-  * What this error is saying is that PHP failed to correctly pull data from the database. The query returned boolean false rather than a dataset. This would be due to something not matching (table/column names may have been added/changed). 
- 
-  * If you are ever unable to login to due not updating the database, you can manually apply the relevant SQL changes in //database_updates.php// at the CLI / using phpMyAdmin. 
  
  
-**Additional notes: **  +===== Additional notes ===== 
-  * The database update applies one update at a timeIf there are multiple updates needed, you will need to manually cycle through each update.+  * It is crucial that you run the database updater as soon as possible after downloading the latest app filesOtherwise, you will begin seeing database-related issues in your error log.
  
-  * If you run into any issues running multiple database updates, it may be worth signing out and back in again between updates. Some updates alter files in your PHP session, which might only be set during login.+  * The database update applies one update at a time (see //database_updates.php//). If there are multiple updates neededyou will need to manually cycle through each update.
  
-{{:updates_database.png?direct|}}+  * If you run into any issues running multiple database updates, you should try running the database updates via the CLI. Some updates alter files in your PHP session, which might only be set during login. This is usually mentioned in the breaking changes.