WackoWiki: 5.5 Release Notes

https://wackowiki.org/doc     Version: 310 (02.11.2023 07:27)

5.5 Release Notes

R5.5

(31.12.2019) b4095e3[link1] -> M17 (Change Log[link2])



This is a major release and a security update for the stable 5.x branch.
In addition to miscellaneous fixes the 5.5 release serves mainly three purposes: Migration to HTML5, address security related features and PHP 7.0 - 7.4 compatibility.

mammut mascot

1. Notable in this release

  1. complete PHP 7.0 - 7.4 compatibility
  2. HTML5 support
  3. major refactoring of init system
  4. new session handler
  5. new URI router[link3]
  6. new template engine[link4]
  7. added php-diff rendering methods
  8. replaced all icons with SVG icons
  9. implemented auth and form token
  10. added support for audio, video and SVG files
  11. added Bad Behaviour[link5] as extension
  12. public registration moderation by admin
  13. using password_hash() and password_verify() API
  14. file link tracking
  15. improved notification handling
  16. localized WikiEdit and Admin panel

milestones

2. Download

wacko.r5.5.17.zip[link6]

Repo files (including community[link7] folder)

Clone repo
git clone -b 5.5.17 https://bitbucket.org/wackowiki/wackowiki.git	

3. Upgrade path

R4.x –> R5.0[link11] (requires PHP 5.2 / 5.3)
R5.x –> R5.5[link12] (requires PHP >= 7.0)

Please read the upgrade notices[link12] carefully.

4. Installation

Installation guide[link13]

4.1. Requirements

requires now[link14]

Step by step as Installer Screenshots[link15].

Preparing the Database for Installation

Data base configuration: If the installer asks you for charset, select the appropriate character set, e.g.

4.2. File Permissions

Change the permissions[link16] on the following files and directories to be writable

Example:
touch config/config.php
chmod 666 config/config.php

chmod 0755 _cache/config/ _cache/feed/ _cache/page/ _cache/query/ _cache/session/ _cache/template/ file/backup/ file/global/ file/perpage/ file/thumb/ xml/

chmod 0660 config/lock config/lock_ap sitemap.xml

reset after installation / upgrade
chmod 644 config/config.php

4.3. Path for session values

Check if the provided path for CACHE_SESSION_DIR is correct. The default value is /tmp but may vary in your environment.
Furthermore you may want to change this to a custom folder[link17] for the application (e.g. _cache/session) .

constants.php:
 define('CACHE_SESSION_DIR',		'/tmp');	

4.4. Path to user and group profile

The path for link to the users page or profile ((user:UserName UserName)) is set in config['users_page'].

The path for link to the group page or profile ((group:GroupName GroupName)) is set in config['groups_page'].

4.5. New config settings


Please check the Change Log[link2] for more details.

5. Admin Panel

The Admin panel[link20] remains in beta stage.

If your Admin panel gets locked reset config/lock_ap from 1 to 0

6. Themes

All themes[link21] other than default are outdated and unmaintained and were moved to the community/theme[link22] section. If you like to use one of them, please help to update this particular theme.

If you want to keep your layout, you have to use a program like Meld or WinMerge to merge your CSS and other theme files with the new files in the folder wacko/theme/default[link23].

A Guide for the new template engine[link4] will hopefully follow soon. Nevertheless you can write or adapt your theme without using the template engine.

7. Backwards Compatibility

We dropped compatibility code for older PHP and MySQL versions. R5.5 requires at least PHP 7.0 and MySQL 5.6. To use WackoWiki with older PHP or MySQL versions, use the previous branch of 5.4.x releases, which you can find on the download page[link24].

8. Known Issues

All known issues[link25] are tracked in our Bug Tracker.[link26]
  1. Session duration issue[link27]
  2. Missing route cases (needs fix)
    1. CSS files in RECOVERY mode
  3. activate the option multilanguage in the installer / secondary config to avoid the following issues:
    1. chars from another charset are not converted to HTML unicode entities
    2. This issue will become obsolete with our upcoming Unicode ready Wiki engine.
  4. WikiEdit won't show if you use [et] or [pl] as page language with the auto complete feature -> SyntaxError: invalid range in character class
    1. Workaround: disable Autocomplete under user settings -> extended -> Complete wikilinks by Ctrl+Space

9. Developers

9.1. New debug functions

  1. to write a parameter in the debug log
    • Ut::dbg('debug_variable', $parameter);
  2. add debug output to DEBUG file and popup-window in browser
    • Diag::dbg($parameter);
    • to highlight the debug output in the console add '[BLUE|GOLD|ORANGE|RED]' as the first argument
      • e.g. Diag::dbg('GOLD', $parameter);

In both cases it writes the $parameter to the log in the main directory wacko/DEBUG when the config debug is enabled.
Be aware the log isn't emptied automatically. Ensure that the file wacko/DEBUG can be created and is writable.
touch DEBUG
chmod 0664 DEBUG	

9.2. Access config values

9.3. HTTP functions

9.4. SQL functions

10. Credits

Of note, is the large contribution of Serge Terekhov[link28] to this release.