Resolved
Reported for: Toolset Blocks 1.1.2
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 Toolset → Dashboard or Toolset → Settings 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
Does the patch still work? I did the recommended and still got the error
Maybe you use more than one Toolset Plugin, hence you’d to apply the patch to each Toolset Plugin featuring the same file (Forms, Views, Blocks, Layouts, Types)
If then the issue persists we could better help in a Support Ticket so we could eventually log in and see what is happening.
Hi Beda,
Thank you.
I’ve updated the file at 3 other locations and it works well now.
Dave
Has the Toolset Blocks 1.1.3 update fixed this issue?
To update this question, has the Toolset Blocks 1.2 update fixed this issue?
I’m suspecting it may be fixed. I upgraded to Blocks 1.2, installed Google Site Kit, checked the Toolset Dashboard and Settings pages, and both functioned normally.