Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Site crashes due to php error:
ParseError: syntax error, unexpected '=' in block_title_link.module on line 124
Steps to reproduce
Install module on a site running on php 7.0.33 (debian stretch)
Proposed resolution
Although nice, compact code i assume you need PHP >= 7.1. for it
Remaining tasks
You may split line 124 in block_title_link.module
[$entity_type, $entity_id] = explode('/', substr($uri, 7), 2);
into two assignments
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 3228403-2.patch | 623 bytes | Neslee Canil Pinto |
Comments
Comment #2
Neslee Canil Pinto@u.kurilla can you try this patch
Comment #3
u.kurilla CreditAttribution: u.kurilla as a volunteer commentedPatch #2 works fine. Problem solved. Thx Neslee.
Comment #4
Neslee Canil Pinto@u.kurilla thanks for the confirmation
Comment #6
Neslee Canil Pinto