"Cannot read properties of null" error when editing traefik env
To Reproduce
- Click "Web Server"
- Click "Traefik" > "Modify Environment"
- Add the following:
- Click "Update"
Current vs. Expected behavior
Current: Error "Cannot read properties of null (reading 'forEach')" Expected: No error when updating environment
Provide environment information
6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64 GNU/Linux
dokploy v0.24.12
Which area(s) are affected? (Select all that apply)
Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
No
Hey I couldn't reproduce the issue, can you try in the latest version?
https://github.com/user-attachments/assets/0b19c3e7-bc11-4661-b003-cd4cfa2287bf
Hey, thanks for checking! I'll try with the newest version. However, aren't you getting an error too, though?
is not the same error, the error are you seeing is because we reloaded traefik so we lost the connection between the domain we are connected and cloudflare(in my case) so that's the reason of the error, is a different error than yours
I haven't seen anyone else report this error in recent versions of dokploy. We've also made several changes to this, so I believe it's resolved. I'll close this thread; if you're still having the problem, we can reopen it.