Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.2.0-b1
-
Component/s: None
-
Labels:None
Description
This error is becoming increasingly common:
importContacts: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'client_id' cannot be null on line 196
In plugins/import_manager/components/whmcs/whmcs_migrator.php around line 448 change from:
foreach ($contacts as $contact) { $vars = [ 'client_id' => isset($this->mappings['clients'][$contact->userid]) ? $this->mappings['clients'][$contact->userid] : null,
To
foreach ($contacts as $contact) { if (!isset($this->mappings['clients'][$contact->userid])) { continue; } $vars = [ 'client_id' => $this->mappings['clients'][$contact->userid],
Since client_id cannot be null
Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.3.0 Sprint 1 [ 138 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Abdy Franco
made changes -
Assignee | Abdy Franco [ abdy ] |
Abdy Franco
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Abdy Franco
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 28 minutes [ 1680 ] | |
Worklog Id | 15276 [ 15276 ] |
Abdy Franco
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |