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

        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.
        Hide
        jonathan Jonathan Reissmueller added a comment -

        Replaced by CORE-4625

        Show
        jonathan Jonathan Reissmueller added a comment - Replaced by CORE-4625

          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