Magento 2 - Error importing sample data












-1















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.










share|improve this question





























    -1















    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.










    share|improve this question



























      -1












      -1








      -1








      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.










      share|improve this question
















      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.







      magento2 sample-data luma-theme






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 16 '17 at 6:51









      Teja Bhagavan Kollepara

      2,94841847




      2,94841847










      asked May 16 '17 at 6:22









      m_uxm_ux

      11




      11






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Please follow following steps to install sample data for magento 2.





          1. Add dependencies to the composer.json:



            composer require magento/module-bundle-sample-data:100.1.0 magento/module-widget-sample-data:100.1.0 magento/module-theme-sample-data:100.1.0 magento/module-catalog-sample-data:100.1.0 magento/module-customer-sample-data:100.1.0 magento/module-cms-sample-data:100.1.0  magento/module-catalog-rule-sample-data:100.1.0 magento/module-sales-rule-sample-data:100.1.0 magento/module-review-sample-data:100.1.0 magento/module-tax-sample-data:100.1.0 magento/module-sales-sample-data:100.1.0 magento/module-grouped-product-sample-data:100.1.0 magento/module-downloadable-sample-data:100.1.0 magento/module-msrp-sample-data:100.1.0 magento/module-configurable-sample-data:100.1.0 magento/module-product-links-sample-data:100.1.0 magento/module-wishlist-sample-data:100.1.0 magento/module-swatches-sample-data:100.1.0 magento/sample-data-media:100.1.0 magento/module-offline-shipping-sample-data:100.1.0 --no-update



          2. Run:



            composer update



          3. Deploy sample data:



            bin/magento sampledata:deploy



          4. Enable sample data modules:



            bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData



          5. Remove old files:



            rm -rf var/cache/* var/page_cache/* var/generation/*



          6. Upgrade magento files:



            bin/magento setup:upgrade



          7. Recompile files:



            bin/magento setup:di:compile



          8. Do reindex:



            bin/magento indexer:reindex



          9. Deploy static content:



            bin/magento setup:static-content:deploy



          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






          share|improve this answer































            0














            in step 9 , should use bin/magento setup:static-content:deploy -f; it works for me. thenks.






            share|improve this answer








            New contributor




            Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "479"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f174588%2fmagento-2-error-importing-sample-data%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Please follow following steps to install sample data for magento 2.





              1. Add dependencies to the composer.json:



                composer require magento/module-bundle-sample-data:100.1.0 magento/module-widget-sample-data:100.1.0 magento/module-theme-sample-data:100.1.0 magento/module-catalog-sample-data:100.1.0 magento/module-customer-sample-data:100.1.0 magento/module-cms-sample-data:100.1.0  magento/module-catalog-rule-sample-data:100.1.0 magento/module-sales-rule-sample-data:100.1.0 magento/module-review-sample-data:100.1.0 magento/module-tax-sample-data:100.1.0 magento/module-sales-sample-data:100.1.0 magento/module-grouped-product-sample-data:100.1.0 magento/module-downloadable-sample-data:100.1.0 magento/module-msrp-sample-data:100.1.0 magento/module-configurable-sample-data:100.1.0 magento/module-product-links-sample-data:100.1.0 magento/module-wishlist-sample-data:100.1.0 magento/module-swatches-sample-data:100.1.0 magento/sample-data-media:100.1.0 magento/module-offline-shipping-sample-data:100.1.0 --no-update



              2. Run:



                composer update



              3. Deploy sample data:



                bin/magento sampledata:deploy



              4. Enable sample data modules:



                bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData



              5. Remove old files:



                rm -rf var/cache/* var/page_cache/* var/generation/*



              6. Upgrade magento files:



                bin/magento setup:upgrade



              7. Recompile files:



                bin/magento setup:di:compile



              8. Do reindex:



                bin/magento indexer:reindex



              9. Deploy static content:



                bin/magento setup:static-content:deploy



              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






              share|improve this answer




























                1














                Please follow following steps to install sample data for magento 2.





                1. Add dependencies to the composer.json:



                  composer require magento/module-bundle-sample-data:100.1.0 magento/module-widget-sample-data:100.1.0 magento/module-theme-sample-data:100.1.0 magento/module-catalog-sample-data:100.1.0 magento/module-customer-sample-data:100.1.0 magento/module-cms-sample-data:100.1.0  magento/module-catalog-rule-sample-data:100.1.0 magento/module-sales-rule-sample-data:100.1.0 magento/module-review-sample-data:100.1.0 magento/module-tax-sample-data:100.1.0 magento/module-sales-sample-data:100.1.0 magento/module-grouped-product-sample-data:100.1.0 magento/module-downloadable-sample-data:100.1.0 magento/module-msrp-sample-data:100.1.0 magento/module-configurable-sample-data:100.1.0 magento/module-product-links-sample-data:100.1.0 magento/module-wishlist-sample-data:100.1.0 magento/module-swatches-sample-data:100.1.0 magento/sample-data-media:100.1.0 magento/module-offline-shipping-sample-data:100.1.0 --no-update



                2. Run:



                  composer update



                3. Deploy sample data:



                  bin/magento sampledata:deploy



                4. Enable sample data modules:



                  bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData



                5. Remove old files:



                  rm -rf var/cache/* var/page_cache/* var/generation/*



                6. Upgrade magento files:



                  bin/magento setup:upgrade



                7. Recompile files:



                  bin/magento setup:di:compile



                8. Do reindex:



                  bin/magento indexer:reindex



                9. Deploy static content:



                  bin/magento setup:static-content:deploy



                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






                share|improve this answer


























                  1












                  1








                  1







                  Please follow following steps to install sample data for magento 2.





                  1. Add dependencies to the composer.json:



                    composer require magento/module-bundle-sample-data:100.1.0 magento/module-widget-sample-data:100.1.0 magento/module-theme-sample-data:100.1.0 magento/module-catalog-sample-data:100.1.0 magento/module-customer-sample-data:100.1.0 magento/module-cms-sample-data:100.1.0  magento/module-catalog-rule-sample-data:100.1.0 magento/module-sales-rule-sample-data:100.1.0 magento/module-review-sample-data:100.1.0 magento/module-tax-sample-data:100.1.0 magento/module-sales-sample-data:100.1.0 magento/module-grouped-product-sample-data:100.1.0 magento/module-downloadable-sample-data:100.1.0 magento/module-msrp-sample-data:100.1.0 magento/module-configurable-sample-data:100.1.0 magento/module-product-links-sample-data:100.1.0 magento/module-wishlist-sample-data:100.1.0 magento/module-swatches-sample-data:100.1.0 magento/sample-data-media:100.1.0 magento/module-offline-shipping-sample-data:100.1.0 --no-update



                  2. Run:



                    composer update



                  3. Deploy sample data:



                    bin/magento sampledata:deploy



                  4. Enable sample data modules:



                    bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData



                  5. Remove old files:



                    rm -rf var/cache/* var/page_cache/* var/generation/*



                  6. Upgrade magento files:



                    bin/magento setup:upgrade



                  7. Recompile files:



                    bin/magento setup:di:compile



                  8. Do reindex:



                    bin/magento indexer:reindex



                  9. Deploy static content:



                    bin/magento setup:static-content:deploy



                  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






                  share|improve this answer













                  Please follow following steps to install sample data for magento 2.





                  1. Add dependencies to the composer.json:



                    composer require magento/module-bundle-sample-data:100.1.0 magento/module-widget-sample-data:100.1.0 magento/module-theme-sample-data:100.1.0 magento/module-catalog-sample-data:100.1.0 magento/module-customer-sample-data:100.1.0 magento/module-cms-sample-data:100.1.0  magento/module-catalog-rule-sample-data:100.1.0 magento/module-sales-rule-sample-data:100.1.0 magento/module-review-sample-data:100.1.0 magento/module-tax-sample-data:100.1.0 magento/module-sales-sample-data:100.1.0 magento/module-grouped-product-sample-data:100.1.0 magento/module-downloadable-sample-data:100.1.0 magento/module-msrp-sample-data:100.1.0 magento/module-configurable-sample-data:100.1.0 magento/module-product-links-sample-data:100.1.0 magento/module-wishlist-sample-data:100.1.0 magento/module-swatches-sample-data:100.1.0 magento/sample-data-media:100.1.0 magento/module-offline-shipping-sample-data:100.1.0 --no-update



                  2. Run:



                    composer update



                  3. Deploy sample data:



                    bin/magento sampledata:deploy



                  4. Enable sample data modules:



                    bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData



                  5. Remove old files:



                    rm -rf var/cache/* var/page_cache/* var/generation/*



                  6. Upgrade magento files:



                    bin/magento setup:upgrade



                  7. Recompile files:



                    bin/magento setup:di:compile



                  8. Do reindex:



                    bin/magento indexer:reindex



                  9. Deploy static content:



                    bin/magento setup:static-content:deploy



                  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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 16 '17 at 8:33









                  shaashwatoshaashwato

                  284




                  284

























                      0














                      in step 9 , should use bin/magento setup:static-content:deploy -f; it works for me. thenks.






                      share|improve this answer








                      New contributor




                      Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        in step 9 , should use bin/magento setup:static-content:deploy -f; it works for me. thenks.






                        share|improve this answer








                        New contributor




                        Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          in step 9 , should use bin/magento setup:static-content:deploy -f; it works for me. thenks.






                          share|improve this answer








                          New contributor




                          Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          in step 9 , should use bin/magento setup:static-content:deploy -f; it works for me. thenks.







                          share|improve this answer








                          New contributor




                          Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer






                          New contributor




                          Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 12 mins ago









                          Rubel HossainRubel Hossain

                          1011




                          1011




                          New contributor




                          Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Rubel Hossain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Magento Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f174588%2fmagento-2-error-importing-sample-data%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Polycentropodidae

                              Magento 2 Error message: Invalid state change requested

                              Paulmy