Forums › Forums › OroCRM › OroCRM – Installation/Technical Issues or Problems › Upgrade 1.3.0 > master
This topic contains 6 replies, has 4 voices, and was last updated by Yevhen Shyshkin 9 years, 6 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- September 1, 2014 at 3:48 am #26243
Hi Guys,
We try to upgrade OroCRM from 1.3.0 to the latest master since we need some of the new features from the nightly builds. Unfortunately, there were few attempts on different servers with the same error.
After php app/console oro:platform:update –force execution we always get the same error123456789101112131415161718192021....Loading workflow definitions...> task_flow> b2b_flow_lead> b2b_flow_sales> b2b_flow_sales_funnel> b2c_flow_abandoned_shopping_cart> b2c_flow_order_follow_upLoading process definitions...> magento_customer_creationLoading process triggers...> magento_customer_creation:createPHP Warning: get_class() expects parameter 1 to be object, array given in vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php on line 58...[Doctrine\Common\Persistence\Mapping\MappingException]Class '' does not exist[RuntimeException]The command terminated with an exit code: 1.We are using OroCRM <- Magento flow to sync carts/orders/customers. Maybe someone also faced with that issue and has some ideas how to solve it.
Thanks
- CreatorTopic
- AuthorReplies
- September 4, 2014 at 1:54 am #26244
Hello, Rogyar.
Please, put here full trace of get_class warning – you can find it either in console or in error logs.
September 4, 2014 at 10:21 pm #26245Sure, here is:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364Process migrations...> Oro\Bundle\EntityExtendBundle\Migration\RefreshExtendCacheMigration> Oro\Bundle\EntityConfigBundle\Migration\UpdateEntityConfigMigration> Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendConfigMigration> Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendIndicesMigrationLoading workflow definitions...> task_flow> b2b_flow_lead> b2b_flow_sales> b2b_flow_sales_funnel> b2c_flow_abandoned_shopping_cart> b2c_flow_order_follow_upLoading process definitions...> magento_customer_creationLoading process triggers...> magento_customer_creation:createPHP Warning: get_class() expects parameter 1 to be object, array given in ~/Sites/oro_cpk/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php on line 58PHP Stack trace:PHP 1. {main}() ~/Sites/oro_cpk/app/console:0PHP 2. Symfony\Component\Console\Application->run() ~/Sites/oro_cpk/app/console:23PHP 3. JMS\JobQueueBundle\Console\Application->doRun() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() ~/Sites/oro_cpk/vendor/jms/job-queue-bundle/JMS/JobQueueBundle/Console/Application.php:44PHP 5. Symfony\Component\Console\Application->doRun() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96PHP 6. Symfony\Component\Console\Application->doRunCommand() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191PHP 7. Symfony\Component\Console\Command\Command->run() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:898Warning: get_class() expects parameter 1 to be object, array given in ~/Sites/oro_cpk/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php on line 58Call Stack:0.0004 229072 1. {main}() ~/Sites/oro_cpk/app/console:00.7716 36197856 2. Symfony\Component\Console\Application->run() ~/Sites/oro_cpk/app/console:230.7757 36428368 3. JMS\JobQueueBundle\Console\Application->doRun() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:1210.7757 36428456 4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() ~/Sites/oro_cpk/vendor/jms/job-queue-bundle/JMS/JobQueueBundle/Console/Application.php:440.9328 42222272 5. Symfony\Component\Console\Application->doRun() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:960.9431 42223536 6. Symfony\Component\Console\Application->doRunCommand() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:1911.0303 47619216 7. Symfony\Component\Console\Command\Command->run() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:8981.0310 47623464 8. Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->execute() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:2441.6167 51831688 9. Oro\Bundle\SearchBundle\Engine\Orm->reindex() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Command/LoadDataFixturesCommand.php:873.2665 67810808 10. Oro\Bundle\SearchBundle\Engine\Orm->reindexSingleEntity() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:6740.0372 159662368 11. Oro\Bundle\SearchBundle\Engine\Orm->save() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:9440.0372 159662368 12. Oro\Bundle\SearchBundle\Engine\Orm->saveItemData() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:15340.0376 159662368 13. Oro\Bundle\SearchBundle\Entity\Repository\SearchIndexRepository->getItemsForEntities() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:16940.0534 160000176 14. Doctrine\Common\Util\ClassUtils::getClass() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Entity/Repository/SearchIndexRepository.php:10440.0534 160000224 15. get_class() ~/Sites/oro_cpk/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php:58PHP 8. Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->execute() ~/Sites/oro_cpk/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244PHP 9. Oro\Bundle\SearchBundle\Engine\Orm->reindex() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Command/LoadDataFixturesCommand.php:87PHP 10. Oro\Bundle\SearchBundle\Engine\Orm->reindexSingleEntity() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:67PHP 11. Oro\Bundle\SearchBundle\Engine\Orm->save() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:94PHP 12. Oro\Bundle\SearchBundle\Engine\Orm->saveItemData() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:153PHP 13. Oro\Bundle\SearchBundle\Entity\Repository\SearchIndexRepository->getItemsForEntities() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:169PHP 14. Doctrine\Common\Util\ClassUtils::getClass() ~/Sites/oro_cpk/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Entity/Repository/SearchIndexRepository.php:104PHP 15. get_class() ~/Sites/oro_cpk/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php:58[Doctrine\Common\Persistence\Mapping\MappingException]Class '' does not existoro:migration:data:load [--fixtures-type[="..."]] [--dry-run] [--bundles[="..."]] [--exclude[="..."]][RuntimeException]The command terminated with an exit code: 1.September 5, 2014 at 1:58 am #26246Please, in order of debug try to disable reindexation in command LoadDataFixturesCommand. To do that comment two following lines – this and this.
If it help you I’ll commit this fix to master. Also it would be great to debug which entity triggers this issue – to do that you can run oro:search:reindex command and check whether it will trigger errors.
September 8, 2014 at 7:40 am #26247Hello @rogyar!
Can you please put following expression there and give us a result
if (!is_object($entity)) { var_dump($entity); die; }
Also, do you have some changes in this file ? Just to be sure, because line numbers do not match code in master.
September 9, 2014 at 11:57 pm #26248I got this page by googling with the error message.
In my case I was trying to check my Migration Script like:
1php app/console oro:migration:data:load --dry-run --bundles AcmeBundleand gets the following message twice:
1PHP Warning: get_class() expects parameter 1 to be object, array given in (Omitting)/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php on line 58“php app/console oro:search:reindex” failed with the above message as well.
When I put the debug codes I got:
1array(0) {}I kept debugging the code and found if I change the following:
12345678910111213141516// vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/AbstractEngine.phpprotected function reindexSingleEntity($entityName){// Omitting$entities = array();foreach ($iterator as $entity) {// Omittingif (0 == $itemsCount % static::BATCH_SIZE) {$this->save($entities, true);$entities[] = array(); // <============================}to this:
12345678910111213protected function reindexSingleEntity($entityName){// Omitting$entities = array();foreach ($iterator as $entity) {// Omittingif (0 == $itemsCount % static::BATCH_SIZE) {$this->save($entities, true);$entities = array(); // <============== Take out "[]"}In my case Account Entity has got over 1000 records so that “if” statement is applied and $entities[Times of 1000] has got empty Array and got error at further logic.
September 10, 2014 at 1:33 am #26249Hello, Hiro.
Yes, look’s like this is the issue – we’ll fix it ASAP.
- AuthorReplies
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.