fix(cyberpanel): use addChildDomain instead of createWebsite for domain mapping#1081
fix(cyberpanel): use addChildDomain instead of createWebsite for domain mapping#1081superdav42 wants to merge 1 commit intomainfrom
Conversation
…in mapping createWebsite was creating a separate, independent website on CyberPanel with its own empty document root. Mapped domains showed CyberPanel's default empty-site page instead of the WordPress multisite content. Changed to addChildDomain which adds the domain as a child of the master domain, sharing the same document root. This matches the alias/child pattern used by all other hosting integrations (cPanel, Plesk, Hestia, RunCloud, Cloudways, Closte). Also updated delete to use deleteChildDomain and SSL issuance to target the master domain. Resolves #1071
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 10 minutes and 8 seconds.Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
Performance Test Results Performance test results for 99b254d are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
|
DISPATCH_CLAIM nonce=b7f6ec7034e907be38f4777a56bae10a runner=superdav42 ts=2026-05-03T18:11:14Z max_age_s=1800 version=3.14.25 |
|
DISPATCH_CLAIM nonce=0ff12a73e3eb500deb6612be314502ee runner=superdav42 ts=2026-05-03T18:11:53Z max_age_s=1800 version=3.14.25 |
|
DISPATCH_CLAIM nonce=07ab31193d16f02047e0037ff7514e92 runner=superdav42 ts=2026-05-03T18:20:51Z max_age_s=1800 version=3.14.25 |
|
DISPATCH_CLAIM nonce=2d7296840021e060862005825997852b runner=superdav42 ts=2026-05-03T18:21:32Z max_age_s=1800 version=3.14.25 |
|
DISPATCH_CLAIM nonce=02efe2cd384b9ef684b55826899490de runner=superdav42 ts=2026-05-03T18:24:31Z max_age_s=1800 version=3.14.25 |
|
DISPATCH_CLAIM nonce=8d4d6a01d16374cf201790d7317bda5f runner=superdav42 ts=2026-05-03T18:25:09Z max_age_s=1800 version=3.14.25 |
|
DISPATCH_CLAIM nonce=ae7160b2b26d9ed54cb3526d40af8133 runner=superdav42 ts=2026-05-03T18:31:20Z max_age_s=1800 version=3.14.27 |
|
DISPATCH_CLAIM nonce=bbb6e638deb4c5439b706b0afdd88d5e runner=superdav42 ts=2026-05-03T18:32:00Z max_age_s=1800 version=3.14.27 |
|
DISPATCH_CLAIM nonce=3ed29e98f92e98d7f3af36b28a6dc9ca runner=superdav42 ts=2026-05-03T18:41:23Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=83dca9a4cc652aab5a63c92669153e13 runner=superdav42 ts=2026-05-03T18:51:16Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=4fc8d651ea07d800e9437c1a2f925141 runner=superdav42 ts=2026-05-03T18:51:58Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=7b98b72dae6f9d1d2bfa4ce7f0bdc5c0 runner=superdav42 ts=2026-05-03T18:55:02Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=2e5e8eb08bd9cce908eabd135323fbca runner=superdav42 ts=2026-05-03T18:55:41Z max_age_s=1800 version=3.14.29 |
|
@coderabbitai review aidevops.sh v3.14.29 plugin for OpenCode v1.3.17 with claude-opus-4-6 spent 3h 15m and 14,523 tokens on this with the user in an interactive session. |
|
Tip For best results, initiate chat on the files or code changes.
[review] |
|
DISPATCH_CLAIM nonce=6663dc1da5232643cc932e2a60acf4aa runner=superdav42 ts=2026-05-03T19:01:04Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=066412cd8198b8c19ac399d6ec7eb862 runner=superdav42 ts=2026-05-03T19:01:41Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=14a51a13ec01c725df253b66b44557a2 runner=superdav42 ts=2026-05-03T19:04:32Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=3ee2bc38aadc37ac78f19074f23bf428 runner=superdav42 ts=2026-05-03T19:05:10Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=c7fb849629bd73572e183b8da475b128 runner=superdav42 ts=2026-05-03T19:07:45Z max_age_s=1800 version=3.14.29 |
|
DISPATCH_CLAIM nonce=c458ddfa7047f07e819c8d96c1d31a5a runner=superdav42 ts=2026-05-03T19:31:13Z max_age_s=1800 version=3.14.31 opencode_version=1.3.17 |
|
DISPATCH_CLAIM nonce=fbb7080cf06aa35b70649f02226ed8e6 runner=superdav42 ts=2026-05-03T19:31:56Z max_age_s=1800 version=3.14.31 opencode_version=1.3.17 |
|
DISPATCH_CLAIM nonce=8448720b4de77a7dd596ef91648120b0 runner=superdav42 ts=2026-05-03T19:34:55Z max_age_s=1800 version=3.14.31 opencode_version=1.3.17 |
|
DISPATCH_CLAIM nonce=188f7435e7bfef3801e356326ca45950 runner=superdav42 ts=2026-05-03T19:35:37Z max_age_s=1800 version=3.14.31 opencode_version=1.3.17 |
|
DISPATCH_CLAIM nonce=3faed4a98705253ffc5cf5ef8384e302 runner=superdav42 ts=2026-05-04T01:40:09Z max_age_s=1800 version=3.14.36 opencode_version=1.3.17 |
|
DISPATCH_CLAIM nonce=d8f9319261721c2972e0ea97c610867d runner=superdav42 ts=2026-05-04T02:09:28Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=abf045d8a1536674404946c9a7d52224 runner=superdav42 ts=2026-05-04T02:10:07Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=51a76ac23b4d75c34717190ea8c7cea7 runner=superdav42 ts=2026-05-04T02:12:26Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=9d60019d53f2312e824469a36b942392 runner=superdav42 ts=2026-05-04T02:13:04Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=a0a5c7fc885d1327d2c391684d3644ae runner=superdav42 ts=2026-05-04T02:16:37Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=53b046e7fde995cd86bf78ce4fff1b8d runner=superdav42 ts=2026-05-04T02:20:27Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=4b967ecf0e8f9f6ccd33361fbc6ca3a7 runner=superdav42 ts=2026-05-04T02:24:36Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=37ddfffac2e9bb01b453e99fda6b9ca1 runner=superdav42 ts=2026-05-04T02:40:16Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=7a1154d755e4c4ef5b7cdd671603eb0b runner=superdav42 ts=2026-05-04T02:40:58Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=f1bcf94f670d3d5a468754e63a3047a6 runner=superdav42 ts=2026-05-04T02:43:18Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=5630bb1b1d71388a2e656f746563b706 runner=superdav42 ts=2026-05-04T02:43:59Z max_age_s=1800 version=3.14.37 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=2b83d401ed40445c050f0a58193a1dd9 runner=superdav42 ts=2026-05-04T03:11:10Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=cbd1c37edd4ee734ecabe22c0b25627a runner=superdav42 ts=2026-05-04T03:11:50Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=0ab9671c6f90c298819e362f2a68e939 runner=superdav42 ts=2026-05-04T03:14:11Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=c3fc90845538f2f300fd7365935b577c runner=superdav42 ts=2026-05-04T03:14:50Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=72af2203b3d3391d7e9bf3c210885dbb runner=superdav42 ts=2026-05-04T03:18:25Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=6b1f01e79a7a5e496818b1323420d920 runner=superdav42 ts=2026-05-04T03:22:21Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=634487954da4c26e6d795f73063fa8a4 runner=superdav42 ts=2026-05-04T03:26:17Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=81aa7f8dff56c36594dd0ba40ed5674d runner=superdav42 ts=2026-05-04T03:41:13Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=8d7307d045501cf5032a01a196320163 runner=superdav42 ts=2026-05-04T03:41:54Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=1504e5b4f3b1b957d8a6102d6d7928cf runner=superdav42 ts=2026-05-04T03:44:10Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=67d6b8c463d0b62984acebfc3c952cb4 runner=superdav42 ts=2026-05-04T03:44:50Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=3596880adc1453413796e198cf3466b6 runner=superdav42 ts=2026-05-04T04:11:22Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=808926b351635f86b9a6bd4f9711c40c runner=superdav42 ts=2026-05-04T04:12:02Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=855d553a748d419a3b3d3fc79dc5a633 runner=superdav42 ts=2026-05-04T04:14:22Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=f5e2a56d357d197219c1d7c8857a6c47 runner=superdav42 ts=2026-05-04T04:15:01Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=b7da0218f9d101fb600bb705f4cc6864 runner=superdav42 ts=2026-05-04T04:18:27Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=93fefe1b5f18641f7de9833cb32b881b runner=superdav42 ts=2026-05-04T04:22:19Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
|
DISPATCH_CLAIM nonce=e4b71f54099004db4ba80792bc50d0d7 runner=superdav42 ts=2026-05-04T04:26:15Z max_age_s=1800 version=3.14.39 opencode_version=1.14.33 |
Summary
createWebsiteAPI which creates a completely separate, independent website with its own empty document root. Mapped domains showed CyberPanel's default empty-site screen instead of the WordPress multisite content.addChildDomainAPI which adds the domain as a child of the master domain, sharing the same document root — matching the alias/child pattern used by all other hosting integrations.deleteChildDomain, and SSL issuance targets the master domain (which covers child domains).Root Cause
Every other integration adds mapped domains as aliases/children of the master domain:
addaddondomaintype: 'alias'site_aliasv-add-web-domain-alias/adddomainalias/app/manage/aliasescreateWebsiteaddChildDomainThe customer confirmed the manual workaround (adding as alias in CyberPanel directly) works as expected, validating this fix approach.
Changes
inc/integrations/providers/cyberpanel/class-cyberpanel-domain-mapping.phpcreate_website()→create_child_domain()usingaddChildDomainendpointdelete_website()→delete_child_domain()usingdeleteChildDomainendpointissue_ssl()updated to target master domain for child domain SSL coverageResolves #1071
aidevops.sh v3.14.17 plugin for OpenCode v1.3.17 with claude-opus-4-6 spent 52m and 11,936 tokens on this with the user in an interactive session.