pegasus
Well-known member
The new options require the intl extension, per release notes. However, if you don't have the intl extension, it is still possible to enable the options, which results in errors such as {Emoji} regex property not existing, null URLs, etc.
If (not sure) timing causes that error to make preg_replace_callback return null rather than throwing an exception:
If the intl extension is missing, then possibly the old code (before fixing this thread's issue) should be used, and skip the Emoji related stuff. There should also possibly be a notice under the related options, e.g. "you need to install the intl extension to use this"
An exception occurred: [ErrorException] [E_WARNING] preg_replace_callback(): Compilation failed: unknown property name after \P or \p at offset 9 in src/XF/Str/Formatter.php on line 417
If (not sure) timing causes that error to make preg_replace_callback return null rather than throwing an exception:
An exception occurred: [TypeError] XF\Util\Str::transliterate(): Argument #1 ($string) must be of type string, null given, called in /[path]/src/XF/Mvc/Router.php on line 540 in src/XF/Util/Str.php on line 28
If the intl extension is missing, then possibly the old code (before fixing this thread's issue) should be used, and skip the Emoji related stuff. There should also possibly be a notice under the related options, e.g. "you need to install the intl extension to use this"