funktechno/kanboard-plugin-wiki

Plugin error

daivermaster opened this issue · 3 comments

  1. Install the plugin from the Kanboard plugin manager with one click.
  2. Create new wiki page.
  3. Click on wiki page.
  4. Got HTTP ERROR 500

/var/log/httpd/error_log:
[Mon Oct 29 16:59:58.945039 2018] [php7:error] [pid 13452] [client 10.20.0.1:60590] PHP Fatal
error: Class Kanboard\Plugin\Wiki\Model\WikiFile contains 1 abstract method and must ther
efore be declared abstract or implement the remaining methods (Kanboard\Model\FileModel::fir
eDestructionEvent) in /var/www/html/doska/plugins/Wiki/Model/WikiFile.php on line 10
9

/var/www/html/doska/data/debug.log:
[2018-10-29 13:59:58] [debug] Kanboard\Core\Controller\Runner::executeMiddleware
[2018-10-29 13:59:58] [debug] Subscriber executed: Kanboard\Subscriber\BootstrapSubscriber::execute
[2018-10-29 16:59:58] [debug] Kanboard\Core\Controller\BaseMiddleware::next => Kanboard\Middleware\AuthenticationMiddleware
[2018-10-29 16:59:58] [debug] Kanboard\Core\Controller\BaseMiddleware::next => Kanboard\Middleware\PostAuthenticationMiddleware
[2018-10-29 16:59:58] [debug] Kanboard\Core\Controller\BaseMiddleware::next => Kanboard\Middleware\ApplicationAuthorizationMiddleware
[2018-10-29 16:59:58] [debug] Kanboard\Core\Controller\BaseMiddleware::next => Kanboard\Middleware\ProjectAuthorizationMiddleware
[2018-10-29 16:59:58] [debug] Kanboard\Core\Controller\Runner::executeController => \Kanboard\Plugin\Wiki\Controller\WikiController::detail

Application version: master
PHP version: 7.3.0RC4
PHP SAPI: apache2handler
OS version: Linux 3.10.0-862.el7.x86_64
Database driver: sqlite
Database version: 3.7.17
Browser: Mozilla/5.0 (X11; Russian Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

What i lost?

Thank you.

your using the master, and in the master an abstract function has been added to the filemodel:

abstract protected function fireDestructionEvent($file_id);

this function does not yet exist in any released version of Kanboard.

That should fix it, and it seems to be fine on previous versions to add it. No idea if and when it will get merged.

Thank you.