Deleted (disabled) site keeps sending scheduled emails #955
-
|
Hello, I manage 100+ sites in the same Panopticon instance. Only one deleted site keeps sending a daily email at 00:00. What I did so far
Question
Thanks for a quick clarification. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Which database? Which table? What are the record's contents?
What email schedule? Which database table? What are the record's contents? |
Beta Was this translation helpful? Give feedback.
-
Record
Record content INSERT INTO `pXXX_sites` (`id`,`name`,`url`,`enabled`,`created_on`,`created_by`,`modified_on`,`modified_by`,`locked_on`,`locked_by`,`config`,`notes`) VALUES
(
19,
'example-site.tld',
'https://www.example-site.tld/api',
0,
'2024-05-08 09:29:14',
1,
'2026-02-02 09:03:46',
1,
NULL,
NULL,
'{
"config": {
"core_update": {
"install": "minor",
"when": "immediately",
"email_after": true,
"email_error": true,
"time": { "hour": 0, "minute": 0 },
"backup_on_update": "1",
"backup_profile": "1"
}
},
"groups": ["1"]
}',
''
);This is what I referred to as the email schedule. Content of the mail tells me that there is an extension update:
|
Beta Was this translation helpful? Give feedback.
-
|
OK, thanks. That confirms the root cause is a classic PEBKAC situation ;). |
Beta Was this translation helpful? Give feedback.
When you delete a site it's deleted; gone. It doesn't simply get unpublished. Moreover, when you delete a site it does not matter if the site was published or not; it's gone.
When you delete a site, its tasks are deleted as well. The
#__taskstable has a foreign key on site_id referencing#__sites(id)withON DELETE CASCADE. When a site row is deleted, MySQL automatically deletes all tasks belonging to that site.Unpublished sites will not have update checks run or emails sent (with caveats, as we will see below). There are two layers of protection: