REST API v2 issue with suitecrm7.13 and php8

Hi,
if you get the same error (Uncaught Error: Unknown named parameter $application_name) and you can’t downgrade php:

  • file /service/core/REST/SugarRestJSON.php
  • roughly line 94: look for the line $data = $json->decode($json_data);
  • add these lines directly after the found line:
if(array_key_exists('application_name', $data)){
 unset($data['application_name'];
}

this is just a fast workaround, it solved a login issue I had in a sandbox system, but I didn’t test anything further than that. Maybe there is also an approved fix already on github.