Details
Description
In cPanel, it's possible to receive an "Undefined property: stdClass::domain" error.
See https://www.blesta.com/forums/index.php?/topic/13624-error-adding-product-to-basket-cpanel-module/
It looks like cPanel::getClientAddFields should check whether all input $vars properties exist before attempting to use them. In this case, it appears there is an expression:
$this->Html->ifSet($vars->cpanel_domain, $vars->domain),
... that should also check whether $vars->domain is set, e.g.:
$this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)),
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Sprint | 4.9.0 Sprint 6 [ 104 ] |
Assignee | Tyson Phillips [ tyson ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Summary | cPanel: Possible undefined property error | cPanel: Undefined property error when cpanel_domain not set |

Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 10 minutes [ 600 ] | |
Worklog Id | 13274 [ 13274 ] |
Time Spent | 10 minutes [ 600 ] | 15 minutes [ 900 ] |
Worklog Id | 13277 [ 13277 ] |

Status | In Review [ 5 ] | Closed [ 6 ] |