Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Error:

      urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
      

      Affected Files:

      • /plugins/order/order_form_controller.php (Line 78)

      Possible solution:

      urldecode($order_label ?? ''),
      

      Error:

      trim(): Passing null to parameter #1 ($string) of type string is deprecated
      

      Affected Files:

      • /plugins/order/order_form_controller.php (Line 657)

      Possible solution:

      $coupon_code = trim($coupon_code ?? '');
      

      Error:

      uniqid(): Passing null to parameter #1 ($prefix) of type string is deprecated
      

      Affected Files:

      • /plugins/order/models/order_orders.php (Line 695)

      Possible solution:

          private function getOrderNumber($prefix = '')
          {
              $number = null;
              $exists = true;
      
              if (is_null($prefix)) {
                  $prefix = '';
              }
      

        Activity

        abdy Abdy Franco created issue -
        abdy Abdy Franco made changes -
        Field Original Value New Value
        Fix Version/s 5.7.0-b1 [ 11737 ]
        abdy Abdy Franco made changes -
        Description *Error:*
        {noformat}
        urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 78)_

        *Possible solution:*
        Replace null by an _empty string_.

        ----

        *Error:*
        {noformat}
        trim(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 657)_

        *Possible solution:*
        Replace null by an _empty string_.
        *Error:*
        {noformat}
        urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 78)_

        *Possible solution:*
        Replace null by an _empty string_.

        ----

        *Error:*
        {noformat}
        trim(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 657)_

        *Possible solution:*
        Replace null by an _empty string_.

        ----

        *Error:*
        {noformat}
        uniqid(): Passing null to parameter #1 ($prefix) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/models/order_orders.php _(Line 695)_

        *Possible solution:*

        {code:java}
            private function getOrderNumber($prefix = '')
            {
                $number = null;
                $exists = true;

                if (is_null($prefix)) {
                    $prefix = '';
                }
        {code}
        abdy Abdy Franco made changes -
        Description *Error:*
        {noformat}
        urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 78)_

        *Possible solution:*
        Replace null by an _empty string_.

        ----

        *Error:*
        {noformat}
        trim(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 657)_

        *Possible solution:*
        Replace null by an _empty string_.

        ----

        *Error:*
        {noformat}
        uniqid(): Passing null to parameter #1 ($prefix) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/models/order_orders.php _(Line 695)_

        *Possible solution:*

        {code:java}
            private function getOrderNumber($prefix = '')
            {
                $number = null;
                $exists = true;

                if (is_null($prefix)) {
                    $prefix = '';
                }
        {code}
        *Error:*
        {noformat}
        urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 78)_

        *Possible solution:*
        {code:java}
        urldecode($order_label ?? ''),
        {code}

        ----

        *Error:*
        {noformat}
        trim(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/order_form_controller.php _(Line 657)_

        *Possible solution:*
        {code:java}
        $coupon_code = trim($coupon_code ?? '');
        {code}

        ----

        *Error:*
        {noformat}
        uniqid(): Passing null to parameter #1 ($prefix) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /plugins/order/models/order_orders.php _(Line 695)_

        *Possible solution:*
        {code:java}
            private function getOrderNumber($prefix = '')
            {
                $number = null;
                $exists = true;

                if (is_null($prefix)) {
                    $prefix = '';
                }
        {code}
        admin Paul Phillips made changes -
        Fix Version/s 5.7.0 [ 11800 ]
        Fix Version/s 5.7.0-b1 [ 11737 ]
        admin Paul Phillips made changes -
        Fix Version/s 5.8.0-b1 [ 11742 ]
        Fix Version/s 5.7.0 [ 11800 ]
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        abdy Abdy Franco made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              4/Aug/23

              Agile