Bug #23736 See Comments

PHP errors on CP homepage

Version: 4.3.4 Reporter: Matthew81

Every time I load the CP homepage (whether immediately after login or just by returning to it from elsewhere in the admin), I get a whole slew of PHP errors:

Warning Use of undefined constant INTL_IDNA_VARIANT_UTS46 - assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) ee/legacy/libraries/Typography.php, line 2565 Severity: E_WARNING

Warning idn_to_ascii() expects parameter 3 to be integer, string given ee/legacy/libraries/Typography.php, line 2565 Severity: E_WARNING

( The above two warnings are repeated ten times each )

Warning Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:119) ee/EllisLab/ExpressionEngine/Boot/boot.common.php, line 487 Severity: E_WARNING

I’m running EE 4.3.4 on PHP 7.0 and this happens with extensions disabled as well.

  • What server environment, Matthew? It makes me think that even though you’re on a relatively new PHP version that your underlying server libraries might be very old.

    Derek Jones
    26th September, 2018 at 3:48pm
  • I’m not a server guy so I’m not sure what information you need, but I know it’s Linux running Apache 2.4.33. This is a WestHost managed server so it should be pretty well up to date.

    Matthew81
    26th September, 2018 at 4:56pm
  • No problem Matthew, can you go to Developer > Utilities > PHP Info and do a find on the page for icu and let me know what the ICU Version is?

    Derek Jones
    26th September, 2018 at 5:13pm
  • It turns out that “very old” is a mild way to put it. ICU version is 4.2.1…released in August, 2009!

    Matthew81
    26th September, 2018 at 5:43pm
  • Full info under that section:

    version 1.1.0 ICU version 4.2.1 ICU TZData version 2009j ICU Unicode version 5.1

    Matthew81
    26th September, 2018 at 5:45pm
  • Yeah, I would absolutely push your server admins to update their ICU libraries. I think even 4.6 (released in 2011) would support that constant, but the current version is 62 which adds full support for Unicode 11 and should last a good long while.

    Derek Jones
    26th September, 2018 at 6:12pm

You must be signed in to comment on a bug report.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases