Skip Navigation

Fatal error on the Toolset Dashboard page when using 3rd-party plugins that use WordPress REST API

Resolved

Reported for: Toolset Blocks 1.1.2

Symptoms

When activating any Toolset plugin like Views, Blocks or Layouts on a site that has an active third-party plugin which hooks into the REST API you might see a fatal PHP error on the ToolsetDashboard or ToolsetSettings screen.

The following error is the one you’d see if you use the Google Site Kit Plugin, one of the plugins with which this issue happens :

Fatal error: Uncaught TypeError: Argument 1 passed to Google\Site_Kit\Core\REST_API\REST_Routes::register_routes() must be an instance of WP_REST_Server, string given, called in .../google-site-kit/includes/Core/REST_API/REST_Routes.php on line 93 and defined in .../google-site-kit/includes/Core/REST_API/REST_Routes.php on line 105

Workaround

6 thought on Fatal error on the Toolset Dashboard page when using 3rd-party plugins that use WordPress REST API

Comments are closed