Old scripts need to be installed.
It is installed on centos7 + php5.6.
There was an issue migrating to the server where aapanel was installed. So I tried a fresh install, and the same issue as the image is occurring.
How to solve it? This script only works with php5.6.

There were no issues at the time of transfer to centos7 + php5.6 server.