PHP 7.4 error: Trying to access array offset on value of type bool

Created on 22 April 2021, over 3 years ago
Updated 17 May 2023, over 1 year ago

Problem/Motivation

We are testing Acquia Purge 1.3 (the current stable release) on Drupal 7.80, switching from PHP 7.3 to PHP 7.4.

When performing operations that trigger Acquia Purge under PHP 7.4, we are seeing a large number of Drupal Watchdog errors in the log stream.

Example:
Notice: Trying to access array offset on value of type bool in _acquia_purge_purge_requests() (line 1533 of …acquia_purge/acquia_purge.module
Notice: Trying to access array offset on value of type bool in _acquia_purge_purge_requests() (line 1532 of …acquia_purge/acquia_purge.module

Those are the only lines listed in the log stream.

Steps to reproduce

  1. Switch your Acquia environment to PHP 7.4.
  2. Open up the log stream and check Drupal Watchdog.
  3. Open up your Drupal 7 site and perform a save operation that triggers Acquia Purge.
  4. Observe the log stream.
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States notmike

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.71.5 2024