-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntlException: Constructor failed - Laravel App #926
Comments
I'm experiencing the same thing. Very annoying. |
Could you tru using the Docker image instead? This should fix the issue, which likely is that some Intl resource files aren't included in the static binary. |
Sure, but what's the use then of octane with FrankenPHP if you can't use it out of the box? |
I'm experiencing the same issue on a Laravel Forge server. |
@johannesronaldsson i'm just thinking about a workaround, we'll try to fix this in the static build. That being said, while using the Docker image you keep all the benefits of Octane with FrankenPHP (actually, using a normal build like the one in the Docker image is even faster than using the static build we provide by default). Is it a new issue or has this issue been always present? |
@dunglas good workaround indeed. I have been experiencing this since I deleted by accident the bin file and reinstalled it with octane:install. Since then I experienced the error. |
@johannesronaldsson thanks for this great idea. I had an older binary that I now copied in. Downloading an older binary from GitHub and using that will work too. Looking at the issue it has something to do with |
For me, downloading version 1.2.1 fixes the issue |
@crazywhalecc this looks like a regression in SPC, what do you think? |
@rikwillems this version works for me too 🏆 |
Closing as fixed upstream. |
What happened?
With a Laravel Octane app, I get the following Intl error with the
Number::format
helper method:Output:
["numfmt_create: number formatter creation failed: U_MISSING_RESOURCE_ERROR"]
An
IntlException
is thrown with the messageConstructor failed
.Here's a full stack trace:
https://flareapp.io/share/xmNxMRO7
The configuration is the same as a basic set-up illustrated here, using Laravel Sail:
https://laravel.com/docs/11.x/octane#frankenphp-via-laravel-sail
The docker image was not modified.
The binary was installed using the
sail artisan octane:install
command.Build Type
Standalone binary
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
No response
The text was updated successfully, but these errors were encountered: