I’ve it only once in the template.. that is the weird thing. And when I get the pdf invoice in an order it works fine. But when I want to get it in bulk, woommerce -> orders -> bulk actions -> select a couple orders -> pdf invoice ; than I get that error.