Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.9.3
-
Component/s: None
-
Labels:None
Description
To reproduce:
1. Create a internet bs domain on a tld with no special fields
2. Try to manage the domain
To resolve:
In components\modules\internetbs\internetbs.php around line 1964 (AND IN ALL OTHER LOCATIONS) change:
$fields = array_merge( Configure::get('Internetbs.nameserver_fields'), Configure::get('Internetbs.domain_fields'), Configure::get('Internetbs.domain_fields' . $tld) );
to
$fields = array_merge( Configure::get('Internetbs.nameserver_fields'), Configure::get('Internetbs.domain_fields'), (array) Configure::get('Internetbs.domain_fields' . $tld) );
Original error:
[2024-02-02T17:16:58.800305+00:00] general.ERROR: Uncaught Exception TypeError: "array_merge(): Argument #3 must be of type array, null given" at /home/hostinpk/clients/components/modules/internetbs/internetbs.php line 1967 {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #3 must be of type array, null given at /home/hostinpk/clients/components/modules/internetbs/internetbs.php:1967)"} [2024-02-02T17:17:01.819476+00:00] general.ERROR: Uncaught Exception TypeError: "array_merge(): Argument #3 must be of type array, null given" at /home/hostinpk/clients/components/modules/internetbs/internetbs.php line 1967 {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #3 must be of type array, null given at /home/hostinpk/clients/components/modules/internetbs/internetbs.php:1967)"}
Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Sprint | 5.10.0 Sprint 5 [ 192 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Description |
To reproduce:
1. Create a internet bs domain on a tld with no special fields 2. Try to manage the domain To resolve: In components\modules\internetbs\internetbs.php around line 1964 change: ``` $fields = array_merge( Configure::get('Internetbs.nameserver_fields'), Configure::get('Internetbs.domain_fields'), Configure::get('Internetbs.domain_fields' . $tld) ); ``` to ``` $fields = array_merge( Configure::get('Internetbs.nameserver_fields'), Configure::get('Internetbs.domain_fields'), Configure::get('Internetbs.domain_fields' . $tld) ?? [] ); ``` Original error: {code:java} [2024-02-02T17:16:58.800305+00:00] general.ERROR: Uncaught Exception TypeError: "array_merge(): Argument #3 must be of type array, null given" at /home/hostinpk/clients/components/modules/internetbs/internetbs.php line 1967 {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #3 must be of type array, null given at /home/hostinpk/clients/components/modules/internetbs/internetbs.php:1967)"} [2024-02-02T17:17:01.819476+00:00] general.ERROR: Uncaught Exception TypeError: "array_merge(): Argument #3 must be of type array, null given" at /home/hostinpk/clients/components/modules/internetbs/internetbs.php line 1967 {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #3 must be of type array, null given at /home/hostinpk/clients/components/modules/internetbs/internetbs.php:1967)"} {code} |
To reproduce:
1. Create a internet bs domain on a tld with no special fields 2. Try to manage the domain To resolve: In components\modules\internetbs\internetbs.php around line 1964 (AND IN ALL OTHER LOCATIONS) change: {code:java} $fields = array_merge( Configure::get('Internetbs.nameserver_fields'), Configure::get('Internetbs.domain_fields'), Configure::get('Internetbs.domain_fields' . $tld) ); {code} to {code:java} $fields = array_merge( Configure::get('Internetbs.nameserver_fields'), Configure::get('Internetbs.domain_fields'), (array) Configure::get('Internetbs.domain_fields' . $tld) ); {code} Original error: {code:java} [2024-02-02T17:16:58.800305+00:00] general.ERROR: Uncaught Exception TypeError: "array_merge(): Argument #3 must be of type array, null given" at /home/hostinpk/clients/components/modules/internetbs/internetbs.php line 1967 {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #3 must be of type array, null given at /home/hostinpk/clients/components/modules/internetbs/internetbs.php:1967)"} [2024-02-02T17:17:01.819476+00:00] general.ERROR: Uncaught Exception TypeError: "array_merge(): Argument #3 must be of type array, null given" at /home/hostinpk/clients/components/modules/internetbs/internetbs.php line 1967 {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #3 must be of type array, null given at /home/hostinpk/clients/components/modules/internetbs/internetbs.php:1967)"} {code} |
Jonathan Reissmueller
made changes -
Fix Version/s | 5.9.2 [ 11910 ] | |
Fix Version/s | 5.10.0-b1 [ 11905 ] |
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 | 31 minutes [ 1860 ] | |
Worklog Id | 16843 [ 16843 ] |
Abdy Franco
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Sprint | 5.10.0 Sprint 5 [ 192 ] | 5.10.0 Sprint 5, 5.10.0 Sprint 6 [ 192, 193 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Fix Version/s | 5.9.3 [ 11913 ] | |
Fix Version/s | 5.9.2 [ 11910 ] | |
Original Estimate | 0 minutes [ 0 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked lower |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |