I just installed Magento 2.1.6, also installed Composer. When I tried to import the sample data, it gave me error of Installation Failed mentioning possible causing:
- A typo in the package name
- The package is not available in stable enough version.
LUMA theme is activated, and now when I run the project in browser, it shows the header, top menu with categories and footer, whereas the homepage middle section is blank. I can browse through the categories, Listing page and detail page (No images are shown).
Please guide me, what I'm missing or which direction I've to move to make the home page content and images viewable.
Best Answer
Please follow following steps to install sample data for magento 2.
Add dependencies to the
composer.json
:Run:
Deploy sample data:
Enable sample data modules:
Remove old files:
Upgrade magento files:
Recompile files:
Do reindex:
Deploy static content:
I tried it few days back and it worked without issue.
Source: https://stackoverflow.com/questions/32668486/magento2-how-to-install-sample-data-after-magento-setup/38240597#38240597