I had to delete composer entirely in plesk extensions then reinstall it to solve this issue. after having the same issue as yourself, though mine resulted from moving the root folder of the subdomain, it could no longer find the composer.json and was not getting the new document root in PHP...