PHP 8 compatibility

Created on 4 September 2024, 4 months ago

Problem/Motivation

I'm using simplenews 7.x-1.1 with PHP 8.
On every cron execution I've this php error:
Call to undefined function each() in SimplenewsSpool->nextSource() (line 273 of /var/www/public/sites/all/modules/simplenews/includes/simplenews.source.inc).

Proposed resolution

Fix code by removing the old php functions

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India sahal_va

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024