Customizer icon indicating copy to clipboard operation
Customizer copied to clipboard

Customizer don't show my header logo and login logo

Open mohabaee opened this issue 3 years ago • 9 comments

Hello My customizer don't show my header logo and also my logo on login page. Also when I go to it's setting page and click on image assets and settings shows these errors: Header Avatar Icon

Deprecated: Required parameter $size follows optional parameter $css in /home2/jdiutir/public_html/kanban/plugins/Customizer/Helper/DynamicAvatar.php on line 26

Deprecated: Required parameter $size follows optional parameter $css in /home2/jdiutir/public_html/kanban/plugins/Customizer/Helper/DynamicAvatar.php on line 47 Please help me to solve it. Thanks

mohabaee avatar Jun 26 '22 15:06 mohabaee

looks like php errors. what version of customizer, and what is you servers php version?

creecros avatar Jun 26 '22 15:06 creecros

I use the last version of customizer and the PHP version on server is 8.0.2.

mohabaee avatar Jun 26 '22 17:06 mohabaee

that's interesting, as I don't get any errors in php 8 with latest customizer....do me a a favor and screen shot the plugin version and tour server config from kanboard founding settings. then I can take a look at try8ng to reproduce.

creecros avatar Jun 26 '22 22:06 creecros

I have sent you some screenshots from your information that you had requested before. Uploading 1.JPG… @creecros

mohabaee avatar Jun 27 '22 04:06 mohabaee

I'm not seeing any screenshots. and the only information you are giving me are warnings, not errors. also, if you look at the code of dynamicavatar.php, you will see that the optional parameters do come after the required parameters, so the warnings do not align with what I'm being told. help me, help you.

creecros avatar Jun 27 '22 04:06 creecros

https://file.io/TzfgELN3zPtj

mohabaee avatar Jun 27 '22 05:06 mohabaee

You can find screenshots in the link below: https://file.io/TzfgELN3zPtj

mohabaee avatar Jun 27 '22 05:06 mohabaee

image

you're making this somewhat difficult. paste the screenshot into the comment.

creecros avatar Jun 27 '22 06:06 creecros

Please follow these links below: https://s6.uupload.ir/files/1_aqfa.jpg https://s6.uupload.ir/files/2_lss1.jpg https://s6.uupload.ir/files/3_o2nn.jpg

mohabaee avatar Jun 27 '22 06:06 mohabaee

Tested with:

Configuration
Application version: v1.2.23
PHP version: 8.1.9
PHP SAPI: fpm-fcgi
HTTP Client: cURL
OS version: Linux 5.10.102.1-microsoft-standard-WSL2
Database driver: sqlite
Database version: 3.38.5
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

no issue found with plugin.

creecros avatar Sep 26 '22 12:09 creecros

I lied, I did find something, but it appears to be in kanboard itself, will need to investigate:

PHP message: PHP Deprecated:  Implicit conversion from float -0.5 to int loses precision in /var/www/app/app/Core/Thumbnail.php on line 130"

2022/09/26 12:04:12 [error] 15#15: *24 FastCGI sent in stderr: "PHP message: PHP Deprecated:  Implicit conversion from float -0.5 to int loses precision in /var/www/app/app/Core/Thumbnail.php on line 130" while reading response header from upstream, client: 172.17.0.1, server: localhost, request: "GET /?controller=AvatarFileController&action=image&user_id=1&hash=38c767f0ba2714eabd07043c04195168&size=48 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.2:41980"

Will look into.

in console:

 GET http://192.168.1.2:41980/?controller=AvatarFileController&action=image&user_id=1&hash=76ecda9…&size=30 404

creecros avatar Sep 26 '22 12:09 creecros

I lied, I did find something, but it appears to be in kanboard itself, will need to investigate:

PHP message: PHP Deprecated:  Implicit conversion from float -0.5 to int loses precision in /var/www/app/app/Core/Thumbnail.php on line 130"

2022/09/26 12:04:12 [error] 15#15: *24 FastCGI sent in stderr: "PHP message: PHP Deprecated:  Implicit conversion from float -0.5 to int loses precision in /var/www/app/app/Core/Thumbnail.php on line 130" while reading response header from upstream, client: 172.17.0.1, server: localhost, request: "GET /?controller=AvatarFileController&action=image&user_id=1&hash=38c767f0ba2714eabd07043c04195168&size=48 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.2:41980"

Will look into.

in console:

 GET http://192.168.1.2:41980/?controller=AvatarFileController&action=image&user_id=1&hash=76ecda9…&size=30 404

New pull request in Kanboard repo should take care of this once merged.

creecros avatar Nov 02 '22 13:11 creecros