vojtasvoboda / oc-twigextensions-plugin

Twig extensions plugin for OctoberCMS
MIT License
18 stars 26 forks source link

Class "IntlDateFormatter" not found #74

Closed maki3000 closed 2 years ago

maki3000 commented 2 years ago

Hello,

I just installed oc-twigextensions-plugin on a OC v3.1.26 and I'm getting: Class "IntlDateFormatter" not found

I'm using the official OC docker image.

I tried to adjust the php.ini files in the attached docker shell, clearing the comment of: extension=intl Then I restarted my container with no luck.

How can I fix this?

vojtasvoboda commented 2 years ago

Hello @maki3000, which version of the plugin are you using? Could you try to look at the /plugins/vojtasvoboda/twigextensions/updates/version.yaml which version is on the last line?

vojtasvoboda commented 2 years ago

Version 2.0.2 looks good on my end.

Screenshot 2022-11-30 v 9 24 21
maki3000 commented 2 years ago

Last line of /plugins/vojtasvoboda/twigextensions/updates/version.yaml is: 2.0.2: Fix compatibility with October 3.0

My backend also looks good. The error is appearing on my frontend, while I did not implement anything belonging to the plugin yet.

vojtasvoboda commented 2 years ago

Ok, so could you please send me a screenshot of the plugins list you have? I try to reproduce your environment.

I tried also frontend, using ltrim filter and all works well. It looks like some problem with Twig generally, because there is no IntlDateFormatter in my plugin.

maki3000 commented 2 years ago

Here's my plugin-list (I needed to hide own plugins and name): oc-plugin-list

And here's the stack trace, maybe that helps: oc-stacktrace-error

vojtasvoboda commented 2 years ago

Ok, so I made a fix, could you please try 2.0.3 version? It is ready on Packagist right now.

maki3000 commented 2 years ago

Perfect! Thank you so much! I'm glad!

vojtasvoboda commented 2 years ago

@maki3000 I would be glad if you leave some comment on my plugin's page: https://octobercms.com/plugin/vojtasvoboda-twigextensions

:-)

maki3000 commented 2 years ago

Ah! Yeah, sorry. The one that got the thanks can be glad 😅 🤦‍♂️

Just left a comment…

Thanks again and have a very nice day! Maki

Am 30.11.2022 um 10:48 schrieb Vojta Svoboda @.***>:

@maki3000 https://github.com/maki3000 I would be glad if you leave some comment on my plugin's page: https://octobercms.com/plugin/vojtasvoboda-twigextensions https://octobercms.com/plugin/vojtasvoboda-twigextensions :-)

— Reply to this email directly, view it on GitHub https://github.com/vojtasvoboda/oc-twigextensions-plugin/issues/74#issuecomment-1331889676, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5GRD4CIPP5M4SOK6Q7ZDWK4PFDANCNFSM6AAAAAASPGUZZU. You are receiving this because you were mentioned.