Closed (fixed)
Project:
Simple Social Share
Version:
1.0.5
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2025 at 09:47 UTC
Updated:
11 Dec 2025 at 08:14 UTC
Jump to comment: Most recent
Title: Fix TypeError in SimpleSocialShareBlock during search indexing when route is null
Description: Problem: When running search indexing (e.g., via drush search-api:index), a TypeError occurs in SimpleSocialShareBlock::build(). This happens because the block attempts to retrieve the current page title using the current route, but in the indexing context (CLI), \Drupal::routeMatch()->getRouteObject() returns null.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
ahmad-alyasaki commented