Upgrade Instructions

Also available in Deutsch, Français, Español, Русский, 简体中文


If you encounter problems while installing WackoWiki, see problem page.




Upgrade your WackoWiki from 6.0.x to 6.1.x.



See also the migration guides for WackoWiki versions 5.5.x and 6.0.x.
PHP 8

1. Preparations

  1. Check Release Notes for requirements.
  2. Back up your data:
    1. your wiki database (e.g. via phpMyAdmin or the backup module in the Admin Panel),
    2. your wiki folder.

IMPORTANT
Backup your data! Before doing anything, backup your existing database and files. Also ensure that during migration nobody uses the database, because it may cause loss of data.

  1. It is imperative that you make a backup of your WackoWiki database before you upgrade.
  2. The upgrade procedure transfers your installation instance data from the old version to the new version. Migration from the new version back to the old version is not supported.

2. Upgrade

Requires at least WackoWiki 6.0.22, if you use a earlier version upgrade to this version first or later, before you upgrade to WackoWiki 6.1.

2.1. Download

  1. Download wackowiki-6.1.x.zip
  2. Extract the archive
  3. Delete all wacko folders and files from your current installation, except
    • config/config.php
    • file/
  4. Copy the new wacko.6.1 files in your WackoWiki installation folder
  5. Delete the cache file under cache/config/config.php.
  6. Check file permissions

If you have created custom themes, actions, handlers or formatters in the old version of WackoWiki, then you need to restore them from the backup you made at the beginning. Check their compatibility and fix them if necessary.

2.2. Installer

WackoWiki R6.1 upgrade step 1: language settings

Call the URI of your Wiki in your browser. The installer starts and tells you (IMPORTANT) that you are upgrading from 6.0.x to 6.1.x

3. Post-Upgrade

3.1. Configuration

If you've had set custom values in constant.php, router.conf, csp_custom.conf or elsewhere, you must set or merge these values again.

3.2. Re-Synchronize data

After a successful upgrade you can perform a re-rendering for all intrasite links to rebuild the records of the page_link and file_link table.

  • Admin Panel -> Synchronizing data -> Wiki-links
tune the re-rendering settings to avoid timeouts or reaching the memory limit

You can tune the re-rendering settings to avoid timeouts or reaching the memory limit. This is mostly interesting for shared hosting or servers you do not manage. The server terminates then the script without further notice.


If the re-rendering fails just reduce the number of pages it renders per turn, the redirect LIMIT is set to 10. If you reach the redirect limit the script will provide you with a link Next », which you have to click to render the next batches of pages. Furthermore avoid possible session timeouts while the script is running.

3.3. Changes

  1. Writes now the sitemap.xml into the xml/ folder, please check and update your robots.txt, e.g.
    • Sitemap: https://wiki.example.com/xml/sitemap.xml.gz	
  2. Requires now the ICU Dates and Times Format used by IntlDateFormatter, please update your custom settings in the Admin panel.
    • config DateTime::format IntlDateFormatter
      date_format d.m.Y dd.MM.yyyy
      time_format H:i HH:mm
      time_format_seconds H:i:s HH:mm:ss
  3. To create the file hashes for files uploaded prior to WackoWiki 6.1.19 use the {{adminupdate}} action.
    • Set missing file hash for legacy records in file table
  4. Remove the backups you've created prior to WackoWiki 6.1.21 from the file/backup/ folder or replace the backup.log with a JSON formatted version.
    • {
          "cluster": "",
          "data": "wacko_acl;wacko_auth_token;wacko_config;wacko_category;wacko_category_assignment;wacko_external_link;wacko_file;wacko_file_link;wacko_menu;wacko_page;wacko_page_link;wacko_revision;wacko_user;wacko_user_setting;wacko_usergroup;wacko_usergroup_member;wacko_watch",
          "files": "file/global;file/perpage",
          "size": 104080339,
          "structure": "wacko_acl;wacko_auth_token;wacko_cache;wacko_config;wacko_category;wacko_category_assignment;wacko_external_link;wacko_file;wacko_file_link;wacko_log;wacko_menu;wacko_page;wacko_page_link;wacko_referrer;wacko_revision;wacko_user;wacko_user_setting;wacko_usergroup;wacko_usergroup_member;wacko_watch",
          "time": 1681202531,
          "wacko_version": "6.1.21"
      }	

3.4. Custom themes, actions, formatters, handlers and other modifications

Do not forget to update and check your own modifications and extensions. Look out for changed functions, database changes or CSS changes.


  1. Please look in the community folder or Patches section for available updates.
  2. Merge possible core changes in your own theme

4. Notes

  1. Leave a comment here if something is not clear or you have further questions.
  2. Do not hesitate to improve this instruction and the wording.

Look here for other versions

Comments

  1. locked file

    Hi I upgraded to R6.1.23 without issue, but wanted to mention creating a "locked" per the doc/UPGRADE instructions didn't work for me. When I browsed to the wackowiki site the installer ran as if the locked file wasn't present. Also, fwiw, it would be nice if the installer explicitly said it was doing an upgrade and the existing site wouldn't be modified. I presumed so since the fields were filled in from the old config.php file I copied, but the reassurance would still be nice. Great software! Thanks so much. Cheers.

    dale@whizzer:/usr/local/www % ll wacko/
    total 114
    -rw-r--r--   1 www  www   812 Jun 24 12:28 .htaccess
    drwxr-xr-x   8 www  www     9 Oct 18 22:00 _cache/
    drwxr-xr-x   4 www  www    71 Oct 18 22:00 action/
    drwxr-xr-x   6 www  www     7 Oct 18 22:00 admin/
    drwxr-xr-x   2 www  www    25 Oct 18 22:00 class/
    drwxr-xr-x   2 www  www    18 Oct 18 22:00 config/
    drwxr-xr-x   2 www  www     6 Oct 18 22:00 doc/
    drwxr-xr-x   7 www  www     7 Oct 18 22:00 file/
    drwxr-xr-x   4 www  www    16 Oct 18 22:00 formatter/
    drwxr-xr-x   3 www  www     3 Oct 18 22:00 handler/
    drwxr-xr-x   3 www  www    25 Oct 18 22:00 image/
    -rw-r--r--   1 www  www  1571 Jun 24 12:28 index.php
    drwxr-xr-x   3 www  www     8 Oct 18 22:00 js/
    drwxr-xr-x   2 www  www    23 Oct 18 22:00 lang/
    drwxr-xr-x  15 www  www    16 Oct 18 22:00 lib/
    -rw-r--r--   1 www  www     9 Oct 18 22:38 locked
    -rw-r--r--   1 www  www    25 Jun 24 12:28 robots.txt
    drwxr-xr-x   5 www  www    20 Oct 18 22:00 setup/
    drwxr-xr-x   4 www  www     4 Oct 18 22:00 theme/
    drwxr-xr-x   2 www  www     3 Oct 18 22:00 xml/
    dale@whizzer:/usr/local/www %