I'm using MB Views to create a header for my Post pages. And I've got some additional Twig-based functionality on the site that requires Timber.
Everything seems to work fine until I add a date field with a filter to MB Views. Then my front-end templates throw an error.
The specific error is:
Fatal error: Uncaught TypeError: Argument 1 passed to twig_date_format_filter() must be an instance of Twig\Environment, instance of MetaBox\Dependencies\Twig\Environment given, called in /Users/matt/Local Sites/center-blueprint/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/dependencies/Twig/Environment.php(358) : eval()'d code on line 37 and defined in /Users/matt/Local Sites/center-blueprint/app/public/wp-content/plugins/timber-library/vendor/twig/twig/src/Extension/CoreExtension.php on line 41
I've posted the full call trace here.
I've removed all other plugins besides Meta Box and Timber and the problem persists. I've reduced my MB Views template to just the date field: {{ post.date | date( 'F j, Y' ) }}
and it is clearly the date field that triggers it.
I'm using MB AIO 1.15.2 and Timber 1.19.1, which I think are the latest versions of each.
I don't know if my issue is related to this one, but it sounds like it could be.