Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5071

Internet.bs: Error when managing domains

    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

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              21/Feb/24

              Time Tracking

              Estimated:
              Original Estimate - 0 minutes
              0m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 31 minutes
              31m

                Agile