The directory tracking database is synchronized with Plesk using the Plesk XML-RPC API. Under certain circumstances, this API may produce errors that Patchman can't resolve or work around, and require manual action to solve within Plesk. This article lists some known error messages and resolutions.
ERROR: Call to a member function isDefault() on null (Domain.php:748)
This problem is caused by database inconsistency in the Plesk database, particularly in PHP setting configuration. You can fix this problem by manually running the following command (as root), executing a fixing query on the Plesk backend database:
plesk db "insert into PhpSettings (id, noteId) (select value, 0 from SubscriptionProperties where name = 'phpSettingsId' and value not in (select id from PhpSettings));"
In older versions of patchman-client, this error was incorrectly ignored and various directories and users may not have been synchronized to the Patchman directory tracking database. Starting with version 1.5.0, this error produces failure warnings in the Patchman logfile (/var/log/patchman/patchman.log) for the directory synchronization task.
Missing result element in site request
ERROR: Plesk returned an erroneous response, missing result element ERROR: Plesk response: '<?xml version="1.0" encoding="UTF-8"?> <packet version="184.108.40.206"><site><get/></site></packet> '
This problem is caused by a bug in older versions of the Plesk API, which was used in Patchman up to version 1.5.4. You can fix the problem by updating to a more recent version of Patchman.