Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save more than one flag when running PHP 7.2 #3

Closed
bernsno opened this issue Oct 2, 2018 · 2 comments
Closed

Unable to save more than one flag when running PHP 7.2 #3

bernsno opened this issue Oct 2, 2018 · 2 comments
Labels

Comments

@bernsno
Copy link

bernsno commented Oct 2, 2018

We're experiencing an issue running Cache-Flag in PHP 7.2 which is related to a known issue in Yii: yiisoft/yii#4167.

We have one flag currently set in the CP. When we try to add additional flags beneath it we get the error PHP 7.2: count(): Parameter must be an array or an object that implements Countable and when the page is reloaded the new flag is gone. If we add a flag above the existing one we see the same error but when the page is reloaded the new flag remains.

We have not been able to replicate the issue in PHP 7.1 with the same data store (postgres). There are no errors appearing in the PHP or Web log for Craft.

cache-flag-error

To Replicate

  1. When running PHP 7.2 add a new flag in the CP.
  2. If that was your first flag, attempt to add a second flag.
  3. You should see the red flash notice (screenshot attached)

Environment Information:

PHP version | 7.2.8
PostgreSQL 9.6.6
Imagick 3.4.3 (ImageMagick 6.7.8-9)
Craft Pro 3.0.25
Yii Version 2.0.15.1

@mmikkel
Copy link
Owner

mmikkel commented Oct 2, 2018

Hi @bernsno – thanks for the detailed report! I'll take a look at that ASAP.

@mmikkel
Copy link
Owner

mmikkel commented Oct 2, 2018

@bernsno Fixed in v. 1.0.3.

@mmikkel mmikkel closed this as completed Oct 2, 2018
@mmikkel mmikkel added the bug label Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants