Ndugu
September 15, 2025, 12:23pm
1
I get that error message when I try to locally open my project wird Herd. Before I was updating Herd to 1.22.1.
What is wrong here?
Fatal error : Cannot redeclare dump() (previously declared in phar:///Applications/Herd.app/Contents/Resources/valet/dump.phar/vendor/autoload.php:29) in /Users/…/kirby/config/helpers.php on line 115
texnixe
September 15, 2025, 12:57pm
2
Which version of Kirby are you using. From version 3.7 you can set the following in your index.php to disable Kirby’s dump helper:
define('KIRBY_HELPER_DUMP', false);
Ndugu
September 15, 2025, 12:58pm
3
I am using 3.9.8
like this?
This didn’t help. What do I get wrong?
No, like below. define should be before require:
Ndugu
September 15, 2025, 1:50pm
5
I don’t have no library or framework installed!
texnixe
September 15, 2025, 1:52pm
6
But Laravel Herd uses the Laravel dumper. So you need to add the above to your index.php
Ndugu
September 15, 2025, 1:57pm
7
like this?
define(‘KIRBY_HELPER_DUMP’, false);
require DIR . ‘/kirby/laravel.php’;
echo (new Kirby)->render();
Ndugu
September 15, 2025, 2:39pm
8
Ah, you mean “define” before “require” like this:
And `` echo (new kirby)→render(); ’’ at the end, I guess
Sorry to reopen this thread, but is there a solution for this that works with Kirby 2?
I am about upgrade an old site but seeing this error usng Herd. Is the there a K2 equivalent of the above?
I recently updated a Kirby 2 site and simply commented out the dump function in kirby/vendor/getkirby/toolkit/helpers.php. It’s still in line 115
1 Like
Thank you @thguenther I will give that a shot.