Treast / kirby-debugbar

PHP Debug Bar for KirbyCMS
MIT License
17 stars 0 forks source link

Can't install #5

Closed ImaCrea closed 1 year ago

ImaCrea commented 1 year ago

Hello there !

This plugin looks great and I'd love to use it. Though when I install it with composer, then my website is blank. body is empty, nothing seems to work :/ And this by just installing through composer. Without adding the snippet in the footer even.

Not sure where to look to find some clues as I'm pretty new with kirby and all but if you tell me where to have a look I can do some investigation and tell you.

cheers

Treast commented 1 year ago

Hello,

Can you try to activate the debug mode and see if there is any error ? https://getkirby.com/docs/guide/troubleshooting/debugging

ImaCrea commented 1 year ago

Hi ! Thanks for your quick reply :)

It's already activated. But all I get is this :

Capture d’écran 2023-06-06 à 11 29 31

For any page.

Treast commented 1 year ago

And you had something before installing the plugin ? Seems weird

May you create a repo with your project ?

ImaCrea commented 1 year ago

Yes I agree it's weird. Yes I have a website fully working. The second I remove the plugin it all comes back. 🤔

The project is not fully ready yet to publish it to a public repo I'm afraid.

Treast commented 1 year ago

Please check the requirements :

If you installed it again, does the folder site/plugins/debugbar/ exist ? Is there files inside ?

ImaCrea commented 1 year ago

I'm on PHP 8.2 and Kirby 3.9. Yes the folder appears correctly and it seems to be installed.

Other plugins installed : fabianmichael/kirby-meta and sylvainjule/embed

I'm working from the Plainkit.

Treast commented 1 year ago

Ok, I got it. It was a problem with a library used by the package creating a conflict with KirbyCMS.

In order to fix this error, change your index.php file at the root to :

<?php

define('KIRBY_HELPER_DUMP', false);

require __DIR__ . '/kirby/bootstrap.php';

echo (new Kirby)->render();

Then it should be fine 😄

ImaCrea commented 1 year ago

Yay it's better, thanks !

But.. I can't see the debugbar for some reasons 🤔 I open another ticket for that ^^'