Emo breaks page depending on publishedon date?

I just noticed that the emo extra seems to break any site (only showing a blank page), when I publish a resource with a date containing the month march with the following error:

(ERROR @ /core/components/emo/src/Emo.php : 263) PHP warning: foreach() argument must be of type array|object, bool given

I display the date using this code in my template:

[[*publishedon:date=`%d. %B %Y`]]

If I either remove this date display or set the publishedon date to anything not containing the month march, the page loads fine. This is a German page, so maybe there might be an issue with march, as the german umlaut “ä” is causing troubles somehow?

I only suspect emo to be the issue as this is the only error I’m getting.
@jako could this be the case or do I have to look elsewhere?

MODX 3.1.1
emo 1.9.1
PHP 8.2.25

What is the value of the “locale” system setting on your site?
Maybe you have to add .UTF-8 (de_DE.UTF-8) so that you get the correct unicode encoding.

https://jako.github.io/emo/usage/#output-issues

Thanks, that was it, I only had it set to de_DE.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.