Many Error Messages after update to KANBOARD 1.2.43

Errors are

Warning: filemtime(): stat failed for <MyInstallation>plugins/MarkdownPlus/Assets/js/jquery.textcomplete.min.js in <MyInstallation>app/Helper/AssetHelper.php on line 26  
  
Warning: filemtime(): stat failed for <MyInstallation>plugins/MarkdownPlus/Assets/js/markdownplus.js in <MyInstallation>app/Helper/AssetHelper.php on line 26  
  
Warning: filemtime(): stat failed for <MyInstallation>plugins/MarkdownPlus/Assets/js/checkbox.js in <MyInstallation>app/Helper/AssetHelper.php on line 26  

And also:


Deprecated
: Optional parameter $css declared before required parameter $size is implicitly treated as a required parameter in
<myinstallation>/plugins/Boardcustomizer/Helper/DynamicAvatar.php
on line
26


Deprecated
: Optional parameter $css declared before required parameter $size is implicitly treated as a required parameter in  
<myinstallation>/plugins/Boardcustomizer/Helper/DynamicAvatar.php


So far my info / warning
More research and info coming later.

None of the messages is related to Kanboard 1 2.43.

Remember, these are undoubtedly the JavaScript files that are blocked by your Installation.
Please refer to my remark.

1 Like

I will check that js issue later.

Current results:

Deprecated - issue

Seems to be related to Plugin “Boardcustomizer”

My start Config:

  • Application version: 1.2.43 , installed at hoster All-Inkl

  • PHP version: 8.3.14-nmm1

  • PHP SAPI: fpm-fcgi

  • HTTP Client: cURL

  • OS Version: Linux 6.8.0-51-generic

  • Database driver: mysql

  • Datenbank Version: 10.11.8-MariaDB-0ubuntu0.24.04.1-log

  • Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:117.0a) Gecko/20100101 SeaMonkey/2.53.19, Build 20240329110002; Same with FF Trunk (135.0a1 (2024-12-24) (64-Bit)),

  • Profile Language: German - DU

  • Plugins:

    • AgileIndicators 1.4.0
    • AutomaticActionUX 2.6.0
    • Boardcustomizer 1.1.0
    • Broadcast 1.1.1
    • Calendar 1.5.0
    • Color Manager 3.7.0
    • Customizer 1.14.2
    • DefinitionOfDone 1.3.1 Beta
    • DueDate 1.2.1
    • Global Search Plugin for Kanboard 1.0.5
    • EnableAttachmentRenaming 1.1.2
    • Group_assign 1.8.2
    • KanboardSearchPlugin 1.1.0
    • MarkdownPlus 1.1.5
    • PasteImageToMarkdown 1.1.0
    • PluginManager 4.7.0
    • ProjectInvitation 1.0.0
    • Self-Registration 1.0.8
    • SubtaskDescription 1.1.3
    • TagManager 1.6.0
    • Task2pdf 1.8.0
    • Wiki 0.3.8

Removing Boardcustomizer makes the “Deprecated messages” disappear!

What also is said – more or less – in the Messages itself.
But why did that appear with KANBOARD 1.2.43?

Because someone™ has changed the error reporting.
Set it to:

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
1 Like

Where / in which file? I can’t find that string anywhere in a backup download from the affected installation.

“Warning” issue:

The “Warning: filemtime(): stat failed for …” disappears when I comment out …/Helper/AssetHelper.php line 26
But may be that workaround will cause problems at other locations? For example

  • I am no longer able to add Comments. No input area will appear after that workaround …
  • and I am on longer able to modify comments. No Edit Mode will appear

Maybe you can specify it in the all-inkl Console for that site.

Complete nonsense! You cannot solve this by uncommenting required code.

The “Warning: filemtime(): stat failed for …” means that those scripts were blocked/refused to deliver to your browser, and thus they cannot be invoked.

Solve the blocking issue and you’re fine.

I filed issues

*Plugin MarkdownPlus causes error messages starting with KANBOARD 1.2.43 #36

So we can end discussion here!

OK, glad to see that you could solve the issue with MarkdownPlus on your own.

The issue with Boardcustomizer is indeed a programming topic that should be solved by the plugin author.

EDIT: This should solve the issue:

diff --git a/Helper/DynamicAvatar.php b/Helper/DynamicAvatar.php
index 2651424..85c1c86 100644
--- a/Helper/DynamicAvatar.php
+++ b/Helper/DynamicAvatar.php
@@ -23,7 +23,7 @@ class DynamicAvatar extends AvatarHelper
         return '<div id="'.$css.'" class="avatar avatar-dyn '.$css.'">'.$html.'</div>';
     }
 
-    public function dynamic($user_id, $username, $name, $email, $avatar_path, $css = '', $size)
+    public function dynamic($user_id, $username, $name, $email, $avatar_path, $css, $size)
     {
         return $this->dynamicRender($user_id, $username, $name, $email, $avatar_path, $css, $size);
     }
@@ -44,7 +44,7 @@ class DynamicAvatar extends AvatarHelper
         return '<div id="'.$css.'" class="avatar avatar-bdyn '.$css.'">'.$html.'</div>';
     }
 
-    public function boardDynamic($user_id, $username, $name, $email, $avatar_path, $css = '', $size)
+    public function boardDynamic($user_id, $username, $name, $email, $avatar_path, $css, $size)
     {
         return $this->boardDynamicRender($user_id, $username, $name, $email, $avatar_path, $css, $size);
     }