Re: Updating issues w/ pagetoc, multilanguage & Adapt skin
Petko Yotov <[email protected]>
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <[email protected]> |
Oh, the Adapt warning can be disabled if you just define a variable in config.php: $AdaptDemoViews = false; Petko On 09/04/2023 19:15, Petko Yotov wrote: > Since the last update of MultiLanguage for PHP 7.2 was mine, I have > now updated it on the Cookbook to fix the warning you reported. > > I don't use this recipe so if there are other things, let me know. > There is a new file multilanguage-php82.php that should work between > PHP 7.2 and 8.2 at least. > > > You can try replacing PageTableOfContents with the core PmTOC if you > want. Normally the latter should reuse any (:*toc:) directives left > from the former in your pages, but will ignore any arguments. See > documentation at: > > https://www.pmwiki.org/wiki/PmWiki/TableOfContents > > > Otherwise, the usual advice is to try and contact the authors or > maintainers of the recipes that need updating. These are the people > who are listed in the script itself, or on the "Maintainer:" line in > the Cookbook page, or from the page history you can see who last added > a new version, sometimes it is a different person. > > I haven't seen activity from the maintainers of these recipes for some > time, but you can try. > > If they are unavailable, and if the recipes are published with a > software license that allows modification and redistribution, we can > update them ourselves. > > The Adapt skin is popular, so if the maintainer cannot update it, I > will. > > Petko > > > On 09/04/2023 16:36, Donald Z. Osborn wrote: >> My host upgraded to PHP 8 a little while back, and I'm just getting to >> updating my PmWiki installation (thank you, Petko, for the new >> versions). After resolving a few issues, there are 3 that have me >> stumped: >> >> "Warning: Undefined variable $format in >> /misc/32/000/115/128/8/user/web/donosborn.org/pmwiki/cookbook/pagetoc.php >> [1] on line 188" >> >> -> -> That is line 188 in the current version of pagetoc.php, so I'm >> guessing there is some interaction with another line somewhere that is >> the problem? >> >> "Warning: Undefined array key "languages" in >> /misc/32/000/115/128/8/user/web/donosborn.org/pmwiki/cookbook/multilanguage.php >> [2] on line 78" >> >> -> Not clear to me how to define an array key or where >> >> "Warning: Undefined array key "AdaptDemoViews" in >> /misc/32/000/115/128/8/user/web/donosborn.org/work/pub/skins/adapt/adapt.php >> [3] on line 97" >> >> -> Another array key issue, this one with the Adapt skin. >> >> Thank you in advance for any advice. >> >> Don Osborn >> >> Ref.: The site is https://donosborn.org/work/ (content revisions are >> planned)