pimcore / data-hub

Data delivery & consumption platform for Pimcore.
Other
124 stars 105 forks source link

Class 'Pimcore\Bundle\DataHubBundle\GraphQL\Resolver\Service' not found #331

Closed Johnystardust closed 3 years ago

Johnystardust commented 3 years ago

There is a class not found at /var/www/pimcore/vendor/pimcore/data-hub/src/GraphQL/Resolver/QueryType.php:250 This class is missing in the use statements.

[2021-03-30 13:16:45] php.CRITICAL: Class 'Pimcore\Bundle\DataHubBundle\GraphQL\Resolver\Service' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'Pimcore\\Bundle\\DataHubBundle\\GraphQL\\Resolver\\Service' not found at /var/www/pimcore/vendor/pimcore/data-hub/src/GraphQL/Resolver/QueryType.php:250)"} [] [2021-03-30 13:17:29] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "Service" from namespace "Pimcore\Bundle\DataHubBundle\GraphQL\Resolver". Did you forget a "use" statement for e.g. "Google_Service_Appengine_Service", "Google_Service_CloudRun_Service", "Google_Service_Cloudbilling_Service", "Google_Service_DataprocMetastore_Service", "Google_Service_Monitoring_Service", "Google_Service_ServiceConsumerManagement_Service", "Google_Service_ServiceDirectory_Service", "Google_Service_ServiceManagement_Service", "Google_Service_ServiceNetworking_Service", "Google_Service_ServiceUser_Service", "Google_Service_ShoppingContent_Service", "Sabre\Xml\Service", "Sabre\DAV\Xml\Service", "Pimcore\Model\Asset\Service", "Pimcore\Model\Asset\WebDAV\Service", "Pimcore\Model\DataObject\ClassDefinition\Service", "Pimcore\Model\DataObject\Classificationstore\Service", "Pimcore\Model\DataObject\Service", "Pimcore\Model\Document\Hardlink\Service", "Pimcore\Model\Document\Service", "Pimcore\Model\Element\Export\Service", "Pimcore\Model\Element\Import\Service", "Pimcore\Model\Element\Service", "Pimcore\Model\User\Service", "Pimcore\Model\Webservice\Service", "Pimcore\Bundle\DataHubBundle\GraphQL\Service", "Pimcore\DataObject\Consent\Service", "Pimcore\DataObject\GridColumnConfig\Service", "Pimcore\DataObject\Import\Service", "Pimcore\Workflow\Service", "Google\Service", "FrontendPermissionToolkitBundle\Service" or "Amnuts\Opcache\Service"?" at /var/www/pimcore/vendor/pimcore/data-hub/src/GraphQL/Resolver/QueryType.php line 250 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"Service\" from namespace \"Pimcore\\Bundle\\DataHubBundle\\GraphQL\\Resolver\".\nDid you forget a \"use\" statement for e.g. \"Google_Service_Appengine_Service\", \"Google_Service_CloudRun_Service\", \"Google_Service_Cloudbilling_Service\", \"Google_Service_DataprocMetastore_Service\", \"Google_Service_Monitoring_Service\", \"Google_Service_ServiceConsumerManagement_Service\", \"Google_Service_ServiceDirectory_Service\", \"Google_Service_ServiceManagement_Service\", \"Google_Service_ServiceNetworking_Service\", \"Google_Service_ServiceUser_Service\", \"Google_Service_ShoppingContent_Service\", \"Sabre\\Xml\\Service\", \"Sabre\\DAV\\Xml\\Service\", \"Pimcore\\Model\\Asset\\Service\", \"Pimcore\\Model\\Asset\\WebDAV\\Service\", \"Pimcore\\Model\\DataObject\\ClassDefinition\\Service\", \"Pimcore\\Model\\DataObject\\Classificationstore\\Service\", \"Pimcore\\Model\\DataObject\\Service\", \"Pimcore\\Model\\Document\\Hardlink\\Service\", \"Pimcore\\Model\\Document\\Service\", \"Pimcore\\Model\\Element\\Export\\Service\", \"Pimcore\\Model\\Element\\Import\\Service\", \"Pimcore\\Model\\Element\\Service\", \"Pimcore\\Model\\User\\Service\", \"Pimcore\\Model\\Webservice\\Service\", \"Pimcore\\Bundle\\DataHubBundle\\GraphQL\\Service\", \"Pimcore\\DataObject\\Consent\\Service\", \"Pimcore\\DataObject\\GridColumnConfig\\Service\", \"Pimcore\\DataObject\\Import\\Service\", \"Pimcore\\Workflow\\Service\", \"Google\\Service\", \"FrontendPermissionToolkitBundle\\Service\" or \"Amnuts\\Opcache\\Service\"? at /var/www/pimcore/vendor/pimcore/data-hub/src/GraphQL/Resolver/QueryType.php:250)"} []

weisswurstkanone commented 3 years ago

fixed via https://github.com/pimcore/data-hub/commit/307f5dedb7b7d6696174c9e78c33ae650e254fe9