Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug liquid tags in Octopress / Jekyll

Any ideas how to see where liquid tags actually fail?

To be clearer, I'm having some trouble with a plugin and all I see on previewing my site is

Liquid Error: can’t convert Array into String

On my site. How do I get more debug information? Thanks

like image 471
Toby Avatar asked Oct 21 '22 18:10

Toby


1 Answers

Try to run rake generate with --trace for more detailed information.

rake generate --trace

Commonly, it will give exactly where the error is promoted.Then simply print some variables or use debugger to debug.

This blog may be helpful.

like image 145
Goofy Avatar answered Oct 25 '22 19:10

Goofy