Wednesday, October 17, 2018

Yoast Bug Gantry Template In WordPress

In a blog I work on I started getting errors when users clicked on the blog title.  The full error is:

Fatal error: Method Timber\FunctionWrapper::__toString() must not throw an exception, caught TypeError: Argument 1 passed to WPSEO_Admin_Bar_Menu::get_post_focus_keyword() must be an instance of WP_Post, instance of Timber\Post given, called in /home/scdadmin16/public_html/blog/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 204 in /home/scdadmin16/public_html/blog/wp-content/cache/gantry5/g5_hydrogen/twig/96/96aca6301dc11bbb5234da96587e2f18dbe5b513750ada3a3e16c3299489a720.php on line 0

A Google search lead me to the following page which says it is a Yoast issue and will be resolved in the 8.1 update from Yoast.

I hope this helps someone else out there…