Forums › Forums › OroCommerce › how to import sample data?
This topic contains 2 replies, has 3 voices, and was last updated by gunendrapatil 6 years, 7 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- June 8, 2016 at 3:51 pm #31135
we installed the orocommerce successfully but the database is blank. how to import the demo data?
thanks - CreatorTopic
- AuthorReplies
- July 5, 2016 at 11:02 am #31136
The sample data can be imported during installation. Both the web-based installation wizard and the command-line wizard have a corresponding option.
It is still possible, though not advisable (because the demo data and the data entered manually before might be out of sync), to install the sample data later with the app/console tool:
Shell1app/console oro:migration:data:load --fixtures-type=demo -vvvSeptember 10, 2017 at 8:21 am #31137Error loading sample data. I am using php 7.0.22
Shell12345678910111213141516171819202122232425> loading Oro\Bridge\CallCRM\Migrations\Data\Demo\ORM\LoadCallData[Symfony\Component\Debug\Exception\ContextErrorException]Warning: rand() expects parameter 2 to be integer, float givenException trace:() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\crm\src\Oro\Bridge\CallCRM\Migrations\Data\Demo\ORM\LoadCallData.php:128Symfony\Component\Debug\ErrorHandler->handleError() at n/a:n/arand() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\crm\src\Oro\Bridge\CallCRM\Migrations\Data\Demo\ORM\LoadCallData.php:128Oro\Bridge\CallCRM\Migrations\Data\Demo\ORM\LoadCallData->persistDemoCalls() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\crm\src\Oro\Bridge\CallCRM\Migrations\Data\Demo\ORM\LoadCallData.php:59Oro\Bridge\CallCRM\Migrations\Data\Demo\ORM\LoadCallData->load() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\doctrine\data-fixtures\lib\Doctrine\Common\DataFixtures\Executor\AbstractExecutor.php:121Doctrine\Common\DataFixtures\Executor\AbstractExecutor->load() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\doctrine\data-fixtures\lib\Doctrine\Common\DataFixtures\Executor\ORMExecutor.php:88Doctrine\Common\DataFixtures\Executor\ORMExecutor->Doctrine\Common\DataFixtures\Executor\{closure}() at n/a:n/acall_user_func() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php:233Doctrine\ORM\EntityManager->transactional() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\doctrine\data-fixtures\lib\Doctrine\Common\DataFixtures\Executor\ORMExecutor.php:90Doctrine\Common\DataFixtures\Executor\ORMExecutor->execute() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\platform\src\Oro\Bundle\MigrationBundle\Migration\DataFixturesExecutor.php:49Oro\Bundle\MigrationBundle\Migration\DataFixturesExecutor->execute() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\platform\src\Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand.php:169Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->executeFixtures() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\platform\src\Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand.php:152Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->processFixtures() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\platform\src\Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand.php:77Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->execute() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\oro\commerce-crm\src\Oro\Bundle\DemoDataCommerceCRMBundle\Command\LoadDataFixturesCommand.php:32Oro\Bundle\DemoDataCommerceCRMBundle\Command\LoadDataFixturesCommand->execute() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:259Symfony\Component\Console\Command\Command->run() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:866Symfony\Component\Console\Application->doRunCommand() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:193Symfony\Component\Console\Application->doRun() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:92Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:124Symfony\Component\Console\Application->run() at D:\OroCommerce\Orocommerce.loc\web\orocommerce-application\app\console:22oro:migration:data:load [–fixtures-type [FIXTURES-TYPE]] [–dry-run] [–bundles [BUNDLES]] [–exclude [EXCLUDE]] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–current-user CURRENT-USER] [–current-organization CURRENT-ORGANIZATION] [–disabled-listeners DISABLED-LISTENERS] [–] <command> - AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.