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

Error running new project-config/rebuild command #4062

Closed
benface opened this issue Mar 27, 2019 · 2 comments
Closed

Error running new project-config/rebuild command #4062

benface opened this issue Mar 27, 2019 · 2 comments

Comments

@benface
Copy link
Contributor

benface commented Mar 27, 2019

Description

I'm trying to use the new project-config/rebuild CLI command and getting this error:

Rebuilding the project config from the current state ... error: Argument 1 passed to craft\helpers\Json::decodeIfJson() must be of the type string, null given, called in .../vendor/craftcms/cms/src/services/ProjectConfig.php on line 1607

Additional info

  • Craft version: 3.1.20
  • PHP version: PHP 7.1.23
  • Database driver & version: MySQL 5.7.25
@brandonkelly
Copy link
Member

Fixed for the next release.

To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "dev-develop#5713b9ec4865fb058ab46ac4c062e152cd737e99 as 3.1.20",
  "...": "..."
}

Then run composer update.

@brandonkelly
Copy link
Member

Just released 3.1.20.1 with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants