Hi,

On D8.6.10 after JSONAPI update to 2.3.0 the site is dead with watchdog error

"ArgumentCountError: Too few arguments to function Drupal\jsonapi\ResourceType\ResourceTypeRepository::__construct(), 3 passed in (...)"

Does anyone else have the same issue?

Comments

jakubmroz created an issue. See original summary.

jakubmroz’s picture

Managed to make it work ***but with dropping all tables***

I have wiped all database tables with drush sql:drop reinstalled Drupal and now JSONAPI is on 2.3.0 and work.
So it looks like there's an issue when you update the module.

Would like someone to have a look at this too so it won't break anyone's live site.

wim leers’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Needs review » Postponed (maintainer needs more info)
Issue tags: +API-First Initiative

JSON:API 2.3 was released nearly a month ago and you're the first to report this.

Did you load /update.php after performing the update?

wim leers’s picture

Status: Postponed (maintainer needs more info) » Fixed

In hindsight, we should've added an empty hook_update_N() so users are notified of the need to run update hooks. This would have trigger a container rebuild and hence prevented this problem.

The upcoming 2.4 release already contains an update hook, so this will soon be a problem of the past.

Sorry for the frustration, won't happen again!

Status: Fixed » Closed (fixed)

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