Error in nagvis after upgrading Ubuntu to 20.04 (LTS)

I checked with one of my 20.04 systems and had no problem with 1.6.0p20 on this machine.
What PHP version do you use in your system? I have the default 7.4 on my machine.