Laravel-debugbar: Debugbar exception: A non well formed numeric value encountered

Created on 8 Jan 2017  路  10Comments  路  Source: barryvdh/laravel-debugbar

Don't know what happens. The same project, in Windows XAMPP it's ok but in my Mac with laravel Valet it don't show anything. The error log said "local.ERROR: Debugbar exception: A non well formed numeric value encountered". I'm on Laravel 5.2

Most helpful comment

I solved this by updating my composer dependencies with composer update.

This issue had to do with the symfony/var-dumper library. This issue with php 7 was already reported (https://github.com/symfony/symfony/pull/19379) and fixed (https://github.com/symfony/var-dumper/blob/v2.7.16/Cloner/VarCloner.php#L318) since var-dumper 2.7.16.

I have composer.lock under version control so it would always pull versions from that file, and it's been a while since I updated my project's dependencies, so I had an old version of debugbar, which in turn had an older version of var-dumper (2.7.13).

Hopefully it will be the solution for others as well.

All 10 comments

Which php version?

PHP 7. I think because it is on Nginx (Valet 2). I tried to use XAMPP for Mac that use Apache and it works.

I've the same error but i run the application with php artisan serve
My spec:

  • php 7.1
  • laravel/framework v5.1.31
  • barryvdh/laravel-debugbar v2.2.3

Same error here when upgraded my version of Laravel Homestead

PHP version 7.1
DebugBar version 2.2.2
Laravel version 5.1.35

I solved this by updating my composer dependencies with composer update.

This issue had to do with the symfony/var-dumper library. This issue with php 7 was already reported (https://github.com/symfony/symfony/pull/19379) and fixed (https://github.com/symfony/var-dumper/blob/v2.7.16/Cloner/VarCloner.php#L318) since var-dumper 2.7.16.

I have composer.lock under version control so it would always pull versions from that file, and it's been a while since I updated my project's dependencies, so I had an old version of debugbar, which in turn had an older version of var-dumper (2.7.13).

Hopefully it will be the solution for others as well.

@dexbarrett Was a solution for me

@dexbarrett thank you, composer update did the job

@dexbarrett thank you a lot, it worked for me

Great, it fixed for me too

tanya

help me resolve my problem. I make features export excel, but I blocked the date data Type in mysql and I also have erorr like this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beneverard picture beneverard  路  6Comments

MRZ2017 picture MRZ2017  路  3Comments

lucasdcrk picture lucasdcrk  路  3Comments

Thijmen picture Thijmen  路  6Comments

ddmo picture ddmo  路  3Comments