Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Can't make dump() work any longer

Started by Muut Archive 10 years ago · 9 replies · 800 views
10 years ago

Dump used to work fine but I seem to have turned it off somehow. What have I done wrong? In /Applications/MAMP/htdocs/user/config/system.yaml I have

YAML
debugger:
  enabled: true
  twig: true
  shutdown:
    close_connection: true

[NB in the documentation at https://learn.getgrav.org/advanced/debugging the screensnip shows enabled: false but I presume that's a mistake? Anyway, I've tried both.]

My template includes this:

TWIG
<h4>dump </h4>{{ dump(page.header) }}

And the rest of the template is working - it shows the content and the children fine. But I don't get a little G icon leading to the debug bar.

Help appreciated!

10 years ago

It wasn't. On seeing your question I tried again with

YAML
cache:
  enabled: true

in /Applications/MAMP/htdocs/user/config/system.yaml, but I still don't get a debug bar.

10 years ago

Have you somehow disabled JQuery in your theme/site? The debugbar needs JQuery to work. You can probably check your browser's console for any JS errors that are being output.

10 years ago

No messages at all in the Chrome javascript console.

10 years ago

Do you have any other environment configuration files like localhost/config/system.yaml ?

10 years ago

Only the ones that were supplied. Shall I do a fresh install?

10 years ago

Fixed the docs.

Keep cache disabled to make sure older settings are not cached. Also try clearing thge cache.

Additionally, you theme must correctly output javascript and css.
You can check one of the GetGrav-provided skeletons (i.e. Blog Site) as an example.

10 years ago

I'm using Antimatter, unchanged afaik. I'll try starting over.

10 years ago

I restarted with a new install and the problem has gone away.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago