Timber throughs an error when loading page
-
Hi,
Thanks for this great plugin, unfortunately we have run into a problem with the timber plugin, which we have not been able to resolve ourself.
We get an error – Notice: Array to string conversion in /data/www/html/greenpeace-usa/develop/usa/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Environment.php(330) : eval()’d code on line 24
ArrayThe code on that line in the Environment.php
if (!class_exists($cls, false)) {
if (false === $cache = $this->getCacheFilename($name)) {
eval(‘?>’.$this->compileSource($this->getLoader()->getSource($name), $name));We know that we have duplicate post_meta and if we delete the post_meta, it works fine. With duplicate post_meta data, it shows an error and our home page is not loading giving us that error.
Our home page uses Advanced Custom Fields (ACF) – to created the various aspects of the home page, it includes a number of posts. If I remove the links to the posts, the page loads, there is no content.
When loading meta values, should it not be a check if it’s loads an array or a string.
Appreciate any help,
Thanks
Torbjorn
- The topic ‘Timber throughs an error when loading page’ is closed to new replies.