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

Enom: Non-numeric value error on php >=7.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.1
    • Component/s: None
    • Labels:
      None

      Description

      Reported on the forums here: https://www.blesta.com/forums/index.php?/topic/13221-enom-name-servers-tab-error/

      When visiting the nameservers tab the user will receive an error:

      A non-numeric value encountered on line 12 in path_to_blesta\components\modules\enom\views\default\tab_nameservers.pdt

      This is because of lines 11-12 of tab_nameservers.pdt:

                      $this->Form->label($this->_('Enom.tab_nameserver.field_ns', true, $i+1), 'ns' . $i+1);
                      $this->Form->fieldText('ns[]', $this->Html->ifSet($vars->ns[$i]), ['id' => 'ns' . $i+1]);
      

      The dot operator in 'ns' . $i+1 is being executed before the plus. Wrap $i+1 in parens:

                      $this->Form->label($this->_('Enom.tab_nameserver.field_ns', true, $i+1), 'ns' . ($i+1));
                      $this->Form->fieldText('ns[]', $this->Html->ifSet($vars->ns[$i]), ['id' => 'ns' . ($i+1]));
      

      The same applies to tab_client_nameservers.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Sep/19

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 10 minutes
              10m

                Agile