Hi that's me again :)
I installed config_pages module, created config_pages type and tried to edit my config page, but instead of edit form I saw WSOD with the following error:

TypeError: Argument 4 passed to Drupal\config_pages\Controller\ConfigPagesController::__construct() must be an instance of Drupal\config_pages\Controller\QueryFactory, instance of Drupal\Core\Entity\Query\QueryFactory given, called in /var/www/html/www/modules/contrib/config_pages/src/Controller/ConfigPagesController.php on line 53 в Drupal\config_pages\Controller\ConfigPagesController->__construct()

This is because in latest versions use Drupal\Core\Entity\Query\QueryFactory; statement is missed.

But QueryFactory is deprecated, and we should use

$config_page_ids = $this->ConfigPagesStorage
      ->getQuery()

instead of it.

Patch with fix is attached :)

CommentFileSizeAuthor
config-pages-controller.patch2.03 KBgun_dose

Comments

gun_dose created an issue. See original summary.

  • shumer committed a16c89d on 8.x-2.x authored by gun_dose
    Issue #3059865 by gun_dose: ConfigPagesController is broken
    
shumer’s picture

Status: Active » Fixed

Buggy release it was :(

Status: Fixed » Closed (fixed)

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