You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Timber (just inherited a site that uses it) and I just upgraded to Timber 1.3. The site was using a beta version from roughly 8 years ago.
Per the Timber Upgrade guide, I changed the Routes::map syntax which cleared up one PHP error. However, after the upgrade I'm getting a series of repeated PHP warnings in the Timber plugin MenuItem class:
"implode(): Invalid arguments passed in /wp-content/plugins/timber-library/lib/MenuItem.php on line 177."
public function import_classes( $data ) {
if ( is_array($data) ) {
$data = (object) $data;
}
$this->classes = array_merge($this->classes, $data->classes);
$this->classes = array_unique($this->classes);
$this->classes = apply_filters('nav_menu_css_class', $this->classes, $this, array(), 0);
$this->class = trim(implode(' ', $this->classes)); <-- line 177
}
Another potential (unrelated?) detail: The install I inherited is using composer. Functions.php does not have the autoload.php statement, and when I tried to insert it at the top of the file, the site showed several errors. New to composer, but guessing the autoload.php is already being run? Without the statement in functions.php, the site still loads, but I get PHP warnings above the site.
Steps to reproduce behavior
Loading site home page
What version of WordPress, PHP and Timber are you using?
WordPress 4.7.5, PHP 5.6, Timber 1.3.3
How did you install Timber?
Downloaded from WordPress.org
The text was updated successfully, but these errors were encountered:
I'm new to Timber (just inherited a site that uses it) and I just upgraded to Timber 1.3. The site was using a beta version from roughly 8 years ago.
Per the Timber Upgrade guide, I changed the Routes::map syntax which cleared up one PHP error. However, after the upgrade I'm getting a series of repeated PHP warnings in the Timber plugin MenuItem class:
"implode(): Invalid arguments passed in /wp-content/plugins/timber-library/lib/MenuItem.php on line 177."
Another potential (unrelated?) detail: The install I inherited is using composer. Functions.php does not have the autoload.php statement, and when I tried to insert it at the top of the file, the site showed several errors. New to composer, but guessing the autoload.php is already being run? Without the statement in functions.php, the site still loads, but I get PHP warnings above the site.
Steps to reproduce behavior
Loading site home page
What version of WordPress, PHP and Timber are you using?
WordPress 4.7.5, PHP 5.6, Timber 1.3.3
How did you install Timber?
Downloaded from WordPress.org
The text was updated successfully, but these errors were encountered: