Closed (fixed)
Project:
Config Pages
Version:
8.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jun 2019 at 09:33 UTC
Updated:
20 Jun 2019 at 09:49 UTC
Jump to comment: Most recent
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 :)
| Comment | File | Size | Author |
|---|---|---|---|
| config-pages-controller.patch | 2.03 KB | gun_dose |
Comments
Comment #3
shumer commentedBuggy release it was :(