Create object via API Pimcore\Model\DataObject was not found


#1

I have installed the Bitnami Pimcore image on Oracle Cloud for evaluation (https://bitnami.com/stack/pimcore). It is running Pimcore version 5.5.4.

The API succesfully returns data for an object (a product in this example) however when an attempt it made to create a new object via the API the following response is thrown:

{
“success”: false,
“msg”: “Loader for “Pimcore\Model\DataObject\” was not found”
}

Futher information from the dev.log shows:

[2018-11-29 14:01:50] pimcore.ERROR: Pimcore\Loader\ImplementationLoader\Exception\UnsupportedException: Loader for “Pimcore\Model\DataObject” was not found in /opt/bitnami/apps/pimcore/htdocs/vendor/pimcore/pimcore/lib/Loader/ImplementationLoader/ImplementationLoader.php:103 Stack trace: #0 /opt/bitnami/apps/pimcore/htdocs/vendor/pimcore/pimcore/lib/Model/Factory.php(48): Pimcore\Loader\ImplementationLoader\ImplementationLoader->build(‘Pimcore\Model\D…’, Array) #1 /opt/bitnami/apps/pimcore/htdocs/vendor/pimcore/pimcore/models/Webservice/Service.php(675): Pimcore\Model\Factory->build(‘Pimcore\Model\D…’) #2 /opt/bitnami/apps/pimcore/htdocs/vendor/pimcore/pimcore/bundles/AdminBundle/Controller/Rest/Element/DataObjectController.php(579): Pimcore\Model\Webservice\Service->createObjectConcrete(Object(Pimcore\Model\Webservice\Data\DataObject\Concrete\In)) #3 /opt/bitnami/apps/pimcore/htdocs/vendor/pimcore/pimcore/bundles/AdminBundle/Controller/Rest/Element/DataObjectController.php(237): Pimcore\Bundle\AdminBundle\Controller\Rest\Element\DataObjectController->createObject(‘object’, Array) #4 /opt/bitnami/apps/pimcore/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(151): Pimcore\Bundle\AdminBundle\Controller\Rest\Element\DataObjectController->createAction(Object(Symfony\Component\HttpFoundation\Request)) #5 /opt/bitnami/apps/pimcore/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #6 /opt/bitnami/apps/pimcore/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(200): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #7 /opt/bitnami/apps/pimcore/htdocs/web/app.php(42): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #8 {main}

Any suggestions on how to resolve this?


#2

Same issue. I’m setting the type as “object” and my className is properly set. You have any luck?


#3

No luck… the flexibility of the API is a big plus for this product, shame it doesn’t seem to work