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)"}