Problems with Javascript

Hiho,

I’m using Kanboard, and lately I have trouble with js.
When I try to create subtasks or even new projects, no new window opens.

I get an error 500:

app.min.js?1561173783:1 GET http://kanboard.[…]/?controller=UserAjaxController&action=status 500 (Internal Server Error)

Only solution to date would be to restart the hole server

Greetings

did you check your webserver error files?
Enable the error_log on php.ini and check for php errors there.

Hello Kanboard writes an error like this.

[Tue Sep 24 10:55:50.669156 2019] [php7:error] [pid 15314] [client 172.16.0.147:59408] PHP Fatal error: Uncaught RuntimeException: Unable to write to the log file. in /var/www/html/kanboard-v1.2.10/app/Core/Log/File.php:45\nStack trace:\n#0 /var/www/html/kanboard-v1.2.10/app/Core/Log/Logger.php(76): Kanboard\Core\Log\File->log(‘debug’, ‘SQL: SELECT "da…’, Array)\n#1 /var/www/html/kanboard-v1.2.10/vendor/psr/log/Psr/Log/AbstractLogger.php(126): Kanboard\Core\Log\Logger->log(‘debug’, ‘SQL: SELECT "da…’, Array)\n#2 /var/www/html/kanboard-v1.2.10/app/Subscriber/BootstrapSubscriber.php(32): Psr\Log\AbstractLogger->debug(‘SQL: SELECT "da…’)\n#3 [internal function]: Kanboard\Subscriber\BootstrapSubscriber->__destruct()\n#4 {main}\n thrown in /var/www/html/kanboard-v1.2.10/app/Core/Log/File.php on line 45
[Tue Sep 24 10:55:52.356350 2019] [php7:warn] [pid 15316] [client 172.16.0.55:17085] PHP Warning: file_put_contents(data/debug.log): failed to open stream: No such file or directory in /var/www/html/kanboard-v1.2.10/app/Core/Log/File.php on line 44

[Tue Sep 24 11:24:50.125509 2019] [php7:error] [pid 16595] [client 172.16.0.147:59930] PHP Fatal error: Uncaught RuntimeException: Unable to write to the log file. in /var/www/html/kanboard-v1.2.10/app/Core/Log/File.php:45\nStack trace:\n#0 /var/www/html/kanboard-v1.2.10/app/Core/Log/Logger.php(76): Kanboard\Core\Log\File->log(‘debug’, ‘APP: nb_queries…’, Array)\n#1 /var/www/html/kanboard-v1.2.10/vendor/psr/log/Psr/Log/AbstractLogger.php(126): Kanboard\Core\Log\Logger->log(‘debug’, ‘APP: nb_queries…’, Array)\n#2 /var/www/html/kanboard-v1.2.10/app/Subscriber/BootstrapSubscriber.php(35): Psr\Log\AbstractLogger->debug(‘APP: nb_queries…’, Array)\n#3 [internal function]: Kanboard\Subscriber\BootstrapSubscriber->__destruct()\n#4 {main}\n thrown in /var/www/html/kanboard-v1.2.10/app/Core/Log/File.php on line 45

Turns out, after we changed the Config Entry “define(‘LOG_FILE’, ‘data’.DIRECTORY_SEPARATOR.‘debug.log’);” to “define(‘LOG_FILE’, ‘/var/www/html/kanboard/data/debug.log’);” it started to work again.