WackoWiki: ToDo R6.3 📌

https://wackowiki.org/doc     Version: 103 (12/01/2026 19:04)
Dev[link23]/Release[link24]/R 6.3[link25]/To Do[link26]

ToDo R6.3 📌


R 6.3

Roadmap[link1]
dev repo[link2]
ChangeLog[link3]
Diff:6.3.2...master[link4] – Diff since last release

Version 6.3 focuses on two main improvements: modernizing WikiEdit and preparing the code base for refactoring.
  1. WackoFormatter
    • special cases
    • missing cases
    • quirks
    • Unit tests
    • move formatter in own repo (but constraints)
  2. Markup conversion (JS + PHP API)

1. PHP

  1. https://php.watch/articles/php-regex-readability

1.1. PHP 8.5

  1. https://php.watch/versions/8.5
  2. https://www.php.net/releases/8.5/en.php
  3. https://getrector.com/find-rul[...]rectorSet=php-php-85[link5]
  4. https://wiki.php.net/rfc/url_parsing_api

Requires at least PHP 8.4 to fix:

1.2. PHP 8.6

  1. https://php.watch/versions/8.6
  2. https://www.php.net/releases/8.6/en.php

2. Features

3. Core

  1. SQLite 3.33.0+ support for UPDATE FROM, turns out my shared hosting supports only 3.30.1 (is from 2019) – That's a bummer.
  2. If error reporting and debug is on fail loud, show error source of 500 error, otherwise show default message like Turn error reporting on – Some Shared Hosting packages deliver the error log only once a day, and when a user did some copy or other error do not let them die and left with a blank screen – NOTHING is more annoying and stupid.
  3. check for wasteful resource consumption in the pipeline (Memory, Computation, Process, Logic)
    • observation
      • Request Heavy? What it renders
        CacheIssues?show_comments=1 3–4 MB  the comment list
        CacheIssues?_autocomplete=1 4.5 MB the comment list + a 60-byte JSON
        CacheIssues/_addcomment 6.8–7.8 MB  comment form + comment list
        Comment750/_edit 8.3 MB the edit form
        Comment750/_edit?section=5 0.9 MB  the edit form, one section
        Users/WikiAdmin (few comments) 1.0 MB  a normal page
    • memory profile
      • phase buffer extra copies
        run() page content –
        store_cache() + $data = ob_get_contents() 1 copy (pre‑existing, needed to write the file)
        finalize_response() unchanged 0 copies (uses the stashed validator)
        gzip() + ob_get_contents() + gzencode() 1 copy + 1 compressed copy (pre‑existing)
    • Expected after the changes:
      • Metric Before Expected after
        api max_peak 5.513 MB  ≤ 1.2 MB 
        page avg_final 3.363 MB  ≤ 2.0 MB 
        max_real (all kinds) 8–12 MB  2.000 MB 
        _addcomment wall time 1028 ms  < 150 ms 
        _edit wall time 955 ms  depends on LENGTH(body)
  4. Error loading WackoWiki DBAL: could not establish database connection. -> show also hint when error reporting is off instead of showing a blank page.
  5. check: when it writes a page it no longer seems to delete the cached version of this page (fix if so – or is this a web proxy issue?)
  6. Mitigate PHP Fatal error: Uncaught Error: Undefined constant “MYSQLI_REPORT_OFF” in /wiki/class/dbmysqli.php:19 – can happen when user switching stack with existing config -> Show : The MySQLi extension is missing or disabled.
  7. reoccurring ERR_HTTP2_PROTOCOL_ERROR
    • What is causing the browser to show ERR_HTTP2_PROTOCOL_ERROR before it finally loads the site correctly and how it can be fixed?
  8. $utc_time = DateTimeImmutable::now('UTC');
    • $now = new DateTimeImmutable('now', new DateTimeZone('UTC'));
  9. Clear-Site-Data Header[link7]
    • <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
  10. user:UserName[link8] link must be case sensitiv but seems not – check
  11. improve notification options for moderators
    • send only a summary
  12. replace col attribute in input and textarea element with CSS percent width and max-width for mobile usage
  13. declared visibility on all properties, constants and methods
  14. unwrap_link() strip also last slash if user provides page="/Cluster/SubPage/" to match tag Cluster/SubPage in database
    • utf8_rtrim(new_tag, '/') or better already via regex
  15. add option to overwrite upload pre-selection (global/local)
  16. The user name regex allows . and - in usernames however the sanitizer removes it 
  17. Why does it store interwiki in session and not as JSON in _cache/config/interwiki.conf?
    • get_inter_wiki_url($name, $tag)
  18. move interwiki.conf and antispam.conf into table & _cache/config/*
  19. COLLATE utf8mb4_bin for tag eats 𝓦𝓲𝓴𝓲𝓦𝓸𝓻𝓭𝓼 in LIKE '/%' query, without slash it finds it, whO_Ot
  20. UTF-8 text must be checked for well-formedness
    • static function is_utf8($string)
      {
        return (bool) preg_match('//u', $string);
      }		
  21. fix client side JS input validation patterns
    1. new, clone and rename handler, import action
    2. $tpl->pattern = $this->lang['TAG'] . '+';
  22. allow also login with email address instead of user name
  23. individual CSP per page
  24. move link and notifications functions in own class
    • $this->msg->notify_user()
    • $this->ref->link()
  25. Implement a quasi mailing lists where users can register and participate, WackoWiki already comes with all functions for realization
    • similar to personal messages, but on topics that send outgoing messages to all users subscribed to that topic
  26. improve page export and import feature (see export handler)
    • add option (handler) to add meta-data like keywords, description, language, etc.
    • json format
    • files
  27. provide simple migration script for page and files
  28. add warning about too long page tag
    • https + domain + base path + page tag + reserve for handler name and parameters
    • roundabout 2000 max 
    • parent tags + page tag – suggested max size triggering a warning (?)
  29. Improve sending emails (bcc, timing, digest, diff options, mailing lists)

4. Installer

  1. ensure that the installer also runs without JS (Do the Lynx test!)
  2. installer stalls with (first BB fires and tries to insert log item in outdated table)
    • Query failed: [1054] Unknown column 'enforcement_action' in 'field list' -> INSERT INTO `wacko_bad_behaviour` ...		
    • HOTFIX: disable ext_bad_behaviour delete old 
  3. sql_mode 'session strict' lets installer stall with MariaDB (debug!), going back and changing it to 'server (default)' and it works
  4. language selection is behind authorization, it always defaults to English if you do a new installation, except you change the 'language' => 'de' in the config_defaults.php file
    • set language via user_agent_language()?
  5. commented out auto-creation of empty help, terms and privacy page – needs FEEDBACK
    • make creation optional, the default theme shows the links when set in the config
    • either the user defines them individually in the admin panel or sets an additional option in the installer to create them
  6. user pages: only the user should be able to write and create sub-pages by default in his namespace
  7. validate username
  8. use dbal also for installer: $db->sql_query($sql)
  9. raise DB version requirement (there is a technical minimum requirement as well as a end of support) DONE
    • enforces version for technical requirement
    • show warning for versions with end of support
  10. show error message if variable $fatal_error is true
  11. set default bookmarks for new languages with multi-language mode after installation / upgrade
    • if the user adds new langages later by hand or activates it via Admin Panel, the default menu for newly activated languages are then missing
    • currently the admin can fix this only by manually adding the missing bookmarks with the  action or re-runs the upgrade process by setting back the WackoWiki version in the config file
  12. PHP
    <?php
    
    test($lang['TestDatabaseConnection'] . ' ...', 
        $dblink = @mysqli_connect($config['db_host'], $config['db_user'], $config['db_password']));
    
    $test_db = test(
        $lang['SearchForDatabase'] . ' ...',
        @mysqli_select_db($dblink, $config['db_name']),
        $lang['NoDatabaseFoundTryToCreate'] . '.',
    );
    
    if ($test_db)
    {
        test(
            $lang['TryingToCreateDatabase'] . ' ...',
            @mysqli_query($dblink, 'CREATE DATABASE ' . $config['db_name']),
            $lang['DatabaseCouldNotbeCreatedYouMustCreateItManually'] . ' !'
        );
    
        test(
            $lang['SearchForDatabase'] . ' ...',
            @mysqli_select_db($dblink, $config['db_name']),
            $lang['DatabaseDoesntExistYouMustCreateIt'] . ' !',
        );
    }
  13. robots.txt: noindex,nofollow,max-image-preview:none,noarchive,noimageindex

5. Handler


6. Action


7. Formatter

/* label (blue) */
.cl-label-blue {
border-radius: .375rem;
color: #0969da;
background-color: #ddf4ff;
padding: .125rem .375rem;
font-family: var(ww-font-monospace);
font-size: .75rem;
}
  * Formatter / MD -> Wacko conversion fails on blockquote nesting
    *		
> Note: The new code syntax is active by default. To restore legacy inline-code behavior during transition, add to `config.php`:
>
php
> $db->legacy_inline_code = true;
>		

====Cache====


====Admin Panel====
  * rewrite users and groups module
  * support templates
  * check for admin password length only for members of admin group and not for other accounts
  * Email of user becomes invalid, give Admin a possibility to unset email confirmation
    * workaround: change the users email domain to ##example.com## and it sets the email address again as unconfirmed
    * make user setting editable for Admin (?)
  * Users: Provide link to user profile for each user
  * ## #[AllowDynamicProperties]##
  * resync: no result page if dataset is smaller than number for next redirect


====Database====
  * Listing JOINS with no index: ##log_queries_not_using_indexes##
    * https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_log_queries_not_using_indexes
    * https://endoflife.date/mariadb
    * https://endoflife.date/mysql
  * https://monty-says.blogspot.com/2026/01/the-concepts-of-forking.html
====WikiEdit====
  1. converter (##markup-conversion.js##)
    * double escape off pipe in table when in code tags ### ##""|""## ###
    * bold in MD is multi-line (##\n##) and converter should then mark first and following parts (make table what is what: sl/ml and line-break versus paragraph)
    * nested quotes
  1. implement cache busting
    * With and without ##manifest.json##
    * #|
*|  | ##manifest.json## present (release) | absent (dev) |*
|| cache busting | ##?v=<sha256[0:10]>## – changes with the content | ##?v=<filemtime>## – changes when you edit the file ||
|| SRI ##integrity=## | yes, from the manifest | no attribute (nothing to hash) ||
|| ##crossorigin## | added together with ##integrity## | not added ||
|| mode detection | bundle exists → **bundled** | bundle missing → **source** ||
|#
  1. sometime the page is stuck in zen mode when the comment section set it - this leaves the page with hidden navigation bars
    * you have to unset it WikiEdit of the comment section
    * mitigate and fix this
  1. search cursor moves out of visible part in  textarea -> synchronize focus properly (might be an switch issue to wide mode)
  2. select and remember the color of the highlighter or marker, keep selected color in session
  3. do not set multi-line markup beyond paragraph, list and other terminators, only valid tag nesting
  4. list auto-indentation sometimes fails
  4. ((JavaScript ES2023)) ECMAScript 2023 (ES14)
  5. merge and minimize the modules from src/ into a ##wikiedit.min.js##

Converter Error (MD -> Wacko): 
  *		

(docs/CONFIGURATION.md (CONFIGURATION.md))
====Translations====
  * vollständiger Vergleich → Detailed
  * einfacher Vergleich → Simple
  * installer: set correct tags and titles for default pages for all new languages
    * see ##ConfigDefaults## in ##installer.<lang>.php##
    * change ##home_page_body## in ##inserts.<lang>.php## accordingly

=====Crowdin 🚩=====
New strings can be filtered in the editor via Advanced Filter -> Strings Added: ##[Date From]## - ##[Date To]##

  * **Crowdin** Pre-MT ((https://crowdin.com/project/wackowiki requires proofreading by native speakers)) (only supported languages)
    * Quality
      * [MT] Arabic, Czech, Finnish, Norwegian, Romanian, Portuguese Brazilian, Swedish, Ukrainian, Korean, Chinese Traditional, Turkish, Croatian, Thai, Vietnamese
      * [A] other languages with partial translations, e.g. Persian, Tamil
      * [B] Italian, Danish, French, Polish, Dutch, Greek, Japanese
      * [C] English, German, Simplified Chinese, Spanish, Russian
    * check for obvious errors (file & diff)
    * Pre-MT produces a lot of none-sense which needs to be fixed again by hand, mixed results - depending on target language and context, English as source language with little context is sometimes hard to translate
      * A small change in an English source file like setting a comma or removing a ##<tag>##, suddenly it discards all existing translations and replaces them with a new auto-translated version - very frustrating
    * ToDo & Workflow guide
      * completeness -> proofreading
    * Crowdin export scheme should mirror original file structure for simple drop-in replacement, but does not -> WHY ??? 

====Libs====
  * SimplePie

Replace outdated pear highlighting lib, evaluate
  * https://github.com/tempestphp/highlight
  * https://github.com/phikiphp/phiki

The large size of grammar files in Phiki is primarily due to the **exponential state growth** that occurs when compiling complex JSON schemas into finite-state automata, particularly when using **nullable types** and **deep nesting**.
  *   **Nullable Types Cause Branching**: Each type definition that allows null (e.g., ##["number", "null"]##) compiles into an ##anyOf## branch within the grammar. With multiple nullable fields per object, this creates dozens of branching points that multiply the number of states exponentially.
  *   **Lack of Efficient Deduplication**: Even when schemas use ##$ref## and ##$defs## to define shared structures, the grammar compiler often **expands everything inline** rather than reusing grammar rules. This means repeated sub-schemas are duplicated in the compiled output, significantly increasing file size.
  *   **Deep Nesting Compounds Complexity**: Paths with multiple levels of nested objects (e.g., schema → array → object → fields → constraints) compound the complexity, as each level adds its own set of properties and constraints to the state machine.

These factors mean that moderately complex schemas (e.g., 5 levels deep with ~50 properties) can trigger errors like **"compiled grammar is too large"** because the resulting finite-state automaton becomes too large for efficient performance.

https://joelgustafson.com/posts/2022-05-31/syntax-highlighting-on-the-web/
====Refactoring====

====Offline usage improvements====
Intranet usage, offline, etc.

  1. manual, help
    * installer(option to add help/)
    * provide help cluster as XML for import (de, fr, en, es, ru, zh)
    * add all essential instruction to a doc/ folder
  1. XML export / import
    * improve options (chose cluster, direct download)
    * make import / export more accessible

====Themes====
  * add option for guests to switch to the dark mode (currently only possible via WikiEdit)
  * add option to set dark mode as default
  * Browser CSS defaults fun: try this in Firefox then in Chrome
    * ""--test--  ##test## --##test##-- ##--test--##""
    * --test--  ##test## --##test##-- ##--test--##
  * **reset font-size** back to ##var(--ww-font-size-sm)## for menu, revision handler and similar lists 
  * move toc to left side
    *		
(hl css)
position: fixed;
width: 200px;
margin-left: -270px;
top: 6em;
  * CSS: ##[dir=rtl]##
  * https://css-tricks.com/solved-with-css-dropdown-menus/
  * ((DarkMode dark mode))
  *		
(hl css) #page-edit form textarea {
height: 400px;
min-height: 5em;
}%%

8. Cache


9. Admin Panel


10. Database

11. WikiEdit


12. Translations


Any major release like this is bound to have some issues, and we will continue to fix them as they arise.

12.1. Crowdin 🚩

13. Libs


declare(strict_types=1);