Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Fixed incompatibility with PHP 7.2+#1

Open
nakov wants to merge 1 commit into
wp-plugins:masterfrom
nakov:patch-1
Open

Fixed incompatibility with PHP 7.2+#1
nakov wants to merge 1 commit into
wp-plugins:masterfrom
nakov:patch-1

Conversation

@nakov
Copy link
Copy Markdown

@nakov nakov commented Nov 14, 2019

The "Hyper Cache Extended" plugin for WordPress (version 1.6.3) is not compatible with PHP 7.2, PHP 7.3 and later. It produces a Warning at line 492 in cache.php, like this:

Warning: Invalid argument supplied for foreach() in /.../wp-content/plugins/hyper-cache-extended/cache.php on line 392

This is because in PHP 7.2+ the foreach loop no longer supports iterating over null / missing / invalid collections. You need to add a check for null or invalid collection. This is what I added in this pull request.

See detailed bug report here: https://wordpress.org/support/topic/hyper-cache-extended-not-compatible-with-php-7-2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant