Problem/Motivation

drush updatedb

The following updates are pending:

charts module :
Update the existing default config display colors to increase from 10 to 25.
Initialize advanced requirements cdn config value.

Do you wish to run all pending updates? (y/n): y
count(): Parameter must be an array or an object that implements Countable charts.post_update.php:30 [warning]

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork charts-3278272

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SocialNicheGuru created an issue. See original summary.

andileco’s picture

Hi @SocialNicheGuru - thanks for upgrading (or attempting!). A few questions:

What version of Charts were you upgrading from?
Had you previously saved the default configuration at /admin/config/content/charts ?
If you save configuration at /admin/config/content/charts and then reattempt the update, does that work?

Thanks!

nikathone made their first commit to this issue’s fork.

  • andileco committed 3eada0d on 5.0.x authored by nikathone
    Issue #3278272 by nikathone: Update causes error:  count(): Parameter...
andileco’s picture

Status: Active » Fixed
andileco’s picture

@SocialNicheGuru - this is fixed in 5.0.x, but the answers to my questions in comment #2 would still be very helpful.

socialnicheguru’s picture

i hadn't touch charts at all.
I will try it and retry the update. although it does look like it went through

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.