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

Error in QueryController, missing metastoreApiResponse #3809

Closed
thierrydallacroce opened this issue Jul 25, 2022 · 0 comments
Closed

Error in QueryController, missing metastoreApiResponse #3809

thierrydallacroce opened this issue Jul 25, 2022 · 0 comments

Comments

@thierrydallacroce
Copy link
Contributor

The Datastore's QueryController extends AbstractQueryController, and uses its $metastoreApiResponse on line 45 in:

return $this->metastoreApiResponse->cachedJsonResponse(

However, AbstractQueryController declares that property as private, rendering it unreachable by its children, resulting in the following PHP error:

Error: Call to a member function cachedJsonResponse() on null in Drupal\datastore\Controller\QueryController->formatResponse()
(line 45 of .../docroot/modules/contrib/dkan/modules/datastore/src/Controller/QueryController.php)

#0 .../docroot/modules/contrib/dkan/modules/datastore/src/Controller/AbstractQueryController.php(142): Drupal\datastore\Controller\QueryController->formatResponse(Object(Drupal\datastore\Service\DatastoreQuery), Object(RootedData\RootedJsonData), Array, Object(Drupal\Core\Http\InputBag))
@github-actions github-actions bot added this to Incoming/Triage in DKAN 2 Issue Triage Jul 25, 2022
@thierrydallacroce thierrydallacroce closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2022
DKAN 2 Issue Triage automation moved this from Incoming/Triage to Closed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant