Hi Meta Box support,
I’m seeing multiple PHP deprecation notices from Meta Box AIO’s bundled Twig library when an MB View renders on the front end.
Environment
WordPress 7.0 site using Meta Box AIO / MB Views
PHP 8.5.6
Staging site
What happens
When our page with the MB View loads, PHP outputs repeated deprecation notices like:
Deprecated: eLightUp\Twig\Loader\FilesystemLoader::__construct(): Implicitly marking parameter $rootPath as nullable is deprecated, the explicit nullable type must be used instead
and similar notices from:
vendor/elightup/twig/Twig/Environment.php
vendor/elightup/twig/Twig/Parser.php
vendor/elightup/twig/Twig/TokenStream.php
vendor/elightup/twig/Twig/Node/...
The file paths point to:
/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/...
This appears only when the page renders an MB View / Twig template on the front end, which matches how MB Views works.
Current status
We have stopped the notices from displaying publicly by disabling front-end error display in WordPress, but they are still being generated under PHP 8.5.6 and can still affect logs / compatibility review.
Question
Can you confirm whether the current Meta Box AIO / MB Views release is fully compatible with PHP 8.5.6, and whether there is:
- a known fix already available,
- an upcoming patch for these Twig deprecation notices, or
- a recommended supported workaround?
Thanks.