Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current version incompatible with hogfather #291

Open
MGChecker opened this issue Jan 31, 2024 · 3 comments · May be fixed by #294
Open

Current version incompatible with hogfather #291

MGChecker opened this issue Jan 31, 2024 · 3 comments · May be fixed by #294

Comments

@MGChecker
Copy link

[Wed Jan 31 19:50:39.904746 2024] [php7:error] [pid 513293] [client 10.5.0.1:44344] PHP Fatal error:  Uncaught Error: Class 'dokuwiki\\File\\PageResolver' not found in /var/lib/dokuwiki/lib/plugins/indexmenu/syntax/indexmenu.php:773
Stack trace:
#0 /var/lib/dokuwiki/lib/plugins/indexmenu/syntax/indexmenu.php(459): syntax_plugin_indexmenu_indexmenu->parseNs()
#1 /usr/share/dokuwiki/inc/parser/renderer.php(117): syntax_plugin_indexmenu_indexmenu->render()
#2 /usr/share/dokuwiki/inc/parserutils.php(673): Doku_Renderer->plugin()
#3 /usr/share/dokuwiki/inc/parserutils.php(142): p_render()
#4 /usr/share/dokuwiki/inc/parserutils.php(89): p_cached_output()
#5 /usr/share/dokuwiki/inc/template.php(1580): p_wiki_xhtml()
#6 /var/lib/dokuwiki/lib/tpl/vector/conf/boxes.php(84): tpl_include_page()
#7 /var/lib/dokuwiki/lib/tpl/vector/main.php(123): include('/var/lib/dokuwi...')
#8 /usr/share/dokuwiki/inc/actions.php(27): include('/var/lib/dokuwi...')
#9 /usr/share/dokuwiki/doku.php(122): act_dispatch()
#10 {main}
thrown in /var/lib/dokuwiki/lib/plugins/indexmenu/syntax/indexmenu.php on line 773, referer: https://wiki.cde-ev.de/dokuwiki/doku.php?id=start&do=admin&page=extension&tab=search&q=
@Klap-in
Copy link
Collaborator

Klap-in commented Jan 31, 2024

I try to support at least two releases of DokuWiki.
I guess the v2023-09-17 release of Indexmenu still supports your DokuWiki version.

https://github.com/samuelet/indexmenu/releases

@MGChecker
Copy link
Author

Is it possible to indicate compatibility of plugin versions with DokuWiki versions somehow, such that this can be made more clear?

@Klap-in
Copy link
Collaborator

Klap-in commented Jan 31, 2024

Good point, I indicated it on the wiki page and as note in the first release where the compatibility changed.

eduardomozart added a commit to eduardomozart/indexmenu that referenced this issue Feb 1, 2024
The class PageResolver doesn't exists on DokuWiki Hogfather and older releases, so this PR attempts to fix samuelet#291 by falling back to the old function "resolve_id" to parse NS if the class PageResolver isn't available.
@eduardomozart eduardomozart linked a pull request Feb 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants