Symptoms
- Plesk Obsidian running on a Windows Server
- One of the following errors is shown when logging into the Plesk GUI:
ERROR: Call to a member function getAttribute() on a non-object (DefPackageMng.php:231)
ERROR: Call to a member function getAttribute() on null (DefPackageMng.php:258)
Cause
The file %plesk_dir%admindbdefpackagemng.xml
is either absent or corrupted.
Resolution
- Connect to the server via RDP
- Move the file to another location (if it exists)
- Run Command Prompt as the Windows Administrator
- Execute the command below to regenerate the
defpackagemng.xml
file:C:> "%plesk_bin%defpackagemng.exe" --get --force