You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the current "Kaos" [55.1] with the current sprintdoc 2024-03-12 template produces a "E_WARNING: Undefined array key 0" warning in the log file when the "Configuration Settings" page is accessed.
The culprit was found as the insufficient "Configuration Metadata" in file lib/tpl/sprintdoc/conf/metadata.php last line.
After changing the last line to $meta['copyright'] = array(''); there is no warning in the log file. The "Configuration Settings" page works without issue and shows the intended behaviour with the "tpl»sprintdoc»copyright" setting.
The a.m. syntax change is in accordance with https://www.dokuwiki.org/devel:configuration#classes and provides a "Default class ('setting'), textarea" definition. This avoids the 'null' reference and should meet the expectations.
Issue Description
Using the current "Kaos" [55.1] with the current sprintdoc 2024-03-12 template produces a "E_WARNING: Undefined array key 0" warning in the log file when the "Configuration Settings" page is accessed.
The culprit was found as the insufficient "Configuration Metadata" in file
lib/tpl/sprintdoc/conf/metadata.php
last line.After changing the last line to
$meta['copyright'] = array('');
there is no warning in the log file. The "Configuration Settings" page works without issue and shows the intended behaviour with the "tpl»sprintdoc»copyright" setting.The a.m. syntax change is in accordance with https://www.dokuwiki.org/devel:configuration#classes and provides a "Default class ('setting'), textarea" definition. This avoids the 'null' reference and should meet the expectations.
See dokuwiki/dokuwiki#4252 for full bug report and dokuwiki/dokuwiki#4252 (comment) for my proposed solution.
Voila.
🌻
The text was updated successfully, but these errors were encountered: