Search code examples
phpwordpresstwigtimber

TWIG/Timber dump function leads to "fatal error"


I'm trying to use the dump function as was advides by a bunch of people, so I could get a better hang of Timber/TWIG.

However when I try it i get the following error:

Fatal error: Uncaught Twig_Error_Syntax: Unknown "dump" function.

I am confused, since this should be included in Timber itsself. Another thing is that ACF (Wordpress) functions don't seem to work.


Solution

  • Just enable the WP debug in wp-config.

    define('WP_DEBUG', true);