• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Unable to load object of type PhDomain with id=12: O domínio não existe

ViaHosting

Basic Pleskian
After running Daily script task

D:\Plesk\admin\engine\php.exe -q "D:\Plesk\admin\plib\DailyMaintainance\script.php"


Messages at
D:\Plesk\admin\logs\php_error.log

[2019-11-05 12:00:01] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.:
0: D:\Plesk\admin\plib\Transactional.php:152
Transactional->reset()
1: D:\Plesk\admin\plib\Transactional.php:127
Transactional->execute()
2: D:\Plesk\admin\plib\Commands\CollectOutgoingMessagesStats.php:17
Commands_CollectOutgoingMessagesStats->collectStats()
3: D:\Plesk\admin\plib\DailyMaintainance\Task\StoreOutgoingMessagesStatistics.php:17
DailyMaintainance_Task_StoreOutgoingMessagesStatistics->run(array)
4: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:50
DailyMaintainance_Runner_Task->runTask(object of type DailyMaintainance_Task_StoreOutgoingMessagesStatistics, array)
5: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:27
DailyMaintainance_Runner_Task->run()
6: D:\Plesk\admin\plib\DailyMaintainance\task-script.php:13
[2019-11-05 12:00:01] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.



There is no domain_id=12 at domains table.
It was a test domain and was being deleted.
 
Try to fix this database inconsistency with

plesk repair db
 
Try to fix this database inconsistency with

plesk repair db


I did the DB repair.

There were some errors that where fixed.

In a second run, there is no errors.

Microsoft Windows [versão 10.0.17763.805]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.

C:\Users\Administrador>plesk repair db

Checking the Plesk database using the native database server tools .. [OK]
Checking the structure of the Plesk database ........................ [OK]
Checking the consistency of the Plesk database ...................... [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0


But remains the messages

[2019-11-13 16:00:01] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.:
0: D:\Plesk\admin\plib\Transactional.php:152
Transactional->reset()
1: D:\Plesk\admin\plib\Transactional.php:127
Transactional->execute()
2: D:\Plesk\admin\plib\Commands\CollectOutgoingMessagesStats.php:17
Commands_CollectOutgoingMessagesStats->collectStats()
3: D:\Plesk\admin\plib\DailyMaintainance\Task\StoreOutgoingMessagesStatistics.php:17
DailyMaintainance_Task_StoreOutgoingMessagesStatistics->run(array)
4: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:50
DailyMaintainance_Runner_Task->runTask(object of type DailyMaintainance_Task_StoreOutgoingMessagesStatistics, array)
5: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:27
DailyMaintainance_Runner_Task->run()
6: D:\Plesk\admin\plib\DailyMaintainance\task-script.php:13
[2019-11-13 16:00:01] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.
[2019-11-13 17:00:01] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.:
0: D:\Plesk\admin\plib\Transactional.php:152
Transactional->reset()
1: D:\Plesk\admin\plib\Transactional.php:127
Transactional->execute()
2: D:\Plesk\admin\plib\Commands\CollectOutgoingMessagesStats.php:17
Commands_CollectOutgoingMessagesStats->collectStats()
3: D:\Plesk\admin\plib\DailyMaintainance\Task\StoreOutgoingMessagesStatistics.php:17
DailyMaintainance_Task_StoreOutgoingMessagesStatistics->run(array)
4: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:50
DailyMaintainance_Runner_Task->runTask(object of type DailyMaintainance_Task_StoreOutgoingMessagesStatistics, array)
5: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:27
DailyMaintainance_Runner_Task->run()
6: D:\Plesk\admin\plib\DailyMaintainance\task-script.php:13
[2019-11-13 17:00:01] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.
[2019-11-13 18:00:02] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.:
0: D:\Plesk\admin\plib\Transactional.php:152
Transactional->reset()
1: D:\Plesk\admin\plib\Transactional.php:127
Transactional->execute()
2: D:\Plesk\admin\plib\Commands\CollectOutgoingMessagesStats.php:17
Commands_CollectOutgoingMessagesStats->collectStats()
3: D:\Plesk\admin\plib\DailyMaintainance\Task\StoreOutgoingMessagesStatistics.php:17
DailyMaintainance_Task_StoreOutgoingMessagesStatistics->run(array)
4: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:50
DailyMaintainance_Runner_Task->runTask(object of type DailyMaintainance_Task_StoreOutgoingMessagesStatistics, array)
5: D:\Plesk\admin\plib\DailyMaintainance\Runner\Task.php:27
DailyMaintainance_Runner_Task->run()
6: D:\Plesk\admin\plib\DailyMaintainance\task-script.php:13
[2019-11-13 18:00:02] ERR [panel] Unable to load object of type PhDomain with id=12: O domínio não existe.



This message is gerate every one hour.
 
where the plesk collect the information used by ?

D:\Plesk\admin\plib\Commands\CollectOutgoingMessagesStats.php:17
Commands_CollectOutgoingMessagesStats->collectStats()
 
Try to do the following:

Back up Plesk database by running the command from command-line:

C:\> "%plesk_dir%"\Mysql\bin\mysqldump.exe -uadmin -p<plesk_admin_password> -P8306 psa > %date:~-4,4%%date:~-7,2%%date:~-10,2%.psa.sql

Backup file %plesk_dir%\admin\plib\Service\Mail\OutgoingMessages\Windows.php

Download the attached file and unzip it.

Place the file from the previous step instead of %plesk_dir%\admin\plib\Service\Mail\OutgoingMessages\Windows.php
 

Attachments

  • Windows.zip
    4 KB · Views: 4
Try to do the following:

Back up Plesk database by running the command from command-line:

C:\> "%plesk_dir%"\Mysql\bin\mysqldump.exe -uadmin -p<plesk_admin_password> -P8306 psa > %date:~-4,4%%date:~-7,2%%date:~-10,2%.psa.sql

Backup file %plesk_dir%\admin\plib\Service\Mail\OutgoingMessages\Windows.php

Download the attached file and unzip it.

Place the file from the previous step instead of %plesk_dir%\admin\plib\Service\Mail\OutgoingMessages\Windows.php


IgorG,

After replace the windows.php file, there is no more messages about object with id=12.

Thanks for your help.
 
Back
Top