How to use ECK on Drupal 7 in a PHP8 environment?

Created on 8 October 2024, 6 months ago

I am running Drupal 7 on a hosting environment that is shifting to PHP8.

I get white screens with the following error messages:

Deprecated function: Return type of DBObject::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() 

Deprecated function: Return type of DBObject::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() 

Deprecated function: Return type of DBObject::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() 

How can I fix it? I've tried searching through the issue queue, but it's quite hard to follow as all the patches are for the Drupal 8 version of eck. Some of the issues switch between Drupal 7 & Drupal 8 versions.

💬 Support request
Status

Active

Component

Miscellaneous

Created by

🇬🇧United Kingdom big_smile

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

Comments & Activities

Production build 0.71.5 2024