Drupal10 access denied and PHP deprecated error fix

Created on 10 March 2023, over 1 year ago
Updated 10 February 2024, 10 months ago

Problem/Motivation

Revision Graph tab is not shown on Drupal10.

Accessing revision graph page directly causes access denied error.
web/node/1/revision_graph > access denied.

Steps to reproduce

Install the module 2.1.0 with composer and enable the module.
Login as a administrator.
Open any node. Revision Graph tab is not shown.

Proposed resolution

It seems routing.yml needs to be updated after drupal9.3.x.
https://www.drupal.org/node/3161210

By changing requirements section, the module started working properly.
But Drupal reported Passing null to parameter #1 ($string) of type string is deprecated error.
I made a slight code change to the src/Controller/RevisionGraphNodeController.php file.
https://www.drupal.org/project/node_read_time/issues/3305744 🐛 Deprecated function: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\node_read_time\Calculate\ReadingTime->calculateReadingTime() Fixed

Remaining tasks

User interface changes

API changes

Data model changes

I made a patch for fixing these. I'm happy if I can be of some help.

Thank you very much,

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024