简体   繁体   English

Laradock上的Nova引发bcadd异常

[英]Nova on Laradock raises bcadd exception

I have a simple installation of Laravel with Laradock. 我使用Laradock进行了Laravel的简单安装。
When I try to update a model, there is no problem. 当我尝试更新模型时,没有问题。

However, when I install Nova and try to update some model (for example user name), I get the following error: 但是,当我安装Nova并尝试更新某些型号(例如用户名)时,出现以下错误:

在此处输入图片说明

Looking at ajax call, I see the following error: 在查看ajax调用时,我看到以下错误:

exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "/var/www/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php"
line: 506
message: "Call to undefined function Moontoast\Math\bcadd()"

I tried to set PHP_WORKER_INSTALL_BCMATH to true in .env and rebuild docker image, but it didn't help. 我试图设置PHP_WORKER_INSTALL_BCMATHtrue.env和重建泊坞窗的形象,但它并没有帮助。

I also found this issue: 我也发现了这个问题:
https://github.com/laravel/telescope/issues/25#issuecomment-432302285 https://github.com/laravel/telescope/issues/25#issuecomment-432302285

But it didn't help me to solve the problem. 但这并没有帮助我解决问题。

For anyone else experiencing this issue this is what solved it for me: bin/bash into docker container and run 对于其他遇到此问题的人,这就是为我解决的问题:将bin / bash放入docker容器并运行

docker-php-ext-install bcmath

Then restart server. 然后重新启动服务器。 This helped for my case. 这对我的情况有所帮助。 I would expect analogical steps would work for Laradock. 我希望类比的步骤对Laradock有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM