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:

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

      Affected Files:

      • /app/controllers/admin_clients.php (Line 6501)
      • /app/controllers/client_services.php (Line 1677)
      • /app/controllers/admin_main.php (Line 35)
      • /app/controllers/client_main.php (Line 32)
      • /app/controllers/client_pay.php (Line 19)
      • /app/app_controller.php (Line 834)
      • /app/client_controller.php (Line 24)
      • /vendors/minphp/record/src/Record.php (Line 1501) See PR #10 on phillipsdata/minphp-record

      Possible solution:
      Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

        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 When an action is not passed to a controller, internally the action is assumed to be "index" and the index() method is called, however in this case the "$this->action" property has a null value.

        This can be found in the following files:
         - /app/controllers/admin_main.php
         - /app/controllers/client_main.php
         - /app/controllers/client_pay.php

        Possible solution:
        Replace {code:java}strtolower($this->action){code} by {code:java}strtolower($this->action ?? 'index'){code}
        _*or*_
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.



        *Affected Files:*
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        Possible solution:
        Replace {code:java}strtolower($this->action){code} by {code:java}strtolower($this->action ?? 'index'){code}
        _*or*_
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

        abdy Abdy Franco made changes -
        Description

        *Affected Files:*
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        Possible solution:
        Replace {code:java}strtolower($this->action){code} by {code:java}strtolower($this->action ?? 'index'){code}
        _*or*_
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

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


        *Affected Files:*
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        Possible solution:
        Replace {code:java}strtolower($this->action){code} by {code:java}strtolower($this->action ?? 'index'){code}
        _*or*_
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

        abdy Abdy Franco made changes -
        Description *Error:*
        {noformat}
        strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}


        *Affected Files:*
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        Possible solution:
        Replace {code:java}strtolower($this->action){code} by {code:java}strtolower($this->action ?? 'index'){code}
        _*or*_
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

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

        *Affected Files:*
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        *Possible solution:*
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

        abdy Abdy Franco made changes -
        Description *Error:*
        {noformat}
        strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        *Possible solution:*
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

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

        *Affected Files:*
         - /app/controllers/admin_clients.php _(Line 6501)_
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        *Possible solution:*
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

        abdy Abdy Franco made changes -
        Description *Error:*
        {noformat}
        strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
        {noformat}

        *Affected Files:*
         - /app/controllers/admin_clients.php _(Line 6501)_
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        *Possible solution:*
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

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

        *Affected Files:*
         - /app/controllers/admin_clients.php _(Line 6501)_
         - /app/controllers/client_services.php _(Line 1677)_
         - /app/controllers/admin_main.php _(Line 35)_
         - /app/controllers/client_main.php _(Line 32)_
         - /app/controllers/client_pay.php _(Line 19)_
         - /app/app_controller.php _(Line 834)_
         - /app/client_controller.php _(Line 24)_
         - /vendors/minphp/record/src/Record.php _(Line 1501) See PR #10 on phillipsdata/minphp-record_

        *Possible solution:*
        Modify the Controller.php class in minPHP Bridge, to set the value of the "action" property to "index", when an action is not passed to the controller.

        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 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          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