Lopsum's avatar

Laravel dd() doesn't work since 8.32 update

Hello everyone !

I've a little problem since I update my laravel project from 8.17 to 8.32. Since, the dd() helper doesn't work and return a blank page what ever whatever I put inside...

In a new Laravel 8.32 empty project, dd() helper work so I suppose there's a problem with my code but without any error, I don't know where to look... Do you have any idea what might be causing the problem?

Here my composer.json if that can help you :

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "intervention/image": "^2.5",
        "laravel/framework": "^8.12",
        "laravel/telescope": "^4.4",
        "laravel/tinker": "^2.5",
        "livewire/livewire": "^2.3",
        "santigarcor/laratrust": "^6.3",
        "twbs/bootstrap": "^4.5"
    },
    "require-dev": {
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "jason-guru/laravel-make-repository": "^0.0.3",
        "laravel/breeze": "^1.0",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3.3"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

Thanks in advance for your help :)

0 likes
11 replies
simonmgc's avatar

Thank goodness it's not just me. I'd assumed it was something I broken while messing around with my remember me issues today!

Tray2's avatar

Does the welcome screen display or is it just white as well?

If it's white check the permissions on the storage directory.

abrada's avatar

Check function dump(). Also broken?

Tray2's avatar

What Operating system are you using?

Linux MacOS Windows

Usually when the screen is blank the webserver doesn't have access to the storage directory.

If you are using Linux/Mac you can run

sudo chmod -R 755 ./storage

And try again.

abrada's avatar

Hmm... If the error can not be caught, try the this method. Delete the folder "vendor", and run again "composer install". Download again all packages

Lopsum's avatar

It's a local projet. I'm using Laragon with Windows. Nothing change with the permissions on storage folder. But as I say : it's since the composer update that dd doesn't work. If I open the same project but on Laravel 8.17 : everything work.

With a fresh installation of Laravel 8.32 via Laravel CLI, dd() work too.

simonmgc's avatar

var_dump($request); puts my browser (Firefox) into some kind of perpetual loop. I force quit after a few minutes.

simonmgc's avatar

With the Firefox console open on my Mac, dd($request) just gives a white screen, but var_dump($request) gives this message in the console after about 10 seconds:-

The document tree is too deep. The tree will be flattened to be 513 elements deep.

dd() was working for me earlier in the day. I did a lot of stuff today and I think one may have been a composer update. I have just tried the storage permissions command above.

1 like
Lopsum's avatar

Oh god thank you ! Fixed in Telescope v4.4.6. :)

1 like

Please or to participate in this conversation.