Giter Club home page Giter Club logo

magento2-sample-data's Introduction

Magento sample data includes a sample store, complete with more than 250 products (about 200 of them are configurable products), categories, promotional price rules, CMS pages, banners, and so on. Sample data uses the Luma theme on the storefront.

Installing sample data is optional.

Technically, sample data is a set of regular Magento modules, which can be deployed and installed together with the Magento instance, or later in the scope of upgrade.

Deploy Sample Data

You can deploy sample data from one of the following sources:

  • From the Magento composer repository, optionally using Magento CLI
  • From the Magento GitHub repository

If your Magento code base was cloned from the master branch, you can use either source of the sample data. If it was cloned from the develop branch, use the GitHub repository and choose to get sample data modules from the develop branch.

Deploy Sample Data from Composer Repository

To deploy sample data from the Magento composer repository using Magento CLI:

  1. If your Magento instance is already installed, skip this step. Otherwise, in the Magento root directory, run: # composer install.
  2. In the Magento root directory, run: # bin/magento sampledata:deploy. This command collects the dependencies from the suggest sections of the composer.json files of modules, which suggest to install sample data (like Magento_Catalog, Magento_Sales, and so on).

To deploy sample data from the Magento composer repository without Magento CLI:

  1. Specify sample data packages in the require section of the root composer.json file, for example:
{
    "require": {
        ...
        "magento/module-catalog-sample-data": "{version}",
        "magento/module-configurable-sample-data": "{version}",
        "magento/module-cms-sample-data": "{version}",
        "magento/module-sales-sample-data": "{version}"
        ....
    }
}

Where <version> is the version of the packages; it should correspond to the version of the Magento instance.

Each package corresponds to a sample data module. The complete list of available modules can be viewed in the [sample data GitHub repository] (https://github.com/magento/magento2-sample-data/tree/develop/app/code/Magento)

  1. To update the dependencies, in the Magento root directory, run: # composer update

Deploy Sample Data from GitHub Repository

To deploy sample data from the GitHub repository:

  1. Clone sample data from https://github.com/magento/magento2-sample-data. If your Magento instance was cloned from the master branch, choose the master branch when cloning sample data; choose the develop branch if Magento was cloned from develop.
  2. Link the sample data and your Magento instance by running: # php -f <sample-data_clone_dir>/dev/tools/build-sample-data.php -- --ce-source="<path_to_your_magento_instance>"

Install Sample Data

Once the sample data is deployed, it will be installed automatically when you install or upgrade your Magento instance by using the command line.

Uninstall Sample Data

To remove the sample data modules from the code base, run one of the following commands from the Magento root directory:

  • If sample data was deployed from the composer repository, run: # bin/magento sampledata:remove
  • If sample data was deployed from the GitHub repository and linked to your Magento instance, run: # php -f <sample-data_clone_dir>/dev/tools/build-sample-data.php โ€“ --command=unlink --ce-source="<path_to_your_magento_instance>"

To delete all the products and other entities provided by the sample data modules, delete the database and reinstall Magento with a clean database.

Reinstall Sample Data

If you have deleted certain entities provided by sample data and want to restore them, take the following steps:

  1. From the Magento root directory, run the following command: # bin/magento sampledata:reset
  2. Upgrade Magento as usual.

The deleted sample data entities will be restored. Those entities, which were changed, will preserve these changes and will not be restored to the default view.

Documentation

You can find the more detailed description of sample data manipulation procedures at Sample data overview.

magento2-sample-data's People

Contributors

cpartica avatar danielrenaud avatar dhorytskyi avatar dkvashninbay avatar dvoskoboinikov avatar eddielau avatar fascinosum avatar glo71317 avatar irenelagno avatar joanhe avatar joni-jones avatar magento-team avatar magicbunneh avatar mazhalai avatar nathanjosiah avatar nishant04412 avatar okolesnyk avatar orlangur avatar pdohogne-magento avatar pechenushko avatar rganin avatar ruslankostiv1 avatar safwkhan avatar sidolov avatar slavvka avatar tjwiebell avatar vladimirzaets avatar vpelipenko avatar xmav avatar zakdma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-sample-data's Issues

Configurable SampleData Products not visible

Hi there,

I cloned the repository and copied configurable sample data to my magento instance. After setup:upgrade I see the patch applied and in import history a job in status 'processing' but no products. What am I missing here?

Thanks in advance

Michael

Sample data should have more than 1 grouped product and more than 1 bundle product

There should be at least 10 of each product type for good testing and demo.

As there is only 1 of each, bugs and issues around these product types often go undetected and/or are impossible to demonstrate on a vanilla instance, which often means bugs get refused as "not reproductible". Eg: bugs in paging of grouped products or in sorting of bundles

Third party module developers often continue to neglect to test these products, because the sample data makes it clear they are 100 times less important than configurable.

I am willing to spend time creating such products but not if they will join all the pull requests with typo corrections etc. that have lingered since 2020.

Source LESS for fixtures CSS?

Hi there,

Any chance you could drop the source LESS into the same directory as the CSS for some of the sample data? Most notably

magento2-sample-data/app/code/Magento/CmsSampleData/fixtures/styles.css

Many thanks!
Wilson

[ReflectionException] Class Magento\Framework\Serialize\Serializer\Json does not exist

I used following commands on Magento EE 2.1.7 to install sample data.
OS - Ubuntu 14.04

cd <Magento_root_directory>
git clone https://github.com/magento/magento2-sample-data.git ./sample-data

php -f ./sample-data/dev/tools/build-sample-data.php -- --ce-source="."
All symlinks you can see at files:
<Magento_root_directory>/sample-data/dev/tools/exclude.log

After that, When I ran php bin/magento setup:upgrade, I get


[ReflectionException]                                             
Class Magento\Framework\Serialize\Serializer\Json does not exist

Cannot install sample-data even minimum-stability=dev

[ec2-user@ip-1***30 20151229141720]$ bin/magento sampledata:deploy 
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package magento/module-swatches-sample-data could not be found in any 
....
  Problem 20
    - The requested package magento/module-sales-rule-sample-data could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
There is an error during sample data deployment.

[ec2-user@ip-1***30 20151229141720]$ composer require magento/sample-data:~100.0.1
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package magento/sample-data could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

SQL File

Hi there, is it possible to get the final sql file ?

Add PageBuilder content

image

The sample data used throughout this module is entirely raw HTML, which makes it impossible to see how well a given theme handles PageBuilder content

I'd recommend that installing sampledata on a Commerce instance should send down PageBuilder content rather than this raw HTML.

Patial sample data installation with no images, when using Magento v2.4.4

When using installing sample-data on Magento 2.4.4, this only install few catalog products with no images.
(Products which get installed are under Gear)

Even after following the steps in below documentation still unable to the sample-date working.
https://devdocs.magento.com/guides/v2.4/install-gde/install/sample-data-after-composer.html

Current sample data version used - 100.4.*

Also noticed that pub/media/catalog/product is empty and pub/media/wysiwyg is not created.

Logs doesn't show any errors.

Any help is much appreciated, Thank you

Fatal error when installing sample data from CLI

Hello.

I've run into the following error when trying to install sample data from CLI in Magento 2.1.5 CE. This error occurs when running php bin/magento setup:upgrade, the first command php bin/magento sampledata:deploy executed with no problems.

Module 'Magento_SalesSampleData':
Installing data... PHP Fatal error:  Uncaught Error: Call to a member function getDataByKey() on null in /var/www/dysandbox/public_html/htdocs/vendor/magento/module-sales-sample-data/Model/Order/Converter.php:191
Stack trace:
#0 /var/www/dysandbox/public_html/htdocs/vendor/magento/module-sales-sample-data/Model/Order/Converter.php(171): Magento\SalesSampleData\Model\Order\Converter->getProductAttributes(Array)
#1 /var/www/dysandbox/public_html/htdocs/vendor/magento/module-sales-sample-data/Model/Order/Converter.php(76): Magento\SalesSampleData\Model\Order\Converter->convertProductData(Array)
#2 /var/www/dysandbox/public_html/htdocs/vendor/magento/module-sales-sample-data/Model/Order.php(101): Magento\SalesSampleData\Model\Order\Converter->convertRow(Array)
#3 /var/www/dysandbox/public_html/htdocs/vendor/magento/module-sales-sample-data/Setup/Installer.php(30): Magento\SalesSampleData\Model\Order->install(Array)
#4 [internal function]: Magento\SalesSampleData\Setup\Installer->install()
#5 /var/www/dysandbox/public_html/htdocs/vendor/magento/frame in /var/www/dysandbox/public_html/htdocs/vendor/magento/module-sales-sample-data/Model/Order/Converter.php on line 191

Thanks in advance.

On the home page some images are not displayed and the file "/pub/media/styles.css" is not generated, some category images are also not displayed

Preconditions (*)

Magento 2.3.1

https://imgur.com/g8g7RUO

Steps to reproduce (*)

I have been developing the following project that has the purpose of automating the construction of Magento2 in order to facilitate the evangelization of the platform.

https://github.com/mozgbrasil/deploy-magento2#install

The installation of Magento works as expected, displaying all the images from the "sample data"

But at the time of re-deploying the magento, problems occur

https://github.com/mozgbrasil/deploy-magento2#deploy--re-deploy

On the home page some images are not displayed and the file "/pub/media/styles.css" is not generated, some category images are also not displayed

See process instalation

https://imgur.com/NLYpMuF
https://imgur.com/EMooFsm
https://imgur.com/XnRdWq9
https://imgur.com/nb7daXS
https://imgur.com/BgUO5Sd
https://imgur.com/mcdbG5c
https://imgur.com/5se5INd
https://imgur.com/bc9FLlE
https://imgur.com/2yy1DsL
https://imgur.com/WclO9Dj

See process re-deploy, using same database

https://imgur.com/a4CprNy
https://imgur.com/oah0SIM
https://imgur.com/DnNiHuU
https://imgur.com/TgcpLYj
https://imgur.com/xX5Gpho
https://imgur.com/rtclnhQ
https://imgur.com/UiGPfqO
https://imgur.com/N7wpFZV
https://imgur.com/NJz2fMW
https://imgur.com/08BXtEX
https://imgur.com/EYLT3yK
https://imgur.com/g0gg90y
https://imgur.com/g8g7RUO

Expected result (*)

  1. [Screenshots, logs or description]

https://imgur.com/2yy1DsL
https://imgur.com/WclO9Dj

Actual result (*)

  1. [Screenshots, logs or description]

https://imgur.com/g0gg90y

Thank you in advance for those who can contribute to the improvement of the project.

I have a deployment on AWS EBS in

http://304674501456-test-webapp014.us-west-2.elasticbeanstalk.com/

The magento is in

http://304674501456-test-webapp014.us-west-2.elasticbeanstalk.com/magento/

and the backend in

http://304674501456-test-webapp014.us-west-2.elasticbeanstalk.com/magento/admin/

You can access as

admin / 123456a

packages.magento.comโ€™s server DNS address could not be found.

I have installed Magento 2 with help of composer, but when i tried to deploy Magento with sample data with help of terminal, i have faced list of errors as given in screenshots .

error

And after surfing for the solution of this problem is add "packages.magento.com" in composer.json, but when clicking on this link , i got this "packages.magento.comโ€™s server DNS address could not be found."
Its strange.
Any kind of help will be appreciated .

Sample data for the 2.2.4

Hello guys,

the latest Magento 2.2.4 has been released but the sample data package is not compatible. I have downloaded the github version and I get many errors about the setup_version.

I have used the bin/magento sampledata:deploy and I get these errors:

The requested package magento/module-NAME-MODULE-sample-data could not be found in any version, there may be a typo in the package name.

How have I to install the Sample Data?

thanks

Magento_ConfigurableSampleData causing issues on Magento 2.0.6

While trying to run: bin/magento setup:upgrade

operation stops with following exception:

Module 'Magento_ConfigurableSampleData':

  [Magento\Framework\Exception\SessionException]                       
  Area code not set: Area code must be set before starting a session.  

  [Magento\Framework\Exception\LocalizedException]  
  Area code is not set                              

The only solution is to disable / uninstall this module.

Upgrade Magento 2.3.2 to 2.3.3 with Sample-Data

Hello,
i'v upgraded Magento 2.3.2 to 2.3.3 with Sample-Data (v100.3.3) installed.
When i make "bin/magento setup:upgrade" it terminates with:
Module 'Magento_ProductAlert':
Module 'Magento_ConfigurableSampleData':
Running data recurring...Incorrect theme identification key

I'v tried to debug but only found the Function responsable for this in File:
vendor/magento/module-configurable-sample-data/Setup/RecurringData.php

public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$this->state->emulateAreaCode(
\Magento\Framework\App\Area::AREA_CRONTAB,
[$this, 'reindex']
);
}
Can anyone explain why this Error occurres, or is something missing into database?

Sample data return error Setup version for module 'Magento_CustomerSampleData' is not specified

This is what I was do.
cd /var/www/magento/current
rm -rf /var/www/magento/current/.*
rm -rf /var/www/magento/current/*
git clone https://github.com/magento/magento2.git ./
git checkout develop
find . -type d -exec chmod 770 {} ; && find . -type f -exec chmod 660 {} ; && chmod u+x bin/magento
composer config repositories.magento composer http://packages.magento.com
composer install
mysql -uroot -ptmp -h mysql -e "DROP DATABASE magento2; CREATE DATABASE magento2;";
php -d xdebug.max_nesting_level=500 -f bin/magento setup:install --base-url="http://magento2.hostname/" --backend-frontname=admin --db-host=mysql --db-name="magento2" --db-user="root" --db-password="tmp" --admin-firstname=Local --admin-lastname=Admin --admin-email=[email protected] --admin-user="admin" --admin-password="123123aa" --language=en_US --currency=USD --timezone=America/Chicago
rm -rf ~/sample-data
git clone https://github.com/magento/magento2-sample-data.git ~/sample-data
git checkout develop
cd ~/sample-data/dev/tools
php build-sample-data.php --ce-source="/var/www/magento/current"
cd /var/www/magento/current
php -d xdebug.max_nesting_level=500 bin/magento setup:upgrade
bin/magento setup:di:compile
chown -R www-data:www-data ./*

This is what I get when its finish:
cat var/report/873018421313
a:4:{i:0;s:70:"Setup version for module 'Magento_CustomerSampleData' is not specified";i:1;s:3320:"#0 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Module/DbVersionInfo.php(56): Magento\Framework\Module\DbVersionInfo->isModuleVersionEqual('Magento_Custome...', '2.0.0')
#1 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Module/DbVersionInfo.php(79): Magento\Framework\Module\DbVersionInfo->isSchemaUpToDate('Magento_Custome...')
#2 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(55): Magento\Framework\Module\DbVersionInfo->getDbVersionErrors()
#3 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#4 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#5 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#6 /var/www/magento/2016-02-09-10-43/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#7 [internal function]: Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#8 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#9 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#10 /var/www/magento/2016-02-09-10-43/app/code/Magento/PageCache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#11 [internal function]: Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#12 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#13 /var/www/magento/2016-02-09-10-43/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#14 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#15 /var/www/magento/2016-02-09-10-43/lib/internal/Magento/Framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#16 /var/www/magento/2016-02-09-10-43/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#17 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}

Extenstion installistation using CLI

The following error are showing tho run the commad : composer require igorludgero/outofstocklast

brasilma@a2ls18 [~/public_html]# composer require igorludgero/outofstocklast
Using version ^1.0 for igorludgero/outofstocklast
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for igorludgero/outofstocklast ^1.0 -> satisfiable by igorludgero/outofstocklast[1.0.0].
- Conclusion: remove magento/framework 100.1.2
- Conclusion: don't install magento/framework 100.1.2
- igorludgero/outofstocklast 1.0.0 requires magento/framework ~100.0.4 -> satisfiable by magento/framework[100.0.10, 100.0.11, 100.0.12, 100.0.13, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9].
- Can only install one of: magento/framework[100.1.2, 100.0.10].
- Can only install one of: magento/framework[100.1.2, 100.0.11].
- Can only install one of: magento/framework[100.1.2, 100.0.12].
- Can only install one of: magento/framework[100.1.2, 100.0.13].
- Can only install one of: magento/framework[100.1.2, 100.0.4].
- Can only install one of: magento/framework[100.1.2, 100.0.5].
- Can only install one of: magento/framework[100.1.2, 100.0.6].
- Can only install one of: magento/framework[100.1.2, 100.0.7].
- Can only install one of: magento/framework[100.1.2, 100.0.8].
- Can only install one of: magento/framework[100.1.2, 100.0.9].
- Installation request for magento/framework (locked at 100.1.2) -> satisfiable by magento/framework[100.1.2].

Installation failed, reverting ./composer.json to its original content.

Magento 2.4.0 sample data setup:upgrade throws (unclear) error if wrong ES version configured

Don't really have an issue but just wanted to post this here in case someone runs into the same problem and is googling for an answer. Deploying the Magento 2.4.0 sample data on a fresh 2.4.0 install throws this somewhat 'unclear' error (on setup:upgrade):

Module 'Magento_ConfigurableSampleData':
Running data recurring...{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"},"status":400}

If you get this it means your Magento installation is using a wrong version of ElasticSearch (in my case 6.6.1) and you need to switch to a compatible version (like 7.6.0). More information about setting up ES with Magento 2.4 here

Error after install magento 2 rc with sample data

sytems.log

[2015-11-07 03:38:28] main.CRITICAL:
Compilation from source:
frontend/Magento/luma/en_US/css/email.less
variable @modal-slide-header__padding-vertical is undefined in file D:/App/htdocs/magentodev/var/view_preprocessed/css/frontend/Magento/luma/en_US/css/source/_theme.less in _theme.less on line 254, column 37
252| // Modal popup
253| @modal-action-close__font-size: @font-size__base;
254| @modal-slide-action-close__padding: @modal-slide-header__padding-vertical @modal-popup__padding;
255|
256| // Checkout tooltip icon
257| @checkout-tooltip-icon__font-size: 21px;
[] []
[2015-11-07 03:38:29] main.CRITICAL:
Compilation from source:
frontend/Magento/luma/en_US/css/email-inline.less
variable @modal-slide-header__padding-vertical is undefined in file D:/App/htdocs/magentodev/var/view_preprocessed/css/frontend/Magento/luma/en_US/css/source/_theme.less in _theme.less on line 254, column 37
252| // Modal popup
253| @modal-action-close__font-size: @font-size__base;
254| @modal-slide-action-close__padding: @modal-slide-header__padding-vertical @modal-popup__padding;
255|
256| // Checkout tooltip icon
257| @checkout-tooltip-icon__font-size: 21px;
[] []
[2015-11-07 03:42:39] main.ERROR: Sample Data error: Error in data structure: entity values are mixed [] []
[2015-11-07 03:43:25] main.ERROR: Sample Data error: Notice: Undefined index: Black
in D:\App\htdocs\magento2-sample-data\app\code\Magento\SwatchesSampleData\Model\Swatches.php on line 131 [] []

Error on setup upgrade

Magento 2.3.4

I have installed sample data using
bin/magento sampledata:deploy

After installing sampledata . I am trying to do setup:upgrade Getting bellow error

Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exception message: Rolled back transaction has not been completed correctly.

Error during sample data installation: Undefined index: black

Hi, I am trying to install merchant_beta 1.0.0-beta6 sample-data into merchant_beta 1.0.0-beta6 of magento2.

I run
php -f build-sample-data.php -- --ce-source="/somePath/magento2"
to deploy the sample-data and then run
composer install
in the magento2 directory.

Then I install magento2 with the following command line:

php bin/magento setup:install --base-url=http://m2-local.dev.example.com/ --base-url-secure=https://m2-local.dev.example.com/ --db-host=localhost --db-name=magento2_merchant_beta --db-user=sa --db-password=examplePW123456 --admin-firstname=Magento --admin-lastname=User [email protected] --admin-user=admin --admin-password=admin123 --backend-frontname=admin --language=en_US --currency=CHF --timezone=Europe/Zurich --use-sample-data --use-rewrites=1 --use-secure=1 --use-secure-admin=1 --cleanup-database

But during the installation, the following error occurs:

[Progress: 285 / 288]
Installing sample data:
Installing theme:
.
Installing customers:
.
Installing CMS pages:
....
Installing catalog attributes:
...........................
Installing categories:
.........................................
Installing simple products:
............................................
Installing bundle products:
.
Installing downloadable products:
......
Installing grouped products:
.
Installing configurable products:

[Magento\Setup\SampleDataException]
Error during sample data installation: Undefined index: black

What can I do?

Thanks for your help.

Install fails with the error "Unable to apply data patch Magento\CustomerSampleData\Setup\Patch\Data\InstallCustomerSampleData" on EE/Commerce

Using a clean Docker stack based on the versions mentioned in the official requirements page, I always end up with the following error when trying to install the sample data:

Unable to apply data patch Magento\CustomerSampleData\Setup\Patch\Data\InstallCustomerSampleData for module Magento_CustomerSampleData. Original exception message: Rolled back transaction has not been completed correctly.

When digging up a bit, I can figure out this is caused by the following file: vendor/magento/module-customer-sample-data/fixtures/customer_profile.csv, and because it has the ID 2 hardcoded in the gender column:

firstname,lastname,email,password,dob,gender,street,city,region,country_id,postcode,telephone
Veronica,Costello,"[email protected]","[email protected]","1973-12-15",2,"[""6146 Honey Bluff Parkway"",""""]",Calder,Michigan,US,"49628-7978","(555) 229-3326"
                                                                        HERE ---^

Looking at the database, I can see that the IDs seem to have a increment step of 3 and not 1, which means that 2 cannot occur when using a single database node (typical configuration on a developer instance).

option_id attribute_id sort_order
1 58 0
4 58 1
7 58 3

(58 is the ID of th attribute gender on customers)

I guess hardcoding IDs is a bad practice anyway, so perhaps the best solution would be to use the label in that file (Female) and adapt the injection code to it.

Installs only 5 products

I installed magento and sampledata module*very often in the last couple of months. But since magento 2.1 when I install sampledata on an ubuntu server with php7 it adds only 5 products. I resetted, reinstalled, flushed caches to to no avail. There remain 5 lonely products in catalog_product_entity. The installer never shows any error but always completes successfully.

Installing sampledata on my local windows machine with php7 about a two weeks ago worked without problems.
sample-data

Stylesheet 404 when using pub directory as DocumentRoot

When Magento 2 is installed using the pub folder as the DocumentRoot, the stylesheet which is configured by the sample data installer fails to load. Manually changing the design/head/includes config to drop /pub from the URI resolves the problem, but the install process should not setup sample data in a which does not work in a supported deployment scenario.

Sample data ready for 2.2?

What is the way of installing sample data with 2.2? Loads of conflicts in terms of version 100.1 with 100.3 etc.

Issue while deploying sample-data

Hello,

I have errors while trying to deploy sample-data modules : php bin/magento sampledata:deploy . I'm using Magento EE 2.1.3. and a composer install. I also tried with "minimum-stability" to "dev.

The error stack is :
`Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package magento/module-gift-card-sample-data could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package magento/module-customer-balance-sample-data could not be found in any version, there may be a typo in the package name.
Problem 3
- The requested package magento/module-target-rule-sample-data could not be found in any version, there may be a typo in the package name.
Problem 4
- The requested package magento/module-gift-registry-sample-data could not be found in any version, there may be a typo in the package name.
Problem 5
- The requested package magento/module-multiple-wishlist-sample-data could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.
There is an error during sample data deployment. Composer file will be reverted.
`

I checked the auth.json file and it's good. I cleared the composer cache, magento caches, the /var/generation and var/di directories nothing seems to work.

Thank you in advance.

Installing magento/sample-data-media (100.0.2)

The steps that I do:
1.Clone mage2 project
2.Switch to master
From Root folder
3.composer install
4.php bin/magento sampledata:deploy

And I get a boom
image

Soft that I have:
Xampp 5.6.14
It has apache 2.4 and php 5.6.14
About mysql, read it evloved into mariaDB thou the mysql command is on, anyway I don't have any problem with normal installation of magento2,

Composer:
Composer version 1.0-dev (a066171dcc023ad6429881a7692e46f10e080f99) 2015-11-12 13:44:17

Any tips what I'm doing wrong or what is the problem :v

Can we make this a metapackage?

Having this as a meta package helps keep the composer.json file clean and clutter-free.

"magento/module-sample-data": "^100.4"

vs

"magento/module-bundle-sample-data": "100.4.*",
"magento/module-catalog-rule-sample-data": "100.4.*",
"magento/module-catalog-sample-data": "100.4.*",
"magento/module-cms-sample-data": "100.4.*",
"magento/module-configurable-sample-data": "100.4.*",
"magento/module-customer-balance-sample-data": "100.4.*",
"magento/module-customer-sample-data": "100.4.*",
"magento/module-downloadable-sample-data": "100.4.*",
"magento/module-gift-card-sample-data": "100.4.*",
"magento/module-gift-registry-sample-data": "100.4.*",
"magento/module-grouped-product-sample-data": "100.4.*",
"magento/module-msrp-sample-data": "100.4.*",
"magento/module-multiple-wishlist-sample-data": "100.4.*",
"magento/module-offline-shipping-sample-data": "100.4.*",
"magento/module-product-links-sample-data": "100.4.*",
"magento/module-review-sample-data": "100.4.*",
"magento/module-sales-rule-sample-data": "100.4.*",
"magento/module-sales-sample-data": "100.4.*",
"magento/module-swatches-sample-data": "100.4.*",
"magento/module-target-rule-sample-data": "100.4.*",
"magento/module-tax-sample-data": "100.4.*",
"magento/module-theme-sample-data": "100.4.*",
"magento/module-widget-sample-data": "100.4.*",
"magento/module-wishlist-sample-data": "100.4.*",
"magento/sample-data-media": "100.4.*"

And also publish this under repo.magento.com? So that we can directly do a composer require magento/module-sample-data instead of running the bin/magento sampledata:deploy command.

Sample product data does not include weights

Sample products included in this don't have weights assigned.

Causes major headaches setting up shipping carriers on demo stores as the shipping carriers will either return an error, or you will see no response for shipping requests.

Installation using composer breaks with magento2 latest develp version

I am trying to install this sample data using the 'bin/magento sampledata:deploy' command and it breaks because it says the requirements cannot be fulfilled. This is the log I get:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package magento/module-msrp-sample-data could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package magento/module-catalog-rule-sample-data could not be found in any version, there may be a typo in the package name.
Problem 3
- The requested package magento/module-offline-shipping-sample-data could not be found in any version, there may be a typo in the package name.
Problem 4
- The requested package magento/module-grouped-product-sample-data could not be found in any version, there may be a typo in the package name.
Problem 5
- The requested package magento/module-bundle-sample-data could not be found in any version, there may be a typo in the package name.
Problem 6
- The requested package magento/module-sales-rule-sample-data could not be found in any version, there may be a typo in the package name.
Problem 7
- The requested package magento/module-configurable-sample-data could not be found in any version, there may be a typo in the package name.
Problem 8
- The requested package magento/module-product-links-sample-data could not be found in any version, there may be a typo in the package name.
Problem 9
- The requested package magento/module-widget-sample-data could not be found in any version, there may be a typo in the package name.
Problem 10
- The requested package magento/module-cms-sample-data could not be found in any version, there may be a typo in the package name.
Problem 11
- The requested package magento/module-theme-sample-data could not be found in any version, there may be a typo in the package name.
Problem 12
- The requested package magento/module-review-sample-data could not be found in any version, there may be a typo in the package name.
Problem 13
- The requested package magento/module-customer-sample-data could not be found in any version, there may be a typo in the package name.
Problem 14
- The requested package magento/module-tax-sample-data could not be found in any version, there may be a typo in the package name.
Problem 15
- The requested package magento/module-downloadable-sample-data could not be found in any version, there may be a typo in the package name.
Problem 16
- The requested package magento/module-wishlist-sample-data could not be found in any version, there may be a typo in the package name.
Problem 17
- The requested package magento/module-swatches-sample-data could not be found in any version, there may be a typo in the package name.
Problem 18
- The requested package magento/module-catalog-sample-data could not be found in any version, there may be a typo in the package name.
Problem 19
- The requested package magento/module-sales-sample-data could not be found in any version, there may be a typo in the package name.

Potential causes:

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Removing symlink is not working

I am trying to install sample data using Github repo: https://github.com/magento/magento2-sample-data#deploy-sample-data-from-github-repository

First I ran the following command to symlink:
php -f /path/to/my/sample-data/dev/tools/build-sample-data.php -- --ce-source="/path/to/my/magento2"
And got success message as:

All symlinks you can see at files:
/path/to/my/sample-data/dev/tools/exclude.log

Now when I tried to install Magento 2 from cli, it got stuck saying

Class Magento\Catalog\Model\ResourceModel\Product\Gallery does not exist

So I thought of removing the symlinks and ran:
php -f /path/to/my/sample-data/dev/tools/build-sample-data.php โ€“ --command=unlink --ce-source="/path/to/my/magento2"
but resulted in error

Expected folder not found

Any idea about the issue?
How to install sample data from github?

Gift Card widget is not working

Issue:
Gift card widget is not working on latest sample data. There is no product category associated with Gift cards as well.

Multiple Select attribute value not display in search result page properly.

I have installed Magento 2.2.2 with sample data. I want to be searchable for Pattern attributes from default sample data. I have edit Patter attribute from Stores -> Product and Set Use In Search of Yes and set search Weight to default 1. Now There are Total 5 products are available to Pattern with striped value in sample data.

When we search for 'striped' from search bar, They will give result only four product instead of five products already contains the striped value for pattern attributes. If I set for another product with striped value for pattern attribute though they will also not display in search result page. I have tried with run indexer and cache command but not getting the proper result. Is there an Issue for multiple select attribute value in search page?

Preconditions

  1. Magento CE 2.2.2

Steps to reproduce

  1. Install Sample data in fresh instance.
  2. Go To Stores -> Product, Make Pattern Attribute for Use in Search.
  3. Run Indexer command.
  4. Search Striped or any other option from Pattern attribute.

Expected result

1.In search result, Display all of the product which has Attribute option value equal to striped.

Actual result

Setup Error with sample data on Magento 2.1 EE

Hello,

I'm unable to setup sample data under Magento EE 2.1.
bin/magento sampledata:deploy went well, but when running bin/magento setup:upgrade :

...
Module 'Magento_Eway':
Module 'Magento_Fedex':
Module 'Magento_TargetRule':
Module 'Magento_GiftCardAccount':
Module 'Magento_GiftCardImportExport':
Module 'Magento_Weee':
Module 'Magento_GiftRegistry':
Module 'Magento_GiftMessage':
Module 'Magento_GiftMessageStaging':
Module 'Magento_CatalogStaging':
Module 'Magento_GiftRegistrySampleData':
Installing data... PHP Fatal error:  Uncaught Error: Call to a member function getData() on boolean in /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php:192
Stack trace:
#0 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php(144): Magento\GiftRegistrySampleData\Model\GiftRegistry->generateData(Array)
#1 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Setup/Installer.php(30): Magento\GiftRegistrySampleData\Model\GiftRegistry->install(Array)
#2 [internal function]: Magento\GiftRegistrySampleData\Setup\Installer->install()
#3 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/framework/App/State.php(171): call_user_func_array(Array, Array)
#4 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/framework/Setup/SampleData/Executor.php(50): Magento\Framework\App\State->emulateAreaCode('setup', Array)
#5 /var/www/magento_deploy/r in /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php on line 192

It's working fine under Magento 2.1 CE.

Thanks in advance,
Marc

No license.txt

What license agreement is intended to be associated with the sample data? If I want to use the sample data included in this repository to demo a module or theme can I do so legally?

"Generally speaking, the absence of a license means that the default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend."
-GitHub Help > Open source licensing

Orders importing failed

It failed with both master and merchant_beta sample data branch, for magento2 master branch. didn't try dev branch.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'vat_id' in 'field list', query was:
INSERT INTO quote_address (quote_id, customer_id, save_in_address_book, customer_ address_id, address_type, email, prefix, firstname, middlename, lastname, suf fix, company, street, city, region, region_id, postcode, country_id, teleph one, fax, same_as_billing, collect_shipping_rates, shipping_method, shipping_desc ription, weight, subtotal, base_subtotal, tax_amount, base_tax_amount, shipping _amount, base_shipping_amount, shipping_tax_amount, base_shipping_tax_amount, disco unt_amount, base_discount_amount, grand_total, base_grand_total, applied_taxes, d iscount_description, shipping_discount_amount, base_shipping_discount_amount, subtota l_incl_tax, discount_tax_compensation_amount, base_discount_tax_compensation_amount, shipping_discount_tax_compensation_amount, shipping_incl_tax, base_shipping_incl_tax,
free_shipping, vat_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

Error installing sample data on magento CE 2.3.3

When installing sample data on a fresh install of magento 2.3.3 i get the following error:

 Unable to apply data patch Magento\CatalogSampleData\Setup\Patch\Data\InstallCatalogSampleData for module Magento_CatalogSampleData. Original exception message: Rolled back transaction has not been completed correctly.

Step to reproduce:
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition magento2
cd magento2
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chmod u+x bin/magento
bin/magento sampledata:deploy
bin/magento setup:install
--base-url=http://localhost
--db-host=db
--db-name=magento2
--db-user=user
--db-password=pass
--admin-firstname=admin
--admin-lastname=admin
--admin-email=[email protected]
--admin-user=admin
--admin-password=admin123
--language=en_US
--currency=USD
--use-rewrites=1
--backend-frontname=admin

Doing the same thing using 2.3.2 (that is to say composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.3.2 magento2 and every thing else the same ) works

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.