From f48e7286dfa03877d251ac769267d6a27ab5d0ab Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 22 Sep 2025 16:57:35 +0500 Subject: [PATCH] bug fix: staging site issue --- websiteFunctions/website.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 3009305ae..751b52571 100644 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -223,7 +223,7 @@ class WebsiteManager: # Delete the staging Websites record and all associated data BEFORE deleting DB records from plogical.vhost import vhost - vhost.deleteVirtualHostConfigurations(staging_website.domain) + vhost.deleteVirtualHostConfigurations(staging_website.owner.domain) # Delete the WPStaging record wstagingDelete.delete() @@ -235,7 +235,7 @@ class WebsiteManager: staging_website.delete() except BaseException as msg: - da = str(msg) + logging.CyberCPLogFileWriter.writeToFile(f"Error cleaning up WP/Staging sites: {str(msg)}") proc = httpProc(request, 'websiteFunctions/WPsiteHome.html', Data, 'createDatabase')