[dokuwiki] Re: Recent changes broken

  • From: chris <jugg@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 10 Oct 2006 16:11:50 -0700

Guy Brand wrote:

  The check shows "Old changelog exists." first time I load the start
  page. Reloading it, shows the same "Old changelog exists." message
  and also "Old changelog imported." and "Importoldchangelog plugin
  not disabled after import.", and do=recent is still empty. The
  plugin appears in the list, but is checked so still active.

Re: "Importoldchangelog plugin not disabled after import"

This is because the web server has to have write permissions to the importoldchangelog plugin folder, to 'touch' the necessary "disabled" file to keep the plugin from being loaded.

in ./lib/plugins/importoldchangelog/action.php
  function importoldchangelog_plugin_shutdown():
    plugin_disable('importoldchangelog'); // only needs to run once

in ./inc/pluginutils.php
  function plugin_disable($name):
    return @touch(DOKU_PLUGIN.$name.'/disabled');

So, I don't know whether this should be considered a bug in the plugin, in dokuwiki, or if its simply required that the ./lib/plugins hierarchy be writable by the web server.

In the mean time, just touch ./lib/plugins/importoldchangelog/disabled manually to get rid of the warning.

chris

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

Other related posts: