laravel-debugbar-companion icon indicating copy to clipboard operation
laravel-debugbar-companion copied to clipboard

Can't get it working on macOs BigSur with PHP 8

Open thinkstudeo opened this issue 3 years ago • 8 comments

macOs version: 11.1 php version: 8.0 companion app version: 0.1.0 Laravel Valet 2.13.16

Steps I followed:

  • updated barryvdh/laravel-debugbar to v 3.5.2
  • vendor:publish the config file
  • downloaded the .dmg from releases page & moved it to applications

Modified the config/debugbar.php as

'storage' => [
        'enabled'    => true,
        'driver'     => 'socket', // redis, file, pdo, socket, custom
        'path'       => storage_path('debugbar'), // For file driver
        'connection' => null,   // Leave null for default connection (Redis/PDO)
        'provider'   => '', // Instance of StorageInterface for custom driver
        'hostname'   => '127.0.0.1', // Hostname to use with the "socket" driver
        'port'       => 2304, // Port to use with the "socket" driver
    ],

But when I open the app it shows Screenshot 2021-01-06 at 02 49 56

What am I missing? Why doesn't it work?

thinkstudeo avatar Jan 08 '21 19:01 thinkstudeo

@thinkstudeo I was having the same issue - as the instructions say to use driver: app but I've just seen you have driver: socket. I've switched to this and it's now working for me. I'm running Valet and PHP v7.4. However I can see you've already got that set in your debugbar config.

Is DebugBar already running on your front end?

csoutham avatar Jan 09 '21 09:01 csoutham

Is DebugBar already running on your front end?

@csoutham Yes it is. And I tried switching to PHPv7.4.13 (via brew) but still the same

Laravel Valet 2.13.16

thinkstudeo avatar Jan 09 '21 09:01 thinkstudeo

Same here PHP 7.4.5 Windows 10 Laravel 8.12

image image image

leandrodiogenes avatar Jan 10 '21 17:01 leandrodiogenes

@leandrodiogenes You can try changing the driver-setting in config/debugbar.php to socket. The 0.1 release doesn't have the latest information.

DavyDeCoster avatar Jan 11 '21 14:01 DavyDeCoster

Can't get it to work either. Did some debugging and it sends the encoded payload to the socket, but the app doesn't do much 😄

Debugbar v3.5.2 Laravel Framework 8.20.1 PHP 7.4.13 macOS 10.15.7

Screen Shot 2021-01-12 at 6 53 47 PM

sebastiaanluca avatar Jan 12 '21 17:01 sebastiaanluca

@sebastiaanluca Can you look in the dev-tools of the app and see if there's a error in the console? Could be a problem which is fixed already, but isn't released yet.

DavyDeCoster avatar Jan 12 '21 18:01 DavyDeCoster

@DavyDeCoster Ah yes!

chunk-vendors.51d78ec2.js:6 TypeError: Cannot read property 'count' of undefined
    at o (app.dbed4ebf.js:1)
    at o.Tn.e._render (chunk-vendors.51d78ec2.js:6)
    at o.r (chunk-vendors.51d78ec2.js:6)
    at rr.get (chunk-vendors.51d78ec2.js:6)
    at rr.run (chunk-vendors.51d78ec2.js:6)
    at Xn (chunk-vendors.51d78ec2.js:6)
    at Array.<anonymous> (chunk-vendors.51d78ec2.js:6)
    at _t (chunk-vendors.51d78ec2.js:6)

Noticed https://github.com/beyondcode/laravel-debugbar-companion/issues/7#issuecomment-757999274 (same issue). Will try to build the master, thanks!

sebastiaanluca avatar Jan 12 '21 18:01 sebastiaanluca

Building it from the master does solve the issue. Thanks @DavyDeCoster @sebastiaanluca for pointing the direction

thinkstudeo avatar Jan 12 '21 21:01 thinkstudeo