I have migrated my moodle from a cpanel server to a fastpanel server.
I moved the wwwroot dir, moodledata dir and sql database just fine.
I then went to turn maintenance mode off on the new server and received this error after I added in the debug options on config.php
$a contents: syntax error, unexpected ':', expecting ')'
Stack trace: * line 4392 of /lib/outputrenderers.php: ParseError thrown
* line 632 of /lib/setup.php: call to require_once()
* line 34 of /config.php: call to require_once()
* line 28 of /admin/cli/maintenance.php: call to require()
I searched for this and noticed I had php7.4 install on the new fastpanel server and php8.0 on the old Cpanel server. I installed php8.0 on the new server and still received the same error.
What should I try next?
Thanks in advance