Comments (6)
The root cause seems to be that some plugin apparently has some weird/illegal data in its …/conf/metadata.php
file.
$meta
is assumed to be an array
of key => value
tuples with each value being an array
with at least one element. See Configuration Metadata
Which plugins do you have installed?
And which one does not conform to the defined standard?
However
dokuwiki/lib/plugins/config/core/Loader.php
Line 216 in 4c1ed9d
if (($value[0] ?? null) == 'fieldset') continue; //plugins only get one fieldset
from dokuwiki.
PS. It could also be an installed template, not a plugin.
from dokuwiki.
May be linked to #4193 (comment)
from dokuwiki.
THX @fiwswe
Culprit found as the template sprintdoc in lib/tpl/sprintdoc/conf/metadata.php
last line as follows:
<?php
$meta['sidebar_sections'] = array(
'multichoice',
'_choices' => array(
'h1',
'h1,h2',
'h1,h2,h3,h4,h5',
'li.level1 > .li',
),
);
$meta['header_layout'] = array(
'multichoice',
'_choices' => array(
'header-default',
'header-compact',
),
);
$meta['autocollapse'] = array('onoff');
$meta['closedwiki'] = array('onoff');
$meta['copyright'] = [];
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.
Voila.
from dokuwiki.
NB
A change to $meta['copyright'] = [''];
could be sufficient but I prefer a syntax in accordance with the https://www.dokuwiki.org/devel:configuration#classes definitions. Thus $meta['copyright'] = array('');
as above.
from dokuwiki.
This is a bug of the a.m. template and this PR can be closed.
from dokuwiki.
Related Issues (20)
- Warning: Trying to access array offset on value of type bool in /....../inc/Ui/Recent.php on line 165 HOT 3
- GeSHi highlight icon bug
- Spaces are not replaced with underscore (config setting) - forbidden blank page instead HOT 7
- JWT shouldn't be stored in cachedir HOT 3
- Fulltext search: Nonexistent keyword with ^namespace exclude yields all pages
- Page access control issue HOT 3
- Trusting X-Forwarded-*
- Plugin vshare does not show/load all youtube-Videos on different platforms HOT 1
- Portrait Images not displaying HOT 1
- Media Manager error with Release 2024-02-06a "Kaos" & Bootstrap3
- Automatically set the release date of bundled plugins to match that of DokuWiki HOT 1
- New line in text should be rendered as such and not appended to the line HOT 2
- RFC: Official Docker Image HOT 3
- DokuWiki can't be opened HOT 3
- GitHub actions triggered on forks
- DokuWiki 2024-02-06a has a stored XSS vulnerability HOT 14
- `firstimage` does not return correct values for images other than PNGs, JPEGs or GIFs HOT 3
- align url for lib/plugin members HOT 10
- Undefined array key 3 in ./inc/media.php on line 1700 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki.