• TLDR: Updated my site from PHP 7.4 -> 8. Emojis now are published as ‘????’. Contacted my host, after days and many hours of testing, they cannot find the issue.

    Things we tried:

    – No console or error logs.

    – No odd WP configurations, hooks, or custom CSS. It’s just GeneratePress and a few very common, up to date plugins (Yoast, Smush, GenerateBlocks, etc).

    – Host Database is fine.

    – Disabling plugins and changing themes doesn’t rectify issue.

    – Test site made under main domain subfolder, installed some of the Plugins and GeneratePress, issue is not there.

    What could the issue possibly be? Who can I talk to about this?

    • This topic was modified 3 years, 1 month ago by vmarte.
    • This topic was modified 3 years, 1 month ago by vmarte.
    • This topic was modified 3 years, 1 month ago by vmarte.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    If you can. share the url of the page where we can see these question marks.

    Note: Your link will be public and we will not later remove it.

    Thread Starter vmarte

    (@vmarte)

    PHP 8 Doesn’t Support Emojis?

    Test site with PHP 8.1: https://og-warfare-xina.instawp.xyz/phpinfo.php

    Emoji working correctly: https://og-warfare-xina.instawp.xyz/

    (Links only active for the next 48 hours)

    Perhaps a classic case of correlation not being causality.

    Thread Starter vmarte

    (@vmarte)

    yeah, we set up a test site with same plugins and themes as my main site and emojis worked. So then, I’m wondering what could be the issue

    Thread Starter vmarte

    (@vmarte)

    Fix:

    With the host we’re using, switching to PHP 8 via CPanel enabled certain extensions. So, we matched the extensions used by PHP 7.4 and the emojis worked again. 

    But, we then defaulted back to PHP 8 extensions and the emojis worked… something about the extensions… It doesn’t make full sense to me but that was the fix.

    colinfroggatt

    (@colinfroggatt)

    Hi, I just has this issue moving from php 8.0 to 8.1 on WP 6.2.2.

    I pinned it down to the PHP mySQL modules.

    v8.0 OK : modules: -mysqli / +mysqlnd / +nd_mysqli

    v8.1 NOT OK : modules: / +mysqli / +mysqlnd / -nd_mysqli

    So under php 8.1 I disabled the ‘mysqli’ module and enabled the ‘nd_mysqli’ module and the emoji’s started working again 🙂

    The mysql nd modules support native mysql drivers in PHP and have been recommended since PHP 5.4

    More detail here and here.

    Hope this helps others.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP 8 Doesn’t Support Emojis? Appear as Question Marks’ is closed to new replies.