Upgrade notices for 6.0.x
Also available in Deutsch[link1], Français[link2] und Русский[link3]Upgrade your WackoWiki from 5.5.x to 6.0.x.
See also the migration guides for WackoWiki versions 5.0[link4], 5.4[link5], 5.5[link6] and 6.1[link7].
1. Preparations
- Check Release Notes[link8] for requirements.
- Back up your data:
- your wiki database (e.g. via phpMyAdmin or the backup module in the Admin Panel[link9]),
- 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.
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.
- It is imperative that you make a backup of your WackoWiki database before you upgrade.
- 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. Pre-Upgrade Routines for R6.0
Skip this section if you do not upgrade from R5.5.
Ensure you run the latest R5.5.17[link10] release, an upgrade from earlier versions is not supported. Run the following routines in your WackoWiki R5.5.17 before you upgrade to R6.0.x.
2.1. Convert Tables from MyISAM to InnoDB
If you have existing MyISAM tables, you have to convert them to InnoDB with the following routine.- Admin Panel -> Database -> Convert
2.2. Convert your tables and records to UTF-8
You should run the the first part of the routines prior to your upgrade to R6.0.x.
- Database UTF-8 Conversion Script[link11]
3. Upgrade
3.1. Download
- Download wacko.6.0.x.zip[link12]
- Extract the archive
- Delete all wacko folders and files from you current installation, except
-
config/config.php
-
file/
-
- Copy the new wacko.6.0.x files in your WackoWiki installation folder
- Delete the cache file under
cache/config/config.php
. - Check file permissions[link13]
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.
3.2. Installer
Call the URI of your Wiki in your browser. The installer starts and tells you (IMPORTANT) that you are upgrading from 5.5.x to 6.0.x
- go through all steps
- Screenshots from Upgrade procedure[link14]
4. Post-Upgrade
4.1. Configuration
If you've had set custom values inconstant.php
, router.conf
, csp_custom.conf
or elsewhere, you must set or merge these values again.4.2. Re-Synchronize data
After successful upgrade you can perform a re-rendering for all intrasite links to rebuild the records of thepage_link
and file_link
table.- Admin Panel -> Synchronizing data -> Wiki-links
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.
4.3. Unicode transition issues
Skip this section if you do not upgrade from R5.5.The migration to Unicode is an ongoing process. It may require manual adjustments over a longer period of time. Below we will share our experience, findings and possible solutions.
4.3.1. Replace old transliterated links and supertag references
Before you run any SQL UPDATE command create a backup beforehand. One error and you may loose all your data.UPDATE prefix_page SET body = REPLACE(body, '/Doc/Русский/Obnovlenie', '/Doc/Русский/Обновление');
Possible cases
-
((!/el ÅëëçíéêÜ @@el)) -> ((!/el Ελληνικά))
-
((/Doc/Русский/Obnovlenie ru)) -> ((/Doc/Русский/Обновление ru))
-
file:/forum/discussion/ifmodifiedsinceheaderdoesnotworks/403_network_analysis.png -> file:/Forum/Discussion/IfModifiedSinceHeaderDoesNotWorks/403_network_analysis.png
Alternatly the
{{admin_replace}}
action can be used to replace these strings[link15].Note
Furthermore look out for broken internal or incoming links. The pagetag
is now accent and case-sensitive[link16], what worked before with the supertag may now result in a 404 error.
Set back
body_r
afterwards, so the parser re-renders the pages with the changed content.UPDATE prefix_page SET body_r = '';
4.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 or database changes.- Please look in the community folder[link17] or Patches section[link18] for available updates.
- Merge possible core changes in your own theme[link19]
5. Notes
- Leave a comment here if something is not clear or you have further questions.
- Do not hesitate to improve this instruction and the wording.
- [link1] https://wackowiki.org/doc/Doc/Deutsch/LegacyUpgrade6.0
- [link2] https://wackowiki.org/doc/Doc/Français/MiseAJour
- [link3] https://wackowiki.org/doc/Doc/Русский/НаследиеОбновление6.0
- [link4] https://wackowiki.org/doc/Dev/Release/R5.0/Upgrade
- [link5] https://wackowiki.org/doc/Dev/Release/R5.4/Upgrade
- [link6] https://wackowiki.org/doc/Dev/Release/R5.5/Upgrade
- [link7] https://wackowiki.org/doc/Dev/Release/R6.1/Upgrade
- [link8] https://wackowiki.org/doc/Dev/Release/R6.0/ReleaseNotes
- [link9] https://wackowiki.org/doc/Doc/English/AdminPanel
- [link10] https://wackowiki.org/doc/Dev/Release/R5.5/ReleaseNotes
- [link11] https://wackowiki.org/doc/Dev/Release/R6.0/Upgrade/DatabaseConversion
- [link12] https://wackowiki.org/doc/Download/LegacyVersions
- [link13] https://wackowiki.org/doc/Doc/English/FilePermissions
- [link14] https://wackowiki.org/doc/Doc/English/Upgrade/Screenshots
- [link15] https://wackowiki.org/doc/Doc/English/Actions/AdminReplace
- [link16] https://wackowiki.org/doc/Dev/Release/R6.0/BinaryTag
- [link17] https://bitbucket.org/wackowiki/wackowiki/src/master/community/
- [link18] https://wackowiki.org/doc/Dev/PatchesHacks
- [link19] https://wackowiki.org/doc/Doc/English/Themes