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

Update extensions for php 7.2+ compatibility with Countable objects

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Several modules/plugins call php's count() function, but it is not clear that it is always passed an iterable value to count. If it is not passed such a value (e.g. passed null or an empty string), then an error can be encountered in php 7.2+:

      count(): Parameter must be an array or an object that implements Countable on line ### in /app/components/modules/***/***.***
      

      This may be most prevalent in modules/plugins that call count and pass in a variable through _Html::ifSet _without specifying a default value, which means the default value is an empty string, thus encountering the error.

      It appears the following modules/plugins may need to be updated, at least to ensure a default value to count is provided.

      Modules

      1. Blesta License
      2. BuycPanel
      3. CentOS Web Panel
      4. CentovaCast
      5. CyberPanel
      6. DirectAdmin
      7. Enom
      8. GoGetSSL
      9. Interworx
      10. ISPConfig
      11. Logicboxes
      12. Multicraft
      13. Namecheap
      14. Plesk
      15. Proxmox
      16. SolusVM
      17. TCAdmin
      18. TeamSpeak
      19. Vesta
      20. Virtualmin
      21. VPS.net
      22. Vultr
      23. WHMSonic

      Plugins:

      1. FeedReader (views)
      2. Mass mailer (views)
      3. Order (views)
      1.
      Blesta License: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 9 minutes
       
      2.
      BuycPanel: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      3.
      CentOS Web Panel: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 9 minutes
       
      4.
      CentovaCast: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 8 minutes
       
      5.
      CyberPanel: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 6 minutes
       
      6.
      DirectAdmin: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 10 minutes
       
      7.
      Enom: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      8.
      GoGetSSL: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 3 minutes
       
      9.
      Interworx: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 10 minutes
       
      10.
      ISPConfig: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller  
       
      11.
      LogicBoxes: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      12.
      Multicraft: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 6 minutes
       
      13.
      Namecheap: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 4 minutes
       
      14.
      Plesk: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      15.
      Proxmox: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 4 minutes
       
      16.
      SolusVM: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      17.
      TCAdmin: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 4 minutes
       
      18.
      TeamSpeak: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 14 minutes
       
      19.
      Vesta: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 4 minutes
       
      20.
      Virtualmin: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      21.
      VPS.net: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 3 minutes
       
      22.
      Vultr: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      23.
      WHMSonic: Make compatible with php 7.2+ Sub-task Closed Jonathan Reissmueller

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 4 minutes
       
      24.
      FeedReader: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 12 minutes
       
      25.
      Mass Mailer: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 5 minutes
       
      26.
      Order: Make compatible with php 7.2+ Sub-task Closed Tyson Phillips (Inactive)

      100%

      Original Estimate - Not Specified Original Estimate - Not Specified
      Time Spent - 18 minutes
       

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/May/19

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 hours, 26 minutes
              3h 26m

                Agile