magento / magento/magento2-sample-data

Setup Error with sample data on Magento 2.1 EE

Open
#25 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
212
Forks
266
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with `bin/magento sampledata:deploy` followed by `bin/magento setup:upgrade` on Magento EE 2.1. Start in `vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php`, especially lines 144 and 192, and compare the behavior with Magento 2.1 CE. Done means sample-data installation completes without the reported `getData()` fatal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.