Warning Message

After local installation and creating a first project its discription shows two warning messages:

Undefined variable $values in /var/www/app/app/Template/project_view/show.php on line 49

Undefined variable $errors in /var/www/app/app/Template/project_view/show.php on line 49

What do I need to do about it?

With that app/app, I think you have a messy installation. Please start over.
And give more detailed info, BTW.

I am an absolute newby and have trouble to translate your insight. The installation is on docker without any plugins.

Welcome to the forum.

I suppose you did something wrong. Did you follow the advices from the official doc?

Thank you. I will check the installation with the person who did it. He assumes that maybe the environment variable weren’t set right. I will respond once I have news on this.

Hello, I have encountered the same problem. Have you solved it yet? Here is my docker-compose.yml for reference. BTW, I use the latest image: Kanboard 1.2.51. If possible, could Mr. Alfredb also help me take a look@alfredb? Thanks.

name: kanboard
services:
  app:
    image: kanboard:latest
    container_name: kanboard
    restart: always
    ports:
     - "8080:80"
     - "8443:443"
    volumes:
     - kanboard_data:/var/www/app/data
     - kanboard_certs:/etc/nginx/ssl
     - ./plugins:/var/www/app/plugins
     - ./img:/var/www/app/assets/img
    environment:
     - DATABASE_URL=mysql://kanboard:kanboard-secret@db/kanboard
     - PLUGIN_INSTALLER=true

volumes:
  kanboard_data:
    driver: local
  kanboard_certs:
    driver: local

We were not able to resolve that issue. I keep ignoring the warnings.

@alfredb and @fred it is at least one bug. We encountered the same thing with a fresh docker installation. At some point some component started to throw those warnings. We did not investigate further, but these warnings shouldn’t show in the web ui. At least not in production. One can easily reproduce the behaviour running podman run -d --name kanboard -p 8080:80 -t kanboard/kanboard:v1.2.45 and then add a project, edit the description of it and when opening “Summary” those warnings will show. Most likely there are other places where this kind of warnings are shown.

I now had a quick look when this started. It apparently was introduced with version 1.2.41. I did not investigate deeply, but I suspect this change lead to that behaviour: feat: validate app config form values · kanboard/kanboard@f963866 · GitHub

So I think we have two issues here. First, it shouldn’t throw warnings which don’t affect functionality like that in the web ui and second, suppress any messages like that if run in production.

I’m happy to make a bug report, but I’m unsure if I should make two. What do you think?

@maba and @yumiko-zhang: We mitigated the issue by adding a file z.ini to /etc/php84/conf.d/ with display_errors = Off. We named it z.ini to avoid conflicts with the existing ini-files.

And here’s a link that might give you inspiration how to achieve that with docker: ansible-collection-rabe_foreman/roles/foreman/vars/hostgroups/vm-0041.service.int.rabe.ch.yaml at main · radiorabe/ansible-collection-rabe_foreman · GitHub

Cheers,
Simon

1 Like