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

Cron errors when PHP extension iconv is not present

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.4.0-b1
    • Fix Version/s: 5.4.0-b2
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      This is an issue on PHP 8.0 but may be an issue on PHP 7 also. If the PHP extension "iconv" is installed, it's not a problem because it is used instead. However, if it's not installed it uses the symfony/polyfill-iconv library instead.

      When using the library instead, the logs_blesta cron log is flooded with these notices:

      general-notice-cron-2022-04-12.log:[2022-04-12T20:05:05.679283+00:00] general.NOTICE: E_USER_NOTICE: iconv(): Wrong charset, conversion from `utf-8' to `ucs-4be' is not allowed

      {"code":1024,"message":"iconv(): Wrong charset, conversion from `utf-8' to `ucs-4be' is not allowed","file":"/home/blestar/public_html/vendors/symfony/polyfill-iconv/Iconv.php","line":188}

      What is this being used for and why are we trying to convert charset to ucs-4be? Do we need to update to a newer version of this vendor code?

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Rank Ranked higher
        admin Paul Phillips made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.5.0 Sprint 2 [ 154 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        abdy Abdy Franco added a comment -

        This problem is caused by an incompatibility between the TCPDF library and the polyfill-iconv dependency required by the Swift Mailer library. Replacing Swift Mailer with Symfony Mailer seems to solve this issue.

        Show
        abdy Abdy Franco added a comment - This problem is caused by an incompatibility between the TCPDF library and the polyfill-iconv dependency required by the Swift Mailer library. Replacing Swift Mailer with Symfony Mailer seems to solve this issue.
        abdy Abdy Franco made changes -
        Link This issue relates to CORE-4625 [ CORE-4625 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 2 hours, 35 minutes [ 9300 ]
        Worklog Id 15657 [ 15657 ]
        Hide
        jonathan Jonathan Reissmueller added a comment -

        Replaced by CORE-4625

        Show
        jonathan Jonathan Reissmueller added a comment - Replaced by CORE-4625
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Duplicate [ 3 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              21/Apr/22

              Time Tracking

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

                Agile