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

Site studio rebuild issue with bool entity. #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rakshithtb
Copy link

Resolve issue with package rebuild
[33mIn ProcessBase.php line 171:[39m [37;41m [39;49m [37;41m [InvalidArgumentException] [39;49m [37;41m Unable to decode output into JSON: Syntax error [39;49m [37;41m [39;49m [37;41m TypeError: Drupal\cohesion\UsageUpdateManager::buildRequires(): Argument #1 [39;49m [37;41m ($entity) must be of type Drupal\Core\Entity\EntityInterface, bool given, [39;49m [37;41m called in /mnt/www/html/veoliaportal01dev/docroot/modules/contrib/cohesion/ [39;49m [37;41m modules/cohesion_sync/src/Controller/BatchImportController.php on line 410 [39;49m [37;41m in Drupal\cohesion\UsageUpdateManager->buildRequires() (line 159 of /mnt/ww [39;49m [37;41m w/html/veoliaportal01dev/docroot/modules/contrib/cohesion/src/UsageUpdateMa [39;49m [37;41m nager.php). [39;49m [37;41m

@mazeikis
Copy link

mazeikis commented Jan 4, 2024

Hi @rakshithtb and @gauravjeet,

This is an issue we are currently investigating and will hopefully address in one of the upcoming releases. Our approach will be different, as this value should never be null. This conditional check only obfuscates the real issue and gets database into incorrect state.
Regardless of that, this public repository is managed by release automation and this PR will be closed during the next release as a side effect of force push.

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

Successfully merging this pull request may close these issues.

3 participants