JSON error in file uploading after upgrading PHP and MySQL version (v2018)

Hello,
I had an old application developed in 2018 version. It was working well but as soon as I upgraded PHP version, I get the following error message whenever I try to upload a file:
SyntaxError: Unexpected token ‘<’, “
”… is not valid JSON
Can someone help me out. I’m badly stuck as I lost the project file as well.
Regards

Which PHP version are you using now after upgrading? If you’re using PHP 8, then it might not work, since the script is generated by using Composer that used by PHPMaker 2018 is still not supported PHP 8.If you are using PHP 8, then you should use PHPMaker 2023 as the latest version of today.

You may follow Check HTTP Response.

I enabled debug mode and the following error is displayed:
Deprecated: define(): Declaration of case-insensitive constants is deprecated in C:\xampp\htdocs\iams\ewcfg14.php on line 17
There 1000s of lines repeating the same message. I’ve googled it and found that define() of case-insensitive constants is deprecated. My question is that how should I proceed and correct the messages? is there any shortcut or I have to go to each line and remove the ‘TRUE’ from each line.
Thanks again for the valuable feedback

Error deprecated means the code cannot be run with the current PHP version in your web server. You should use v2023 as the latest version of today.