Moved hosting to new server and getting 500 server error on the backend

Moved from Dreamhost to Cloudways with Digital Ocean server and getting the following error on any Server Actions:

{ "code": 1, "file": "/home/414917.cloudwaysapps.com/jybzphrvcm/public_html/dmxConnectLib/lib/formatters/collections.php", "line": 196, "message": "Cannot redeclare lib\\core\\formatter_values() (previously declared in /home/414917.cloudwaysapps.com/jybzphrvcm/public_html/dmxConnectLib/lib/formatters/collections 2.php:142)" }

Screenshot 2020-07-06 at 16.43.14

Different php version?

Perhaps collections 2.php is a file you’ve added to the formatters folder, and it contains a custom formatter called formatter_values() which already exists in the original collections.php.

If this is the issue, I don’t know why moving server would cause a problem which wasn’t already there, but it might be worth checking this anyway.

Seems a duplicate was made of all the dmx/wappler files in the appconnect and server connect folders

No idea how and why that would happen…