We are using Timber v1 but are now required to migrate to v2 since Dreamhost will soon require that all sites are upgraded to PHP8.*]
Problem is, the new version is now working following the instructions. Here's the current fatal error:
Fatal error: Uncaught Error: Call to protected method Timber\Timber::init() from global scope in /home/wp_q5bibz/incrementumdigitalcom.stage.site/wp-content/themes/id/functions.php:26
Followed the instruction here: https://timber.github.io/docs/v2/installation/
As of today, the latest version is
2.0.0-rc.1. If you install Timber via Composer, make sure to install this specific version viacomposer require timber/timber:2.0.0-rc.1or change it in yourcomposer.json.Alternatively, download it from GitHub.
For more context, composer is currently automatically pulling timber/timber 1.22.1 as of early Oct. If you are new to composer, you can check all package versions with
composer.phar show. When updating to timber/timber:2.0.0-rc.1, you might also need to update dependencies. Composer will let you know what dependencies and you can update them with composer update package/package