Due to https://www.drupal.org/sa-contrib-2019-019, updated to 1.25. Getting this error:

PHP Fatal error: Cannot redeclare Drupal\\jsonapi\\Controller\\EntityResource::$renderer in /var/www/public/drupal8/modules/contrib/jsonapi/src/Controller/EntityResource.php on line 103

Comments

micheljp created an issue. See original summary.

micheljp’s picture

  /**
   * The renderer.
   *
   * @var \Drupal\Core\Render\RendererInterface
   */
  protected $renderer;

repeated directly beneath on line 98 in file: Controller/EntityResource.php

gabesullice’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +API-First Initiative

Hi @micheljp, thanks for reporting this! Unfortunately, I'm not able to replicate this myself or find the duplicated code.

Please double check that:

  1. You're not running a patched version of JSON:API
  2. You're using an outdated version JSON:API Extras (if you're using it at all)

It looks like you might have accidentally copied and pasted something or applied an outdated patch.

wim leers’s picture

Category: Bug report » Support request

Given that no one else has reported this as a bug in nearly a week, changing category.

wim leers’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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