WackoWiki: Todo List

https://wackowiki.org/doc     Version: 25 (06/28/2026 17:05)
Dev[link51]/Todo List[link52]

Todo List






1. R 6.3

Roadmap[link8]
dev repo[link9]
ChangeLog[link10]
Diff:6.3.2...master[link11] – 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.1. PHP

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

1.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[link12]
  4. https://wiki.php.net/rfc/url_parsing_api

Requires at least PHP 8.4 to fix:

1.1.2. PHP 8.6

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

1.2. Features

1.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[link14]
    • <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
  10. user:UserName 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)

1.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 {{menu system=1}} 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

1.5. Handler


1.6. Action


1.7. Formatter

1.8. Cache


1.9. Admin Panel


1.10. Database

1.11. 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
  2. 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
  3. 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
  4. search cursor moves out of visible part in textarea -> synchronize focus properly (might be an switch issue to wide mode)
  5. select and remember the color of the highlighter or marker, keep selected color in session
  6. do not set multi-line markup beyond paragraph, list and other terminators, only valid tag nesting
  7. list auto-indentation sometimes fails
  8. ES2023[link20] ECMAScript 2023 (ES14)
  9. merge and minimize the modules from src/ into a wikiedit.min.js

Converter Error (MD -> Wacko):

1.12. Translations

1.12.1. Crowdin 🚩

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


1.13. Libs


Replace outdated pear highlighting lib, evaluate


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.


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/post[...]lighting-on-the-web/[link22]

1.14. Refactoring

1.15. 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
  2. XML export / import
    • improve options (chose cluster, direct download)
    • make import / export more accessible

1.16. Themes

1.16.1. Graphics


1.17. Tooling


1.18. Ideas

1.19. Documentation


1.20. Feedback


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

1.21. Testing

1.21.1. Debug


declare(strict_types=1);




R5.5 is no longer maintained, please upgrade to R6.0[link33]. Open issues will be fixed in R6 branch.

2. R 5.5

Main Focus: HTML5 support, security related features

  1. HTTP Strict Transport Security (HSTS)
  2. Content-Security-Policy[link34]
  3. Cookies, CSRF sectoken
  4. https://www.owasp.org/index.ph[...]tication_Cheat_Sheet[link35]

2.1. MariaDB / MySQL type casting

https://dev.mysql.com/doc/refm[...]type-conversion.html[link36]
https://stackoverflow.com/ques[...]d-backticks-in-mysql[link37]


whOOt https://dev.mysql.com/doc/refm[...]ent-programming.html[link38]


2.2. Features

  1. normalize links to other language versions of a page
    • add table: lang_link[page_id, lang, target_id]
  2. add debug option to send error log into separate file + rotate logs
  3. add IP block to ban bad actors, bots

2.3. M17

open issues (add)

  1. relative linking seems not working for ((../ back to parent page)), it links to root level (?!)
  2. upload of file without extension -> broken
  3. empty body_r after page rename/relocation -> page needs re-rendering
  4. allow multi logins (on/off)
    1. add multi login warning: 'Jemand hat sich bereits an diesem Konto angemeldet'
    2. This account is currently being used in 1 other location at this IP ().
  5. add access throttling feature
    • limit the number of page requests by a single IP address within a given time interval
  6. add array for 'default' AND 'user' menu so both can used independently (create/edit menu sets)
  7. rewrite_mode setting in AP is pointless if it is overwritten in Setting class

2.4. Fix

  1. check for avoidable SQL roundtrip queries
  2. link() -> default: $anchor_link - should only active inside page_body (?)
    • additional check if its better to prefix the id="doc.deutsch.konfiguration"
      • to avoid unintentional mix with CSS settings
    • set anchor id only where needed, minimizes also size of attributes
  3. broken list in tree action if levels changes not in order - e.g. depth 1.2 -> depth 2.4
    1. show missing levels
  4. search?phrase="sourceforge.net" -> paging fails with "term to search"
  5. bug: news action takes all subpages - is this desired?
  6. improve search[link39] (open since ages), add some measures to improve relevance (time, size, user, filter, ...) and provide more and better meta data for search results
  7. implement rating hack (but without mandatory JS)
    1. https://www.youtube.com/watch?v=orPVEAipz2A
  8. add unique log message key to filter events (messages may differ)
  9. add regex for this->config['users_page']/[*]/
    • Yet the engine does not validate the namespace for the user cluster, so that nobody can create a page under /User except his own [UserName]
    • Then we can disallow random pages for the first level in the users cluster except the own [UserName].
    • The register action creates this page usually for the user.

2.5. Notifications

  1. Notifications[link40]

2.5.1. Notice digest

2.6. Handler

  1. clone entire cluster is only available for Admins atm., it should also available for ...
  2. improve global upload settings
    1. allow groups
    2. set individual rights (only images, quota, etc. for a user, group)
  3. send page as email (like print)
  4. show: add option 'Flag as Spam/Inappropriate'
  5. show: Delayed Indexing delay_index
    • <meta name=“robots” content=“noindex,nofollow”>
  6. see upload[link41] subpage
    1. upload: check if the MIME type of the uploaded file matches the file extension
      1. https://www.owasp.org/index.ph[...]stricted_File_Upload[link42]
      2. https://www.acunetix.com/websitesecurity/upload-forms-threat/
      3. https://www.php.net/manual/en/[...]n.exif-read-data.php[link43]
    2. upload: add form field to chose another file name (?)
    3. upload: add accept attribute depending on config settings https://www.w3.org/TR/html5/fo[...]ml#attr-input-accept[link44]
  7. add meta handler namespace ['page', 'account', 'file', 'service']
    • This is the simplest way to standardize document locations and for the language-independent single instances of service pages, like login. Next step is the separated cluster for those pages, linked with prefix, for example, ((service:login)).
    • this can be easily done with the new URI router
    • handler/account/
  8. file: apply access restrictions for global files if Wiki is closed -> $
    1. add and enforce global Wiki mode, minimum access rights
    2. route global files only for registered users

2.7. Action

  1. template toc and tree

2.8. Formatter

  1. Search Highlighter
  2. ((/Users/WikiAdmin UserSpace | WikiAdmin)) -fails on |
  3. <# #> adds <!--notypo--> on first and <!--/notypo--> on second appearance of double quote like class=~""
    1. caused by race condition in wacko_preprocess()
    2. <#<div class="" style="background:transparent; border:.1em solid #F66; border-left:1em solid #F66; box-sizing:border-box; margin:.5em 0; overflow:hidden; padding:.5em; text-align:left; width:auto;">Unter den Btrfs-spezifischen Anpassungen (1, 2) waren einige, die Latenz- und Stabilitäts-Probleme beseitigen, die bei knapp werdendem Speicherplatz auftreten können.</div>#>
      2
      <#<div class="" style="background:transparent; border:.1em solid #fcfce9; border-left:1em solid #fcfce9; box-sizing:border-box; margin:.5em 0; overflow:hidden; padding:.5em; text-align:left; width:auto;">Unter den Btrfs-spezifischen Anpassungen (1, 2) waren einige, die Latenz- und Stabilitäts-Probleme beseitigen, die bei knapp werdendem Speicherplatz auftreten können.</div>#>		
    3. <!--notypo--><div class="<!--notypo--> style="background:transparent; border:.1em solid #F66; border-left:1em solid #F66; box-sizing:border-box; margin:.5em 0; overflow:hidden; padding:.5em; text-align:left; width:auto;">Unter den Btrfs-spezifischen Anpassungen (1, 2) waren einige, die Latenz- und Stabilitäts-Probleme beseitigen, die bei knapp werdendem Speicherplatz auftreten können.</div>#><br />2<br /><#<div class=<!--/notypo-->" style="background:transparent; border:.1em solid #fcfce9; border-left:1em solid #fcfce9; box-sizing:border-box; margin:.5em 0; overflow:hidden; padding:.5em; text-align:left; width:auto;">Unter den Btrfs-spezifischen Anpassungen (1, 2) waren einige, die Latenz- und Stabilitäts-Probleme beseitigen, die bei knapp werdendem Speicherplatz auftreten können.</div><!--/notypo--><br />		
  4. Wacko is spamming BRs, in between everything
  5. add option to hide protected links
    • You must login to see this link. Register now, if you have no user account yet.
  6. Error: Bad value 4 for attribute type on element ol.
    1. see $new_indent_type in wackoformatter -> error prone
      •   1. hallo
            5. should not take the number but 1, same for i, I, a, A		
    2. Block elements inside inline elements
    3. http://www.w3.org/TR/html5/gro[...]nt.html#attr-ol-type[link45]
  7. allow case insensitive matching of file links, e.g. File:image.jpg
  8. breaks quote
    <[http://www.example.com]>		
  9. <[ ]> eats blank line in quote, undesired
  10. broken nested quote
    • <[block
      <[nested quote]>
      quote
      ]>		

2.9. Admin Panel

  1. upload module
    1. PAY ATTENTION TO SECURITY RISKS
      
      
      Before adding random file/MIME types: please think about possible security issues.
      
      For example HTML (.htm, .html), JavaScript (.js) and PHP (.php) file are types you’d better avoid as they can be “executed” on your server where you really would not want that to happen. For most of these kind of files, this should not be a problem though as these files are better off being compressed into a ZIP file anyway.
      
      Only add file types that you REALLY need and that you are comfortable with.		
  2. add module to filter, moderate and manage pages, comments, (files)
    1. see modules for content like pages
  3. recovery mode: CSS and images won't load
    • index.php: (!$db->ap_mode && RECOVERY_MODE) excludes static files!
      • !$db->ap_mode
  4. purge logs (TRUNCATE)
    1. log table
    2. referrers
    3. badbehavior
    •  <thead class="data-head">
              <tr class="">
              </tr>
              [...]
          </thead>
      
      <tbody id="table-section-one">
      [...]
      </tbody>
      
      <tbody id="table-section-two">
      [...]
      </tbody>		

2.10. Usability issues

  1. add double-click support for editing comments
  2. When should I use a select box instead of radio buttons?
    1. https://www.nngroup.com/articl[...]es-vs-radio-buttons/[link46]
  3. Not indicating an active form field
    • e.g.
      textarea:focus {
          border: 1px solid red; }		
    • You can use the ‘:focus’ selector on lots of elements, but it’s super handy when used on inputs and textareas to indicate that the field is active. Add CSS styling such as a highlighted border, or a subtle change to the background color.

Readings

  1. https://www.nngroup.com/articles/low-contrast/
  2. https://backchannel.com/how-th[...]eadable-a781ddc711b6[link47]

2.11. Ideas

  1. spam / badword handling -> bad_words($text) function
    1. https://en.wikipedia.org/wiki/Wordfilter
    2. https://stackoverflow.com/ques[...]ood-profanity-filter[link48]
    3. What you need is a good way for users to flag inappropriate content and a mechanism to deal with it swiftly. One way is to automatically hide/remove content if it's been flagged more than X times.
  2. rel="edit" -> https://tools.ietf.org/html/rfc686
  3. enforce ACL-Policy, e.g. set read to $, user can't overwrite the setting


3. Unscheduled

3.1. Most Annoying Bugs

3.2. Core

  1. Extended Acls[link49]
  2. if ($method && $method != "show") unset($wacko->config["youarehere_text"]);
  3. /Users/DidierSpaier/ProposedSpecificationsForLanguagesHolding[link50]
  4. rewrite search action

3.3. Formatters

  1. cleanwacko-> strip also file: links and formatter options (hl php ...)

4. Database


Implementation itself should not be that difficult, however it needs at least one major user.


5. Requests

  1. add function InviteGroup (allow/deny add/remove)
  2. receive all messages combined in one digest
    1. daily at
    2. once per week on
    3. once per month, on the day number
  3. option for allowed actions in comments
  4. move antispam.conf as badword to config