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 {{menu system=1}} 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, 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)
update default settings of options, some options are mostly more annoying than useful, e.g. (c)
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!
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;
> ```
8. Cache
9. 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
10. Database
Listing JOINS with no index: log_queries_not_using_indexes
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
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
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
search cursor moves out of visible part in textarea -> synchronize focus properly (might be an switch issue to wide mode)
select and remember the color of the highlighter or marker, keep selected color in session
do not set multi-line markup beyond paragraph, list and other terminators, only valid tag nesting
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 ???
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.
Inline code content is literal: it is HTML-escaped and displayed as typed, without processing wiki markup, HTML, links, actions, macros, or typography. Macros inside code spans are also not resolved when the page is saved.
Delimiters may contain two or more # characters. The closing delimiter must be a maximal run of exactly the same length as the opening delimiter; shorter runs are ordinary content. To include ## literally, use a longer delimiter:
### ## code ## ### -> <code>## code ##</code>
For example, #### code #### uses a four-# delimiter; it is not an escaped ##. Delimiters cannot be escaped in any other way.
To nest code fences in WackoWiki without breaking rendering, the outer fence must be strictly longer than the longest fence sequence inside it, or use a different fence character (percent signs vs. backticks).
Wacko Markup Rule: A fenced code block ends at the first line with at least as many of the same fence character as the opening fence. Using the same length for nested blocks causes the parser to close the outer block prematurely, leaking the rest of the content as live Wacko Markup.
Solutions:
k+1 Rule: If the inner content contains a fence of length k (e.g., 2 percent signs), use a fence of length k+1 (e.g., 3 percent signs) for the outer block.
Character Switch: Use backticks (``) for the outer fence if the inner fence uses percent signs (%%), as they cannot close each other.
New inline code syntax rules
##code##-><code>code</code>Inline code content is literal: it is HTML-escaped and displayed as typed, without processing wiki markup, HTML, links, actions, macros, or typography. Macros inside code spans are also not resolved when the page is saved.
Delimiters may contain two or more
#characters. The closing delimiter must be a maximal run of exactly the same length as the opening delimiter; shorter runs are ordinary content. To include##literally, use a longer delimiter:### ## code ## ###-><code>## code ##</code>For example,
#### code ####uses a four-#delimiter; it is not an escaped##. Delimiters cannot be escaped in any other way.Code-block delimiters (Length-Based Code Fence Nesting)
To nest code fences in WackoWiki without breaking rendering, the outer fence must be strictly longer than the longest fence sequence inside it, or use a different fence character (percent signs vs. backticks).
Wacko Markup Rule: A fenced code block ends at the first line with at least as many of the same fence character as the opening fence. Using the same length for nested blocks causes the parser to close the outer block prematurely, leaking the rest of the content as live Wacko Markup.
Solutions:
``) for the outer fence if the inner fence uses percent signs (%%), as they cannot close each other.