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

Wvision\Bundle\DataDefinitionsBundle\Model\ExportDefinition::getById(): Argument #1 ($name) must be of type string, int given, called in vendor/coreshop/resource-bundle/Pimcore/PimcoreDaoRepository.php on line 96 #409

Open
dkarlovi opened this issue Feb 14, 2024 · 3 comments
Labels

Comments

@dkarlovi
Copy link
Collaborator

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Branch? master
@bramstroker
Copy link
Contributor

Same problem for our projects using data definitions with version 5.0.0 of the bundle.

@a-strusevich
Copy link

a-strusevich commented Apr 10, 2024

Hello, have same problem for our projects using data definitions with version 5.0. Has anyone solved this themselves?

Status: 500 | Internal Server Error
URL: /admin/data_definitions/import_definitions/list?_dc=1712736668981
Method: GET
Message: Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Dao::getByName(): Argument #1 ($id) must be of type ?string, int given, called in /var/www/html/vendor/instride/data-definitions/src/DataDefinitionsBundle/Model/ImportDefinition.php on line 102
Trace: 
in /var/www/html/vendor/instride/data-definitions/src/DataDefinitionsBundle/Model/ImportDefinition/Dao.php:74
#0 /var/www/html/vendor/instride/data-definitions/src/DataDefinitionsBundle/Model/ImportDefinition.php(102): Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Dao->getByName(135)
#1 /var/www/html/vendor/instride/data-definitions/src/DataDefinitionsBundle/Model/ImportDefinition/Listing/Dao.php(31): Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition::getByName(135)
#2 [internal function]: Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Listing\Dao->loadList()
#3 /var/www/html/vendor/pimcore/pimcore/lib/Model/AbstractModel.php(220): call_user_func_array(Array, Array)
#4 /var/www/html/vendor/instride/data-definitions/src/DataDefinitionsBundle/Model/ImportDefinition/Listing.php(51): Pimcore\Model\AbstractModel->__call('loadList', Array)
#5 /var/www/html/vendor/coreshop/resource-bundle/Pimcore/PimcoreDaoRepository.php(75): Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Listing->getObjects()
#6 /var/www/html/vendor/coreshop/resource-bundle/Controller/ResourceController.php(86): CoreShop\Bundle\ResourceBundle\Pimcore\PimcoreDaoRepository->findAll()
#7 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): CoreShop\Bundle\ResourceBundle\Controller\ResourceController->listAction(Object(Symfony\Component\HttpFoundation\Request))
#8 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#9 /var/www/html/vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#10 /var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#11 /var/www/html/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
#12 /var/www/html/public/index.php(19): require_once('/var/www/html/v...')
#13 {main}

@dkarlovi
Copy link
Collaborator Author

@bramstroker @a-strusevich @twin-elements feel free to PR here.

@dkarlovi dkarlovi added the bug label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants