After moving to new server - i get error

We have use Cpanel copy and mostly work without problem. Only SuiteCrm has minor problems which was solved by my support and @outrightsystems
Main problem was that on new server we run only MySQL 8.0 and subpannels wasn’t working (also attached docunents isn’t show)
Post with similar problem on this forum

BUG report:

and FIX:

I hope that somebody would find this solution useful.
Best regards,
Martin