Closed refringe closed 3 months ago
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. I have two apps on the same server, on that is running isn't influenced.
@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 intl
and happens somewhere in the dependencies of php. Nothing really due to FrankenPHP itself.
For me, downloading version 1.2.1 fixes the issue
curl -L https://github.com/dunglas/frankenphp/releases/download/v1.2.1/frankenphp-linux-x86_64-mimalloc > frankenphp
@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