ChrisF79
6 months ago
141
3
General

php artisan now throwing a PHP fatal error on Laravel 5.7.26

Posted 6 months ago by ChrisF79

Hi everyone,

I woke up today to an odd issue. Running php artisan by itself even will throw this:

PHP Fatal error:  Uncaught Error: Call to undefined function Moontoast\Math\bcadd() in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php:506
Stack trace:
#0 /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php(62): Moontoast\Math\BigNumber->setValue('155368742548353')
#1 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php(49): Moontoast\Math\BigNumber->__construct('155368742548353')
#2 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Generator/CombGenerator.php(72): Ramsey\Uuid\Converter\Number\BigNumberConverter->toHex('155368742548353')
#3 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/UuidFactory.php(235): Ramsey\Uuid\Generator\CombGenerator->generate(16)
#4 /srv/www/listingnaples.com/vendor/laravel/framework/src/Illuminate/Support/Str.php(552): Ramsey\Uuid\UuidFactory->uuid4()
#5 /srv/www/listingnaples.com/vendor/laravel/telescope/src/IncomingEntry.php(74): Illuminate\Support\Str::orderedUuid()
#6 /srv/www/listingnaples.c in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php on line 506
PHP Fatal error:  Uncaught Error: Call to undefined function Moontoast\Math\bcadd() in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php:506
Stack trace:
#0 /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php(62): Moontoast\Math\BigNumber->setValue('155368742548506')
#1 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php(49): Moontoast\Math\BigNumber->__construct('155368742548506')
#2 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Generator/CombGenerator.php(72): Ramsey\Uuid\Converter\Number\BigNumberConverter->toHex('155368742548506')
#3 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/UuidFactory.php(235): Ramsey\Uuid\Generator\CombGenerator->generate(16)
#4 /srv/www/listingnaples.com/vendor/laravel/framework/src/Illuminate/Support/Str.php(552): Ramsey\Uuid\UuidFactory->uuid4()
#5 /srv/www/listingnaples.com/vendor/laravel/telescope/src/IncomingEntry.php(74): Illuminate\Support\Str::orderedUuid()
#6 /srv/www/listingnaples.c in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php on line 506
[email protected]:/srv/www/listingnaples.com$ php artisan --version
 Laravel Framework 5.7.26
PHP Fatal error:  Uncaught Error: Call to undefined function Moontoast\Math\bcadd() in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php:506
Stack trace:
#0 /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php(62): Moontoast\Math\BigNumber->setValue('155368753468842')
#1 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php(49): Moontoast\Math\BigNumber->__construct('155368753468842')
#2 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Generator/CombGenerator.php(72): Ramsey\Uuid\Converter\Number\BigNumberConverter->toHex('155368753468842')
#3 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/UuidFactory.php(235): Ramsey\Uuid\Generator\CombGenerator->generate(16)
#4 /srv/www/listingnaples.com/vendor/laravel/framework/src/Illuminate/Support/Str.php(552): Ramsey\Uuid\UuidFactory->uuid4()
#5 /srv/www/listingnaples.com/vendor/laravel/telescope/src/IncomingEntry.php(74): Illuminate\Support\Str::orderedUuid()
#6 /srv/www/listingnaples.c in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php on line 506
PHP Fatal error:  Uncaught Error: Call to undefined function Moontoast\Math\bcadd() in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php:506
Stack trace:
#0 /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php(62): Moontoast\Math\BigNumber->setValue('155368753468927')
#1 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php(49): Moontoast\Math\BigNumber->__construct('155368753468927')
#2 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/Generator/CombGenerator.php(72): Ramsey\Uuid\Converter\Number\BigNumberConverter->toHex('155368753468927')
#3 /srv/www/listingnaples.com/vendor/ramsey/uuid/src/UuidFactory.php(235): Ramsey\Uuid\Generator\CombGenerator->generate(16)
#4 /srv/www/listingnaples.com/vendor/laravel/framework/src/Illuminate/Support/Str.php(552): Ramsey\Uuid\UuidFactory->uuid4()
#5 /srv/www/listingnaples.com/vendor/laravel/telescope/src/IncomingEntry.php(74): Illuminate\Support\Str::orderedUuid()
#6 /srv/www/listingnaples.c in /srv/www/listingnaples.com/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php on line 506

The problem is, I really have no idea how to solve it! It is a dependency issue, no?

Please sign in or create an account to participate in this conversation.