Hi, I have installed Magento 2 and both front end and back work fine without any errors. I am trying to install the sample data using Composer but I'm having some trouble. I have followed the instructions but i am not sure what to do next as everything seems to have worked but the sample data is not showing.
I ran the below;
php <Magento install dir>/bin/magento sampledata:deploy
I used the keys from my account, I then ran the upgrade;
php <Magento install dir>/bin/magento setup:upgrade
It stated "Please re-run Magento compile command" so i ran the below;
php <Magento install dir>/bin/magento setup:di:compile
It returned "Generated code and dependency injection configuration successfully." What should i do next as there is no sample data showing. Any help on this would be appreciated. Thanks
Are any sample products visible through the backend?
Hi, thanks for the fast reply. No i cant see anything under products. I'm running magento 2.0.2 and php 7.0.3
Does your root's composer.json file contain the sample data packages?
This is the contents of the file composer.json
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.0.2",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
],
"require": {
"magento/product-community-edition": "2.0.2",
"composer/composer": "@alpha",
"magento/module-bundle-sample-data": "100.0.*",
"magento/module-theme-sample-data": "100.0.*",
"magento/module-widget-sample-data": "100.0.*",
"magento/module-catalog-sample-data": "100.0.*",
"magento/module-customer-sample-data": "100.0.*",
"magento/module-cms-sample-data": "100.0.*",
"magento/module-catalog-rule-sample-data": "100.0.*",
"magento/module-sales-rule-sample-data": "100.0.*",
"magento/module-review-sample-data": "100.0.*",
"magento/module-tax-sample-data": "100.0.*",
"magento/module-sales-sample-data": "100.0.*",
"magento/module-grouped-product-sample-data": "100.0.*",
"magento/module-downloadable-sample-data": "100.0.*",
"magento/module-msrp-sample-data": "100.0.*",
"magento/module-configurable-sample-data": "100.0.*",
"magento/module-product-links-sample-data": "100.0.*",
"magento/module-wishlist-sample-data": "100.0.*",
"magento/module-swatches-sample-data": "100.0.*",
"magento/sample-data-media": "100.0.*",
"magento/module-offline-shipping-sample-data": "100.0.*"
},
"require-dev": {
"phpunit/phpunit": "4.1.0",
"squizlabs/php_codesniffer": "1.5.3",
"phpmd/phpmd": "@stable",
"pdepend/pdepend": "2.2.2",
"sjparkinson/static-review": "~4.1",
"fabpot/php-cs-fixer": "~1.2",
"lusitanian/oauth": "~0.3 <=0.7.0"
},
"config": {
"use-include-path": true
},
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/",
"Magento\\": "app/code/Magento/"
},
"psr-0": {
"": "app/code/"
},
"files": [
"app/etc/NonComposerComponentRegistration.php"
]
},
"autoload-dev": {
"psr-4": {
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"minimum-stability": "alpha",
"prefer-stable": true,
"extra": {
"magento-force": "override"
}
}
Does the vendor/magento folder contain the sample data packages?
What am i looking for exactly? I can see folders eg module-sample-data, module-catalog-import-export etc
Does the app/etc/config.php file contain the Magento_SampleData module?
yes it does 'Magento_SampleData' => 1,
<?php
return array (
'modules' =>
array (
'Magento_Store' => 1,
'Magento_AdvancedPricingImportExport' => 1,
'Magento_Directory' => 1,
'Magento_Theme' => 1,
'Magento_Backend' => 1,
'Magento_Backup' => 1,
'Magento_Eav' => 1,
'Magento_Customer' => 1,
'Magento_BundleImportExport' => 1,
'Magento_CacheInvalidate' => 1,
'Magento_AdminNotification' => 1,
'Magento_Indexer' => 1,
'Magento_CatalogImportExport' => 1,
'Magento_Cms' => 1,
'Magento_Rule' => 1,
'Magento_Catalog' => 1,
'Magento_Search' => 1,
'Magento_CatalogUrlRewrite' => 1,
'Magento_Widget' => 1,
'Magento_Quote' => 1,
'Magento_CheckoutAgreements' => 1,
'Magento_SalesSequence' => 1,
'Magento_CmsUrlRewrite' => 1,
'Magento_Config' => 1,
'Magento_ConfigurableImportExport' => 1,
'Magento_Msrp' => 1,
'Magento_Contact' => 1,
'Magento_Cookie' => 1,
'Magento_Cron' => 1,
'Magento_CurrencySymbol' => 1,
'Magento_Bundle' => 1,
'Magento_CustomerImportExport' => 1,
'Magento_Deploy' => 1,
'Magento_Developer' => 1,
'Magento_Dhl' => 1,
'Magento_Authorization' => 1,
'Magento_Downloadable' => 1,
'Magento_ImportExport' => 1,
'Magento_Payment' => 1,
'Magento_Email' => 1,
'Magento_User' => 1,
'Magento_Fedex' => 1,
'Magento_Sales' => 1,
'Magento_CatalogInventory' => 1,
'Magento_GoogleAnalytics' => 1,
'Magento_GoogleOptimizer' => 1,
'Magento_GroupedImportExport' => 1,
'Magento_GroupedProduct' => 1,
'Magento_DownloadableImportExport' => 1,
'Magento_Checkout' => 1,
'Magento_Integration' => 1,
'Magento_LayeredNavigation' => 1,
'Magento_Marketplace' => 1,
'Magento_MediaStorage' => 1,
'Magento_CatalogRule' => 1,
'Magento_Multishipping' => 1,
'Magento_ConfigurableProduct' => 1,
'Magento_Newsletter' => 1,
'Magento_OfflinePayments' => 1,
'Magento_SalesRule' => 1,
'Magento_PageCache' => 1,
'Magento_Captcha' => 1,
'Magento_Paypal' => 1,
'Magento_Persistent' => 1,
'Magento_ProductAlert' => 1,
'Magento_ProductVideo' => 1,
'Magento_Authorizenet' => 1,
'Magento_Reports' => 1,
'Magento_RequireJs' => 1,
'Magento_Review' => 1,
'Magento_Rss' => 1,
'Magento_CatalogRuleConfigurable' => 1,
'Magento_Braintree' => 1,
'Magento_OfflineShipping' => 1,
'Magento_GoogleAdwords' => 1,
'Magento_SampleData' => 1,
'Magento_CatalogSearch' => 1,
'Magento_SendFriend' => 1,
'Magento_Ui' => 1,
'Magento_Sitemap' => 1,
'Magento_NewRelicReporting' => 1,
'Magento_Swagger' => 1,
'Magento_Swatches' => 1,
'Magento_Tax' => 1,
'Magento_TaxImportExport' => 1,
'Magento_GiftMessage' => 1,
'Magento_Translation' => 1,
'Magento_Shipping' => 1,
'Magento_Ups' => 1,
'Magento_UrlRewrite' => 1,
'Magento_EncryptionKey' => 1,
'Magento_Usps' => 1,
'Magento_Variable' => 1,
'Magento_Version' => 1,
'Magento_Webapi' => 1,
'Magento_Weee' => 1,
'Magento_CatalogWidget' => 1,
'Magento_Wishlist' => 1,
),
);
But the "Magento_CatalogSampleData" is absent, it is a sign of the problem.
Does the vendor/magento folder contain the module-catalog-sample-data subfolder?