PHP warning on saving node

Created on 14 October 2021, over 2 years ago
Updated 2 August 2023, 11 months ago

Problem/Motivation

Installed the module in Varbase Distro using Drupal Core 9.2.7. That leads to a PHP error. Maybe the code is not updated to PHP7.4, right now.

Get the following error message when saving a node that matches a bundle content readability is enabled for

Fix Trying to access array offset on value of type null in content_readability_form_node_form_alter() (line 72 of modules/contrib/content_readability/content_readability.module).

Steps to reproduce

Install Varbaase latest Stable or at least Drupal Core 9.2.7.+
You need to use a stack useing at least php 7.4 to reproduce that issue.

Stack the error was occoring on:

β†’

Proposed resolution

Check the module with PHP7.4 and try to reproduce the error.
If you can do so maybe there is an easy way to fix it.
I am not a programmer so I am not sure how to handle this

Remaining tasks

  • Reproduce
  • Test
  • Fix
  • Write patch
  • Commit patch

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Joachim Namyslo Bayreuth πŸ‡©πŸ‡ͺ πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024