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

Email fails to send due to "count()" error in php 7.2+

    Details

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

      Description

      In php 7.2+, a warning/error is raised if the count() function is called on something that is not Countable, such as null. The Emails model does this with CC, BCC, and attachments, and should be updated to ensure we only count() on Countable interfaces.

      count(): Parameter must be an array or an object that implements Countable on line 846 in /app/models/emails.php
      

        Activity

          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:
              22/Oct/18

              Agile