add option to set font root size (small – standard – big) (0.875rem -> 1rem -> 1.25rem)
What makes this so ambivalent is that we all use different devices with various resolutions and may also adjust the viewport (e.g. scaling to 125% in the desktop environment or the browser).
designer control / user agency
3. Core
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.
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.
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
apimax_peak
5.513 MB
≤ 1.2 MB
pageavg_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)
Error loading WackoWiki DBAL: could not establish database connection. -> show also hint when error reporting is off instead of showing a blank page.
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?)
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.
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?
$utc_time = DateTimeImmutable::now('UTC');
$now = new DateTimeImmutable('now', new DateTimeZone('UTC'));
ensure that the installer also runs without JS (Do the Lynx test!)
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
sql_mode 'session strict' lets installer stall with MariaDB (debug!), going back and changing it to 'server (default)' and it works
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()?
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
user pages: only the user should be able to write and create sub-pages by default in his namespace
validate username
use dbal also for installer: $db->sql_query($sql)
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
show error message if variable $fatal_error is true
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
it is possible to move comments to a forum main page and then they become inaccessible for the moderation handler, the only way is then to change to comment_on_id in the database to another accessible forum page – FIXME
the has_access() validation for the lock/unlock feature as well as for the indicator needs a special option for the Admin and the page owner, both have always access, and the handler always assumes only system read & comment defaults, so it won't show the correct indicator and lock/unlock mode
a forum or a topic however allows individual read and comment rights
export.xml: add option for cluster and if the handler should show the xml or offer it for direct download, some browsers modify the XML in presentation mode or show it as feed – however the user needs the original source text including the line feeds!
send notice on comment edit and make change visible in actions like it is done for pages, to not miss possible important content changes
diff: add page title to diff
print: pass arguments? e.g. ?phrase=canonical&lang=&p=2
add feature to move attachments between pages and global, useful for page and content refactoring
rename: cluster
update bookmarks in user session
update link table
6. Action
search: improve search[link9], highlighting, ideographic languages
add regex search option and feature (similar to admin_replace)
add more filters
registration: add option to enforce certain user name patterns
blog: improve options, sorting and filtering, add content templates
paragraphs: add option to set permalinks to paragraphs (to page version) for export (PDF) or other external reference
forums: check not only for deleted topic but also for deleted comment in last comment query
gallery: add media query for small displays
add filter like in files action
usersettings: Sessions – [Log Out Everywhere Else] You are only logged in at this location.
search: add help for search syntax, e.g. “exact phrase”, operators (+, -, *), ...
edit and comment: allow inline usage to be included in text without line break, template however is parsed in a way that it always produce line breaks and a new paragraph (evaluate)
7. Formatter
<blockquote> nesting, should allow the nesting of another <blockquote> or code block via
syntax
this includes also the conversion from and to Markdown (see WikiEdit markup-conversion.js)
the WackoFormatter often eats intended blank lines (live preview shows them)
turnoff option should also affect all page related comments
interference with other syntax, e.g. striketrough
Unicode context
create test cases
multi-line strikethrough (marker similar) may break correct tag nesting and parsing, how this should work anyways across paragraphs, lists, etc. by only wrapping it via <del> tag
WikiEdit as well the Formatter must recognize a new paragraph, list as terminators to avoid invalid tag nesting!
there is a working patch, however the current workaround for the random <dt> to <dd> tag transition, prevents wiki text formatting
add option to wrap caption around code blocks (DONE) and option to enable / disable <figcaption> like caption=0|1
HTML
<figure><figcaption>Language of code</figcaption><pre><code><!-- your code here --></code></pre></figure>
str_replace("\xc2\xa0", " ", $string);
(nbsp;)
removes intentional left empty lines inside info formatter (see paragrafica class)
Go Back[link12] goes back two levels, but should go to parent page only
interwiki links are not tracked
relative links were not parsed in the context of the page they are included, what is the default behavior?
re-parsing all pages and links may result in wrong toc references, when the included page gets parsed after the page which includes them
HOTFIX: save all included pages with wrong toc reference again, this will update body_toc
add debug to WackoFormatter to check where it breaks, e.g. returns only white page after saving page
add example text the formatter fails on
if you set the text in ##
## it shows the content, happens usually with large bodies of texts like a transcript
* is this caused by a timeout, memory or other other cause (?)
* evaluate syntax for label tag (aka badges), like text marker however with special border, ##!!(label-blue)Feature!!##
* cite syntax ##!!## uses ##<span>## (better)
* mark syntax ##??## uses ##<mark>##
*
> 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
*