GithubHelp home page GithubHelp logo

Comments (6)

fiwswe avatar fiwswe commented on June 25, 2024 1

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

if ($value[0] == 'fieldset') continue; //plugins only get one fieldset
could be more tolerant here. For example like this:

            if (($value[0] ?? null) == 'fieldset') continue; //plugins only get one fieldset

from dokuwiki.

fiwswe avatar fiwswe commented on June 25, 2024 1

PS. It could also be an installed template, not a plugin.

from dokuwiki.

Zweihorn avatar Zweihorn commented on June 25, 2024

May be linked to #4193 (comment)

from dokuwiki.

Zweihorn avatar Zweihorn commented on June 25, 2024

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.

Zweihorn avatar Zweihorn commented on June 25, 2024

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.

Zweihorn avatar Zweihorn commented on June 25, 2024

This is a bug of the a.m. template and this PR can be closed.

from dokuwiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.