[dokuwiki] Bug discovered and apparently resolved in editor plugin

  • From: Andreas Delleske <delleske@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 02 Mar 2009 13:47:42 +0100

Hi folx,

after an upgrade to the actual Dokuwiki version 2009-2-14 a week ago or two I got an error message on the page where I wanted to show the "recent changes" list - done by a tag "{{editor>?@ALL&user}}" and with the help of the installed plugins "editor" and "pagelist":

"The Pagelist Plugin must be installed for editor lists to work."

When googling for the source of that text string I found a reference to the following code inside the function "render()" inside /lib/plugins/editor/syntax.php


// use tag refinements?
if ($refine){
   if (plugin_isdisabled('tag')
      || (!$tag = plugin_load('helper', 'tag'))){
msg('The Tag Plugin must be installed to use tag refinements.', -1);

This part checks correctly for the plugin "tag" and behaves accordingly.

But we read some lines later:


// let Pagelist Plugin do the work for us
if (plugin_isdisabled('include')
   || (!$pagelist =& plugin_load('helper', 'pagelist'))){
msg('The Pagelist Plugin must be installed for editor lists to work.', -1);


The message says "The Pagelist plgin..." (exactly my message), but it checks for the "include" - plugin and not for the "pagelist" plugin as its maybe supposed to.

After changing that piece to

// let Pagelist Plugin do the work for us
if (plugin_isdisabled('pagelist')
   || (!$pagelist =& plugin_load('helper', 'pagelist'))){
msg('The Pagelist Plugin must be installed for editor lists to work.', -1);

it appears to work now for me - without understanding the whereabouts of the plugin. I wonder whether there is a plugin named "include" at all?

I hope the editor plugin developers can relate to it - and as it appears that I've not only found but resolved that bug I didnt create a bug ticket. Plus, I'm lazy.

To whom it may concern...

Thanks a lot for Dokuwiki anyway!

--
Best regards
Andreas
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: