kuerme / kanboard-theme-spectre

Modern And Simple CSS Theme For Kanboard
Creative Commons Attribution 4.0 International
16 stars 3 forks source link

Not compatible with version 1.2.10 in Docker #2

Open adrinux opened 5 years ago

adrinux commented 5 years ago

I'm running Kanboard 1.2.10 in docker. I've installed Spectre in plugins/Spectre by git clone from github. Kanboard finds the plugin bu declares it incompatible despite the fact ispactre says >= 1.2.10

Not clear whether this is a bug in Kanboard or Spectre...

adrinux commented 5 years ago

Here's the error log

2019/08/27 16:28:22 [error] 14#14: *4 FastCGI sent in stderr: "PHP message: PHP Warning:  filemtime(): stat failed for plugins/Spectre/skin.min.css in /var/www/app/app/Helper/AssetHelper.php on line 37" while reading response header from upstream, client: 172.18.0.3, server: localhost, request: "GET /extensions HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "kanboard.hps.perlucida.uk"

So the missing minified css file is the problem?

asros commented 4 years ago

Just change plugin.php from$this->hook->on('template:layout:css', ['template' => 'plugins/Spectre/skin.min.css']); to $this->hook->on('template:layout:css', ['template' => 'plugins/Spectre/skin.scss']);